Skip to content
TrySitePrice

FreeBSD Force DHCP Client (dhclient) to Renew IP Address To Get A New Lease

Best/Tutorial

To force a DHCP client (dhclient) on FreeBSD to renew its IP address and get a new lease, you can use the following command:

dhclient -r
ndhclient

The first command, dhclient -r, releases the current DHCP lease, and the second command, dhclient, obtains a new lease from the DHCP server. After running these commands, the DHCP client should have a new IP address assignment.

Note that the above commands must be run as the root user or with sufficient privileges to modify network configurations.

n(wmpg.org)