Skip to content

Instantly share code, notes, and snippets.

@gnat
Created February 10, 2025 23:49
Show Gist options
  • Save gnat/8a975011d166f48f1e019ae5872332e7 to your computer and use it in GitHub Desktop.
Save gnat/8a975011d166f48f1e019ae5872332e7 to your computer and use it in GitHub Desktop.
Release Renew IP / DHCP on Ubuntu Kubuntu 24.04 24.10 25.04

Desktop? Can use the Networks GUI in the tray.

Ubuntu uses NetworkManager in 2025.

Refresh IP using NetworkManager:

  • nmcli connection show
    • Copy UUID.
  • nmcli connection down <UUID>
  • nmcli connection up <UUID>

Refresh IP using ip:

  • ip link
  • ip link set dev <DEVICE> down
  • ip link set dev <DEVICE> up

Info

  • ip a
  • nmcli

Find devices on LAN

  • ip neighbor
  • arp -a

Using ip is the standard cross-distro way, but nmcli might be a smoother experience on Ubuntu current year.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment