I run a router at home with
dd-wrt. My main machine has a static IP lease based
on the MAC address. Sometimes when I reboot the main machine the static IP is
not properly released by the DHCP subsystem and the router holds on to it,
therefore assigning my machine a regular DHCP IP.
To fix this without having to reboot the machine, follow these steps:
Setuppage and click the
Savebutton followed by the
Applybutton. This will restart the DHCP daemon in the router without having to reboot it.
Statuspage on the router and click on the
Lantab and verify that the IP was indeed released.
sudo dhclient -v -r enp4s0 sudo dhclient -v enp4s0
The above will renew the IP lease to the default static IP assigned to that MAC
address. Note that the above assumes you are using
dhclient under it and that your network interface is