cant seem to get the gateway added right.... out of ideas.

Issues related to configuring your network
Post Reply
shaselai
Posts: 6
Joined: 2010/06/10 15:24:36

cant seem to get the gateway added right.... out of ideas.

Post by shaselai » 2010/06/10 16:46:34

I have a windows XP VM with ip 192.168.123.456 and inside that vm i am running a centos vm through vsphere with ip 192.168.456.789. Both of my VMs can ping my main comp (centos ) and my main comp can ping back. My windows can ping the VM centos BUT my VM centos can't ping back at windows.

My default gateway for centos vm is 192.168.456.1 and the gateway for XP VM is 192.168.123.2. I tried adding the gateway using:
1. route add -net 192.168.123.0 netmask 255.255.255.0 dev eth0
2. setting the gateway in centos network gui
3. setting the line in the route-eth0 in network-scripts

but when ping 192.168.456.789 i always get:

From 192.168.456.1 icmp_seq=1 Destination Host Unreachable
...

It seems the route is still 456.1 but not 123.2.

I am using the centos vm as openfire server and if my XP machine can talk to the openfire server doesn't it mean they can both communicate to reachother? If that is the case why cant i ping the windows xp machine back??? I also tried shutting down firewall and iptables but neither worked...
Can anyone point me to the right direction?

chuina
Posts: 355
Joined: 2009/12/11 10:25:56

Re: cant seem to get the gateway added right.... out of ideas.

Post by chuina » 2010/06/10 22:33:06

How is the network connected ? NAT,bridged?
There is a [b]vmware-ping[/b] command.Try it.
What shows by
[code]route -n[/code]

pschaff
Retired Moderator
Posts: 18276
Joined: 2006/12/13 20:15:34
Location: Tidewater, Virginia, North America
Contact:

cant seem to get the gateway added right.... out of ideas.

Post by pschaff » 2010/06/14 12:05:07

Welcome to the CentOS fora. The following reading is recommended for new users:
[url=http://www.centos.org/modules/newbb/viewtopic.php?topic_id=14274&forum=47]Readme First[/url]
[url=http://www.centos.org/modules/newbb/viewtopic.php?topic_id=14408&forum=47]Installing Software[/url]
[url=http://www.centos.org/modules/newbb/viewtopic.php?topic_id=14273&forum=47]Where to Find Answers[/url]
[url=http://www.centos.org/modules/newbb/viewtopic.php?topic_id=25128&forum=47]How to provide information about your system[/url]

[quote]
shaselai wrote:
I have a windows XP VM with ip 192.168.123.456 and inside that vm i am running a centos vm through vsphere with ip 192.168.456.789. ...[/quote]

I'm surprised it is working at all. Running nested VMs (a VM inside another VM) is not supported by any virtualization environment I have seen.

Post Reply

Return to “CentOS 5 - Networking Support”