Link to home
Start Free TrialLog in
Avatar of 4crash
4crash

asked on

ifconfig

I loaded RedHat 5.1 v2.0.36 and the only way I can get networking to work is if I manually enter the following two commands:

ifconfig eth0 192.168.1.100
route add -net 192.168.1.0

Without these commands ping produces the following error:

ping sendto: Network is unreachable


What am I missing?
Which configuration file do I need to update?
What commands do I need to add in these files?
ASKER CERTIFIED SOLUTION
Avatar of NetDudeFL
NetDudeFL

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
> ping sendto: Network is unreachable
usually just misse your route command

I'm not used to RedHat, but you either should have a configuration file somewhere in /etc
wher the interface eth0 is specified. Ifconfig eth0 ... usually adds the netroute automatically (seems not to be for RedHat):
If you can not find such a file check the rc startup files in /etc.

(leaving a step-by-step answer to a RedHat expert:)
Avatar of 4crash
4crash

ASKER

I checked my ifcfg-eth0 file and it is correct. lo (loopback) is enabled during bootup but eth0 is not.  Once booted, "ifup eth0" does enable eth0. However it takes about 45 seconds for "ifup eth0" to return "search localdoman" to the command line and provide network funcionality.  Should "ifup eth0" be inserted in a config file?
The "onboot=yes" in /etc/sysconfig/network-scripts/ifcfg-eth0 will indicate that it is done at bootup, it is not needed to be manually inserted.  The 45 second delay is odd.  You don't have a 3Com 3C905TX in that box by chance, do you?
You also can use linuxconf command to setup your network config needn't to have X-Windows.
Cheers
Avatar of 4crash

ASKER

dmesg shows:
eth0: 3Com 3c589, port 0x300, irq 3, Auto Port, hw_addr 00:00:86:19:AE:CB

However ifconfig still just lists "lo" until I run ifup eth0.
After running ifup eth0 ifconfig lists "lo" and "eth0". I checked again and ONBOOT=yes.

Also, I am using a 3CXEM556 pc card.