1755752 Members
3434 Online
108837 Solutions
New Discussion юеВ

can't ping my IP

 
SOLVED
Go to solution
peterchu
Super Advisor

can't ping my IP

I hv just install the ES 3 RH system , I hv modified the below file , but I still can't ping my IP 192.70.0.1 , I can only ping localhost , even reboot , it still not work , could suggest what is wrong in my system ? thx


#vi /etc/sysconfig/network-scripts/ifcfg-eth0

DEVICE=eth0
ONBOOT=yes
BOOTPROTO=static
IPADDR=192.70.0.1


I use ifconfig to check that , only the bwlow was shown , is it the network card still not setup or not started ? I can only ping 127.0.0.1 . thx a lot

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:20944033 errors:0 dropped:0 overruns:0 frame:0
TX packets:20944033 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1075938067 (1026.0 Mb) TX bytes:1075938067 (1026.0 Mb)

The below is the error , please advise what is wrong ? thx in advance.

#ifdown eth0
siocgifflags:no such device

#ping 192.70.0.1
connect:network is unreachable

p.s. I sure the network card is work.
8 REPLIES 8
Stuart Browne
Honored Contributor
Solution

Re: can't ping my IP

Does 'ifconfig eth0' return anything?

If it doesn't, then the interface isn't configured right. If it says 'inet addr:192.70.0.1', then you're a bit happier.

What sort of system is this? Do you have an entry in '/etc/modules.conf' referencing 'eth0'?

For the moment, it doesn't appear as if the appropraite driver is configured. That needs to be done first.

'kudzu' is your friend.
One long-haired git at your service...
peterchu
Super Advisor

Re: can't ping my IP

the 'ifconfig eth0' result is - "no such device" , I also run "kudzu" , but still not work , how can I know whether the network card is installed or not ? or is there other suggestion ? thx
Stuart Browne
Honored Contributor

Re: can't ping my IP

What hardware are you doing this in?

To see if the device is configured, view '/etc/sysconfig/hwconf' and see if there are any 'NETWORK' devices listed.

If there are, remove the section, and then re-run kudzu and try again.
One long-haired git at your service...
Alexander Chuzhoy
Honored Contributor

Re: can't ping my IP

Since you have just installed Linux-it means that the driver for your NIC wasn't installed.
If you know the hardware manufacture of your NIC ,get the driver from it's internet site or you can always replace the NIC with an older one.
Steven E. Protter
Exalted Contributor

Re: can't ping my IP

ifconfig

maybe the NIC card is not eth0

You seem sure it is working. How sure? check the connect lights?

If it has no lights then think about checking the cabling and the switch.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Gopi Sekar
Honored Contributor

Re: can't ping my IP


Follow these steps to find out whether your NIC card is supported(not fool proof method).

run 'lspci -v '

this will give list of devices found, see whether Ethernet controller is listed on this, if not then ur network card is not detected by OS at all (check bios, reseat card etc).

if it lists Ethernet controller but could not able to give detail of the manufacturer of the card with revision details then it is likely that there is no driver support available for ur card, try with another card which is known to be supported.

if it is listed and vendor name, revision details are given then check /etc/sysconfig/hwconf file, it should list the card name and driver name in NETWORK section. if it is listed then add the driver name to /etc/modprobe.conf file. eg: if hwconf file gives driver name as eepro100 then add the following line to /etc/modprobe.conf

alias eth0 eepro100

Hope this helps
Never Never Never Giveup
Chakravarthi
Trusted Contributor

Re: can't ping my IP

either network card driver is not installed or it is not on eth0, please check /etc/modules.conf file for ethx related entry
renarios
Trusted Contributor

Re: can't ping my IP

Hi Peter,

What does your boot.log and messages file say? Try dmesg to check your NIC connectivity.

Cheers,

Renarios
Nothing is more successfull as failure