add new chinese translations
This commit is contained in:
28
pages.zh/linux/lxc-network.md
Normal file
28
pages.zh/linux/lxc-network.md
Normal file
@@ -0,0 +1,28 @@
|
||||
# lxc 网络
|
||||
|
||||
> 管理 LXD 容器的网络。
|
||||
> 更多信息:<https://linuxcontainers.org/lxd/docs/master/networks>。
|
||||
|
||||
- 列出所有可用的网络:
|
||||
|
||||
`lxc network list`
|
||||
|
||||
- 显示特定网络的配置:
|
||||
|
||||
`lxc network show {{network_name}}`
|
||||
|
||||
- 将正在运行的实例添加到特定网络:
|
||||
|
||||
`lxc network attach {{network_name}} {{container_name}}`
|
||||
|
||||
- 创建一个新的管理网络:
|
||||
|
||||
`lxc network create {{network_name}}`
|
||||
|
||||
- 设置特定网络的桥接接口:
|
||||
|
||||
`lxc network set {{network_name}} bridge.external_interfaces {{eth0}}`
|
||||
|
||||
- 禁用特定网络的 NAT:
|
||||
|
||||
`lxc network set {{network_name}} ipv{{4}}.nat false`
|
Reference in New Issue
Block a user