Renew an IP address one time
- Open a terminal and su – to root.
- Type ifconfig to show the current IP address that you received from DHCP.
- Type dhcpcd -k to send the appropriate signals to dhcpcd.
- Now bring the interface back up by typing ifup eth0.
- Type ifconfig to show the new IP address.
Renew an IP address every time
- Edit the file called dhcp as root. It can beĀ found in the /etc/sysconfig/network directory.
- 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”.
- Take the eth0 interface down and then back up again by typing ifdown eth0 and ifup eth0 within a terminal.
- Type ifconfig to show the new IP address. It should change every time that the interface is brought down and back up again.