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
dhclient
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.
(wmpg.org)