Click to See Complete Forum and Search --> : refresh dhcp


dsmithcdc
12-21-2000, 07:22 PM
I have a linux mandrake 7.1 machine with 2 nic's. What is the equivalent of ipconfig /release /renew in Linux?

iDxMan
12-21-2000, 08:49 PM
Most likely you will be using dhcpcd to obtain an IP via dhcp.

`dhcpcd -n` will send a SIGALRM to the process then try and renew the lease.

-r

dsmithcdc
12-21-2000, 08:56 PM
I get a "command not found" message when entering "dhcpcd -n"

ExHand
12-21-2000, 09:26 PM
Try 'ifup ethX' where X is the number of the adapter is the same (?) as /renew. 'Ifconfig' will display current configuration. (like /all) I think you can also do 'ifconfig ethX up' or 'down'.

dsmithcdc
12-21-2000, 09:31 PM
that's the one...thanks http://www.linuxnewbie.org/ubb/smile.gif

posterboy
12-22-2000, 07:22 AM
I _think_ mandrake, based on redhat as it is, still is actually using "pump" to do this work. If this is not the case, please ignore me. http://www.linuxnewbie.org/ubb/smile.gif I use pump -Rd in a cron job every hour. This renews the DHCP lease, and the "d" prevents the re-write of /etc/resolv.conf, which I don't want. Ray


------------------
ray@raymondjones.net
HTTP://www.raymondjones.net