nmcli connection

Manage connections with NetworkManager. This subcommand can also be called with nmcli c. More information: https://networkmanager.pages.freedesktop.org/NetworkManager/NetworkManager/nmcli.html.

nmcli connection

nmcli connection up uuid {{uuid}}

nmcli connection down uuid {{uuid}}

nmcli connection add ifname {{interface_name}} type {{ethernet}} ipv4.method {{auto}} ipv6.method {{auto}}

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}}

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}}

nmcli connection import type {{openvpn}} file {{path/to/vpn_config.ovpn}}