snippetbashTip
lxc network — Manage networks for LXD containers. More information: <https://documentation.ubuntu.com/lxd/latest/r
Viewed 0 times
commandlxdlxc networkclimanagefornetworkscontainers
linux
Problem
How to use the
lxc network command: Manage networks for LXD containers. More information: <https://documentation.ubuntu.com/lxd/latest/reference/manpages/lxc/network/>.Solution
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 listShow 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 falseCode Snippets
List all available networks
lxc network listShow 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}}Context
tldr-pages: linux/lxc network
Revisions (0)
No revisions yet.