Quantcast
Channel: VMware Communities : Popular Discussions - VMware Server 1
Viewing all articles
Browse latest Browse all 74849

Unable to ping/ssh to Guest VM in NAT mode

$
0
0

I have used VMware-Server in the past on RHEL/Fedora host where the VM's were also RHEL/Fedora.

I used NAT mode and was able to ssh between the VM's and host pretty easily

 

Thinking on similar lines, I installed VMware-Server on Ubuntu host(running lucid lynx) and the guest image is Maverick(10.10), but I am not able to ssh/ping the guest machine from my host, in NAT mode. I can't use any other mode because of network issues

 

Though reverse is working perfect, ie from Guest to Host

 

There are no blocking firewalls on any of the machines

 

Ifconfig snippets:

On host machine:

vmnet8    Link encap:AMPR NET/ROM  HWaddr  

          inet addr:172.16.8.1  Mask:255.255.255.0

          UP RUNNING  MTU:0  Metric:1

          RX packets:1735552815 errors:1952796207 dropped:3335771059 overruns:778531439 frame:803696582

          TX packets:1701996079 errors:1802661751 dropped:796026215 overruns:2004116814 carrier:1320203688

          collisions:1867543411 txqueuelen:0

          RX bytes:1936024677 (1.9 GB)  TX bytes:1886352491 (1.8 GB)

 

On guest machine:

eth0      Link encap:Ethernet  HWaddr 00:0c:29:f4:6f:93 

          inet addr:172.16.8.128  Bcast:172.16.8.255  Mask:255.255.255.0

          inet6 addr: fe80::20c:29ff:fef4:6f93/64 Scope:Link

          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1

          RX packets:166 errors:0 dropped:0 overruns:0 frame:0

          TX packets:210 errors:0 dropped:0 overruns:0 carrier:0

          collisions:0 txqueuelen:1000

          RX bytes:21197 (21.1 KB)  TX bytes:27212 (27.2 KB)

          Interrupt:18 Base address:0x2000

 

Routing table:

On host machine:

route -n

Kernel IP routing table

Destination     Gateway         Genmask         Flags Metric Ref    Use Iface

192.168.73.0    0.0.0.0         255.255.255.0   U     0      0        0 vmnet1

172.16.8.0      0.0.0.0         255.255.255.0   U     0      0        0 vmnet8

192.168.5.0     0.0.0.0         255.255.255.0   U     2      0        0 wlan0

169.254.0.0     0.0.0.0         255.255.0.0     U     1000   0        0 wlan0

0.0.0.0         192.168.5.1     0.0.0.0         UG    0      0        0 wlan0

 

On guest machine:

route -n

Kernel IP routing table

Destination     Gateway         Genmask         Flags Metric Ref    Use Iface

172.16.8.0      0.0.0.0         255.255.255.0   U     1      0        0 eth0

169.254.0.0     0.0.0.0         255.255.0.0     U     1000   0        0 eth0

0.0.0.0         172.16.8.2      0.0.0.0         UG    0      0        0 eth0

 

I am able to ping vmnet8 on host

 

VM has the address, 172.16.8.128 and its nameserver is 172.16.8.2

 

VM is able to ping both the nameserver and host machine (192.168.5.102)

But host machine is still not able to ping the VM

 

Also ran traceroute on both VM and Host machine:

    1. On VM (gets answer in 2 Hops)

$traceroute 192.168.5.102

traceroute to 192.168.5.102 (192.168.5.102), 30 hops max, 60 byte packets

1  172.16.8.2 (172.16.8.2)  0.971 ms  0.119 ms  0.121 ms

2  192.168.5.102 (192.168.5.102)  0.212 ms  0.169 ms  0.164 ms

 

    1. On Host (takes 30 hops and fails)

$ traceroute 172.16.8.128

traceroute to 172.16.8.128 (172.16.8.128), 30 hops max, 60 byte packets

1  * * *

2  * * *

3  * * * ...

 

cat /etc/vmware/vmnet8/nat/nat.conf | egrep -v "[[:space:]]*#|[[:space:]]*$"

ip = 172.16.8.2

netmask = 255.255.255.0

device = /dev/vmnet8

activeFTP = 1

allowAnyOUI = 1

timeout = 60

 

Any ideaz how to get this working ??


Viewing all articles
Browse latest Browse all 74849

Trending Articles