Pcornel
Linux · Linux Networking

NetworkManager

Cheat sheet · https://pcornel.dk/topic.php?topic=2780

Back to the Topic

Answer

NetworkManager manages network connections on RHEL, Fedora and desktops (and some servers): connection profiles stored in /etc/NetworkManager/system-connections/, controlled with nmcli or nmtui.

Remember

Change settings with nmcli connection modify <con> … then nmcli connection up <con>. A device marked unmanaged is ignored. Do not mix with manual ifcfg/ip changes on the same interface.

First checks

  • ip -br addr — interfaces and addresses
  • ip route — routing table and default route
  • ip neigh — ARP/neighbour cache
  • ip route get <dest> — route, interface and source chosen for a destination
  • nmcli device status / networkctl — which tool manages each interface

Commands

nmcli
nmcli connection reload
nmcli general status
nmcli device status
nmcli connection show [--active]
nmcli connection up <name>
nmcli connection down <name>
nmcli connection add type ethernet ifname eth0 con-name <name> ...
nmcli connection modify <name> <property> <value>
nmcli connection modify
nmcli con mod
nmcli con up
nmcli dev reapply

Verify in this order

connection profile → bound to a device → activated → addresses, routes and DNS applied → persists across reboot

Where it usually breaks

First mismatch in link/interface → address/namespace → route/neighbor → firewall/policy → socket/daemon → DNS/TLS/SSH/application peer path; preserve identity/native diagnostic/pre-state before mutation.

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=2780

Confirmation

Confirm action

Continue?