Skip to content

Instantly share code, notes, and snippets.

@nccurry
Created February 6, 2022 15:33
Show Gist options
  • Save nccurry/e8f86a6306fcb3e9e4de9cef310795a3 to your computer and use it in GitHub Desktop.
Save nccurry/e8f86a6306fcb3e9e4de9cef310795a3 to your computer and use it in GitHub Desktop.
Renew DHCP Lease nmcli
nmcli con
nmcli con down id 'Wired connection 1'
nmcli con up id 'Wired connection 1'
# Attempt to update device with changes to the currently active
# connection made since it was last applied and then try it again
nmcli device reapply 'Wired connection 1'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment