If for some reason you reboot your computer and your DHCP connection doesn’t come up automagically as usual, try the following:
ifconfig -v eth0 192.168.1.105 netmask 255.255.255.0
route add default gw 192.168.1.1
DHCP normally works flawlessly but, after some hardware upgrades, my DHCP isn’t working as advertised and I hadn’t set up an interface by hand for awhile so I’d forgotten. I thought somebody else might get some use out of this to keep from banging their head into the wall.
Posted by Philip McClure in Linux on July 16, 2004