Results 1 to 5 of 5
Hi all,
It's probably something really obvious, but I can't figure out how to get my eth0 to renew it's IP address from a DHCP server after boot. If I ...
- 10-13-2004 #1Just Joined!
- Join Date
- Oct 2004
- Posts
- 8
DHCP ip address after boot?
Hi all,
It's probably something really obvious, but I can't figure out how to get my eth0 to renew it's IP address from a DHCP server after boot. If I forget to plug in my ethernet cable on boot (it's a laptop) then the eth0 interface doesn't obtain an ip address, and hence the interface is not brought up. I typed:
# ifconfig eth0 up
which brings up the interface, but doesn't poll the DHCP server for an address. In the windows world I'd type ipconfig/renew but I can't find the equivalent in linux.
Thanks in advance
- 10-13-2004 #2Just Joined!
- Join Date
- Sep 2004
- Posts
- 35
I could be wrong but i think it is
# dhcpcd eth0
- 10-13-2004 #3Linux Newbie
- Join Date
- Sep 2003
- Location
- St.Charles, Missouri, USA
- Posts
- 201
usually your net configs can be found in /etc/conf.d/net
or oldschool:Code:# To use DHCP on eth0, simply uncomment the following line: ifconfig_eth0=( "dhcp" )
good luckCode:iface_eth0="dhcp"
Powered by Gentoo
never ever ever use the hardened option in make.conf!
- 10-13-2004 #4Just Joined!
- Join Date
- Oct 2004
- Posts
- 8
Hi, thanks for the replys

I'm using Fedora core 2, so I think all my net configs are in /etc/sysconfig/network-scripts (though i could be wrong as I'm a newb)
In the ifcfg-eth0 file I have...
BOOTPROTO=dhcp
...which as far as I know enables DHCP on this interface, but it only seeks an ip address at boot. Can I run this as a script and reset the interface? (I thought by bringing the interface up it would do this, but apparently not)
- 10-13-2004 #5Just Joined!
- Join Date
- Oct 2004
- Posts
- 8
OK, I got the answer from the Fedora irc channel...
ifup eth0
Apparently "ifup is a script that reads your network card configuration from a file and does the ifconfig and dhcp client stuff for you". I was trying to use ifconfig unsuccesfully.
Thanks for the help guys


Reply With Quote
