nmcli connection
Manage connections with NetworkManager. More information: https://networkmanager.pages.freedesktop.org/NetworkManager/NetworkManager/nmcli.html#connection.
- List all NetworkManager connections (shows name, UUID, type, and device):
nmcli
- Activate a connection:
nmcli
- Deactivate a connection:
nmcli
- Create an auto-configured dual stack connection:
nmcli ifname type ipv4.method ipv6.method
- Create a static IPv6-only connection:
nmcli ifname type ip6 gw6 ipv6.dns ipv4.method
- Create a static IPv4-only connection:
nmcli ifname type ip4 gw4 ipv4.dns ipv6.method
- Create a VPN connection using OpenVPN from an OVPN file:
nmcli type file
来源:tldr-pages contributors · 作者与贡献记录 · CC BY 4.0。离线整理了版式、链接和媒体显示。
