Advertisement
Tritonio

Renew DHCP lease

May 18th, 2020
153
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. The -r flag explicitly releases the current lease, and once the lease has been released, the client exits. For example, open terminal application and type the command:
  2. $ sudo dhclient -r
  3.  
  4. Now obtain fresh IP address using DHCP on Linux:
  5. $ sudo dhclient
  6.  
  7. How can I renew or release an IP in Linux for eth0?
  8. To renew or release an IP address for the eth0 interface, enter:
  9. $ sudo dhclient -r eth0
  10. $ sudo dhclient eth0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement