nmcli-connection

Connection management with NetworkManager.

TLDR

List all NetworkManager connections (shows name, uuid, type and device)

>_ nmcli connection
copy

Activate a connection by specifying an uuid

>_ nmcli connection up uuid [uuid]
copy

Deactivate a connection

>_ nmcli connection down uuid [uuid]
copy

Create an auto-configured dual stack connection

>_ nmcli connection add ifname [interface_name] type [ethernet] ipv4.method [auto] ipv6.method [auto]
copy

Create a static IPv6-only connection

>_ nmcli connection add ifname [interface_name] type [ethernet] ip6 [2001:db8::2/64] gw6 [2001:db8::1] ipv6.dns [2001:db8::1] ipv4.method [ignore]
copy

Create a static IPv4-only connection

>_ nmcli connection add ifname [interface_name] type [ethernet] ip4 [10.0.0.7/8] gw4 [10.0.0.1] ipv4.dns [10.0.0.1] ipv6.method [ignore]
copy

Copied to clipboard
free 100$ digital ocean credit