Forrest logo
back to the lxc tool

lxc-network:tldr:6f98e

lxc-network: List all available networks.
$ lxc network list
try on your machine

The command "lxc network list" is used to display a list of available networks in the LXC (Linux Containers) infrastructure. LXC is a lightweight virtualization technology used on Linux systems to create and manage multiple isolated containers running in a single host. These containers can have their own network interfaces and can be connected to specific networks.

When you run the "lxc network list" command, it queries the LXC system and retrieves information about all the configured networks. This information typically includes the network name, type, state, and some additional details like the subnet, gateway, and whether it's managed by LXD (Linux Container Daemon) or some other networking configuration.

This command provides an overview of the networks available within the LXC environment, which allows you to work with specific networks, create new containers connected to desired networks, or modify the existing network settings.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the lxc tool