server cannot ping default-gateway

boileboile Junior MemberMember Posts: 21 ■□□□□□□□□□
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.

Comments

  • wastedtimewastedtime Senior Member Member Posts: 586 ■■■■□□□□□□
    Are the settings in the virtual machine's network card right? I haven't used VMware but I know Microsoft's Virtual PC lets you select a few different options. I would make sure you have the correct setting there.
  • NightShade03NightShade03 Security Nut Member Posts: 1,383 ■■■■■■■□□□
    Like was mentioned already you will need to make sure that the network card is set to bridged in order to see the rest of your network.
  • boileboile Junior Member Member Posts: 21 ■□□□□□□□□□
    Like was mentioned already you will need to make sure that the network card is set to bridged in order to see the rest of your network.

    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.
  • NightShade03NightShade03 Security Nut Member Posts: 1,383 ■■■■■■■□□□
    Does the /etc/sysconfig/network-scripts/ifcfg-eth0 file list your gateway ip? What about running:

    cat /etc/sysconfig/network

    What output do you get?
Sign In or Register to comment.