1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-06-07 02:26:01 +02:00
tldr/pages/linux/lxc-network.md
Managor 611d2c9a04
linux*: refresh old pages part 2 (#16263)
Co-authored-by: Lena <126529524+acuteenvy@users.noreply.github.com>
Co-authored-by: Machiavelli <145562237+MachiavelliII@users.noreply.github.com>
2025-04-27 10:35:40 +03:00

28 lines
684 B
Markdown

# lxc network
> Manage networks for LXD containers.
> More information: <https://documentation.ubuntu.com/lxd/latest/reference/manpages/lxc/network/>.
- List all available networks:
`lxc network list`
- Show the configuration of a specific network:
`lxc network show {{network_name}}`
- Add a running instance to a specific network:
`lxc network attach {{network_name}} {{container_name}}`
- Create a new managed network:
`lxc network create {{network_name}}`
- Set a bridge interface of a specific network:
`lxc network set {{network_name}} bridge.external_interfaces {{eth0}}`
- Disable NAT for a specific network:
`lxc network set {{network_name}} ipv{{4}}.nat false`