Monday, March 30, 2009

Start network eth0 dhcp on bootup

Ran into a problem, the only interface going up was the loopback, after some research and testing found out that I had to add the following lines to /etc/sysconfig/network-scripts/ifcfg-eth0
===================================
BOOTPROTO: dhcp
ONBOOT:yes
===================================


Not sure if they have to be in any particular location within the file but my exact file looks like this:
===========================================================
# Name of card.....................
BOOTPROTO=dhcp
DEVICE=eth0
HWADDR=00:0.................
ONBOOT=yes
===========================================================

Then just reboot and enjoy!

(reboot or init 6)

No comments: