add new chinese translations

This commit is contained in:
2024-12-30 15:25:56 +08:00
parent a850046d7b
commit 0d798759fd
5418 changed files with 105800 additions and 7052 deletions

View File

@@ -0,0 +1,33 @@
# nmcli 连接
> 使用 NetworkManager 管理连接。
> 此子命令也可以用 `nmcli c` 调用。
> 更多信息:<https://networkmanager.pages.freedesktop.org/NetworkManager/NetworkManager/nmcli.html>。
- 列出所有 NetworkManager 连接显示名称、UUID、类型和设备
`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}}`
- 创建一个静态 IPv6 仅连接:
`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}}`
- 创建一个静态 IPv4 仅连接:
`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}}`
- 使用 OVPN 文件通过 OpenVPN 创建 VPN 连接:
`nmcli connection import type {{openvpn}} file {{path/to/vpn_config.ovpn}}`