Sujet : nmcli
-
Setting a static IPv4 address with nmcli without locking yourself out
nmcli can show, modify and activate NetworkManager connections from a script, but changing the address you are connected through can drop the session before the new settings apply. Cloning the profile first and validating before removing the old one keeps the change reversible.
-
Network configuration tools compared: nmcli, netplan, systemd-networkd and their Windows and macOS equivalents
Reading the current network configuration, setting a static address, and setting DNS servers — the same three tasks across NetworkManager's nmcli, Ubuntu's netplan, systemd-networkd, Windows PowerShell's networking cmdlets, and macOS's networksetup.
Lisible par machine : JSON