1

I am trying to download USB driver for centos 5.01 but I can't connect to the internet. I have tried to set ONBOOT="yes" , NM_CONTROLLED="yes" and BOOTPROTO="dhcp" on /etc/sysconfig/network-scripts/ifcfg-eth0 file. But still it is not connecting. Below are my cat /etc/sysconfig/network-scripts/ifcfg-eth0 and cat /etc/sysconfig/network output respectively.

 DEVICE=eth0
 BOOTPROTO ="dhcp"
 NM_CONTROLLED = "yes"
 ONBOOT ="yes"
 ----------------------

 NETWORKING ="yes"
 NETWORKING_IPv6 ="no"
 HOSTNAME =localhost.local domain
 GATEWAY = 197.176.7.1

Thanks!

5
  • What mode are you using DHCP or MANUALLY!? Dec 13, 2014 at 17:08
  • Is the 'network' service enabled? Does service network start bring up the network? WHy are you hard-codeing a GATEWAY if you are using DHCP?
    – jsbillings
    Dec 14, 2014 at 2:56
  • I'm using DHCP. Dec 15, 2014 at 5:43
  • Output of "service network start" Determining IP address for eth0.... failed. Bringing up interface eth0-static. Dec 15, 2014 at 5:46
  • I'm not hard coding Gateway anymore and still it is not working. Dec 15, 2014 at 6:01

1 Answer 1

0

The configuration file is /etc/sysconfig/network-scripts/ifcfg-eth0, not /etc/sysconfig/network-scripts/ifcfg-etho. Similarly, the device name inside the configuration file must be eth0, not etho.

Inside the configuration file, the words to the left of the equals signs must be ALL_CAPS. There must be no space preceding or following each equals sign.

That assumes that your USB Ethernet driver is working, which is far from certain. If so, you should see that network device when you run /sbin/ifconfig. If it's listed, but isn't named eth0, then you will need to rename and adjust your configuration file accordingly. If you don't see any network device other than the lo loopback interface, then, well… you have a much more complicated problem.

2
  • It is only a matter of misspelling. All the things you said are correctly displayed in the system. Sorry for that. And ifconfig lists eth0 but it does not have any ipaddress. Dec 13, 2014 at 9:54
  • Please correct the question then, so that it shows exactly what is in your configuration file. Dec 13, 2014 at 9:59

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .