How to renew DHCP lease with NetworkManager
Traditionally, we use dhclient to release and renew DHCP lease on Linux. It probably still work with modern Linux distros nowadays. However, most distros come with NetworkManager which provides nmcli command line interface to manage networking. Here’s how to renew DHCP lease using nmcli performing on my machine. Your output when running these commands could be different. First, let’s list the connections managed by NetworkManager. # nmcli con NAME UUID TYPE DEVICE virbr0 2c2c7c4f-15e9-439b-be1d-e1d0131fb41c bridge virbr0 Wired connection 1 5c9000c5-2635-4b09-90d7-71c3783c6626 802-3-ethernet enp0s25 enp0s25 70ee0b94-8341-46ec-953d-f2c3ca34285a 802-3-ethernet -- virbr0-nic aafaa95e-6ced-4ea9-bd4f-7c8d10fb51b6 generic virbr0-nic Next, we can find out the current IP associated with enp0s25 by running command:...