net-list
Displays a list of defined virtual networks.
By default, a list of active virtual networks is displayed.
Syntax
Selected options
- --all
- Displays active and inactive virtual networks.
- --autostart
- Displays only virtual networks that start automatically when the libvirt daemon is started.
- --inactive
- Displays only inactive virtual networks.
- --name
- Lists the network names instead of displaying a table of virtual networks.
- --no-autostart
- Displays only virtual networks that do not start automatically when the libvirt daemon is started.
- --table
- Displays the virtual network information in table format.
- --uuid
- Lists the virtual network UUIDs instead of displaying a table of virtual networks.
Usage
Managing virtual networksExample
# virsh net-list
Name State Autostart Persistent
----------------------------------------------------------
default active yes yes
net0 active no yes