Duplicate ping response when running Ubuntu as virtual machine (VMWare)

Posted by Stonerain on Ask Ubuntu See other posts from Ask Ubuntu or by Stonerain
Published on 2011-11-04T20:22:22Z Indexed on 2012/04/02 5:41 UTC
Read the original article Hit count: 264

Filed under:
|

I have the following setup:

My router - 192.168.0.1
My host computer (Windows 7) - 192.168.0.3

And Ubuntu is running as virtual machine on the host. VMWare network settings is Bridged mode. I've modified Ubuntu network settings in /etc/netowrk/interfaces, set the following config:

iface eth0 inet static
address 192.168.0.220
netmask 255.255.255.0
network 192.168.0.0
broadcast 192.168.0.255
gateway 192.168.0.1

Internet works correctly, I can install packages. But it gets weird if I try to ping something I get this:

PING belpak.by (193.232.248.80) 56(84) bytes of data.
From 192.168.0.1 icmp_seq=1 Time to live exceeded
From 192.168.0.1 icmp_seq=1 Time to live exceeded
From 192.168.0.1 icmp_seq=1 Time to live exceeded
From 192.168.0.1 icmp_seq=1 Time to live exceeded
From 192.168.0.1 icmp_seq=1 Time to live exceeded
64 bytes from belhost.by (193.232.248.80): icmp_seq=1 ttl=250 time=17.0 ms
64 bytes from belhost.by (193.232.248.80): icmp_seq=1 ttl=249 time=17.0 ms   (DUP!                             )
64 bytes from belhost.by (193.232.248.80): icmp_seq=1 ttl=248 time=17.0 ms (DUP!                             )
64 bytes from belhost.by (193.232.248.80): icmp_seq=1 ttl=247 time=17.0 ms (DUP!                             )
64 bytes from belhost.by (193.232.248.80): icmp_seq=1 ttl=246 time=17.0 ms (DUP!                             )
^CFrom 192.168.0.1 icmp_seq=2 Time to live exceeded

--- belpak.by ping statistics ---
2 packets transmitted, 1 received, +4 duplicates, +6 errors, 50% packet loss, ti                             me 999ms
rtt min/avg/max/mdev = 17.023/17.041/17.048/0.117 ms

I think even more interesting are the results of pinging the router itself:

stonerain@ubuntu:~$ ping 192.168.0.1 -c 1
PING 192.168.0.1 (192.168.0.1) 56(84) bytes of data.
From 192.168.0.3: icmp_seq=1 Redirect Network(New nexthop: 192.168.0.1)
64 bytes from 192.168.0.1: icmp_seq=1 ttl=254 time=6.64 ms

--- 192.168.0.1 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 6.644/6.644/6.644/0.000 ms

But if I set -c 2:

...
64 bytes from 192.168.0.1: icmp_seq=1 ttl=252 time=13.5 ms (DUP!)
64 bytes from 192.168.0.1: icmp_seq=1 ttl=251 time=13.5 ms (DUP!)
64 bytes from 192.168.0.1: icmp_seq=1 ttl=254 time=13.5 ms (DUP!)
64 bytes from 192.168.0.1: icmp_seq=1 ttl=253 time=13.5 ms (DUP!)
64 bytes from 192.168.0.1: icmp_seq=1 ttl=252 time=13.5 ms (DUP!)
64 bytes from 192.168.0.1: icmp_seq=1 ttl=251 time=13.5 ms (DUP!)
From 192.168.0.3: icmp_seq=2 Redirect Network(New nexthop: 192.168.0.1)
64 bytes from 192.168.0.1: icmp_seq=2 ttl=254 time=7.87 ms

--- 192.168.0.1 ping statistics ---
2 packets transmitted, 2 received, +256 duplicates, 0% packet loss, time 1002ms
rtt min/avg/max/mdev = 6.666/10.141/13.556/2.410 ms

Pinging host machine on the other hand works absolutely correctly: no DUPs, no errors.

What seems to be the problem and how can I fix it? Thank you.

© Ask Ubuntu or respective owner

Related posts about networking

Related posts about vmware