Novell Home

Is there a way to renew a DHCP address on your Linux desktop?

Novell Cool Solutions: Trench
By Joe Harmon

Digg This - Slashdot This

Posted: 19 Sep 2005
 

Applies To:

  • Novell Linux Desktop 9
  • SUSE Linux 10.0

Renew an IP address one time

Note: In this example we will be using the interface eth0. The interface must be configured for DHCP as up and running.
  1. Open a terminal and su - to root.
  2. Type ifconfig to show the current IP address that you received from DHCP.
  3. Type dhcpcd -k to send the appropriate signals to dhcpcd.
  4. Now bring the interface back up by typing ifup eth0.
  5. Type ifconfig to show the new IP address.

Renew an IP address every time

  1. Edit the file called dhcp as root. It can be found in the /etc/sysconfig/network directory.
  2. Find the parameter labeled DHCLIENT_RELEASE_BEFORE_QUIT="no" and change the no to yes so that it then reads DHCLIENT_RELEASE_BEFORE_QUIT="yes".
  3. Take the eth0 interface down and then back up again by typing ifdown eth0 and ifup eth0 within a terminal.
  4. Type ifconfig to show the new IP address. It should change every time that the interface is brought down and back up again.



Novell Cool Solutions (corporate web communities) are produced by WebWise Solutions. www.webwiseone.com

© 2014 Novell