server cannot ping default-gateway

Hi
I have this cenOS, Ubuntu and windows operating system running on virtual machines.
Now I gave them manual ip address, both ubuntu and windows machines can ping the default gateway, but not the CentOS.
Here is the output of
ifconfig eth0
eth0 --- Link encap:Ethernet HWaddr 08:00:27:17:0d:e6
-- inet addr:192.168.5.3 Bcast:192.168.5.255 Mask:255.255.255.0
inet6 addr: fe80::a00:27ff:fe17:de6/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
route -n command here is the output
Destination
Gateway
Genmask
Flags--- Metric-- Ref --- Use --- Iface
192.168.5.0
0.0.0.0
255.255.255.0
U ---- 0
0 --- 0 ---eth0
169.254.0.0
0.0.0.0
255.255.0.0
U ---- 0-- 0 ---- 0 ---eth0
0.0.0.0
192.168.5.254
0.0.0.0
UG ---- 0 --- 0
0 ---eth0
It should forward 0.0.0.0. to my cisco router address(192.168.5.254),
Now it does not ping.
Any help would be appreciated.
I have this cenOS, Ubuntu and windows operating system running on virtual machines.
Now I gave them manual ip address, both ubuntu and windows machines can ping the default gateway, but not the CentOS.
Here is the output of
ifconfig eth0
eth0 --- Link encap:Ethernet HWaddr 08:00:27:17:0d:e6
-- inet addr:192.168.5.3 Bcast:192.168.5.255 Mask:255.255.255.0
inet6 addr: fe80::a00:27ff:fe17:de6/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
route -n command here is the output
Destination
Gateway
Genmask
Flags--- Metric-- Ref --- Use --- Iface
192.168.5.0
0.0.0.0
255.255.255.0
U ---- 0
0 --- 0 ---eth0
169.254.0.0
0.0.0.0
255.255.0.0
U ---- 0-- 0 ---- 0 ---eth0
0.0.0.0
192.168.5.254
0.0.0.0
UG ---- 0 --- 0
0 ---eth0
It should forward 0.0.0.0. to my cisco router address(192.168.5.254),
Now it does not ping.
Any help would be appreciated.
Comments
SE Notebook
Hi
Thanks for your reply. Ya I have set all those things. Because my ubuntu box is using the same card, and again in the /etc/sysconfig/network-scripts/ifcfg-eth0 file of my CentOS I see the name of my card. So, I am sure I have configured the card properly. There must be some routing issue.
Anyway, may be I should post it into some Linux forum.
cat /etc/sysconfig/network
What output do you get?
SE Notebook