Product SiteDocumentation Site

2.7. net-list

Lists the virtual networks libvirt is aware of, along with basic status and autostart information
Used without parameters, net-list displays information for only active virtual networks.
Usage
net-list --all --inactive
Options
Table 2.7. Options
Name Required? Description
--all
Optional
Instructs net-list to display both active and inactive virtual networks
--inactive
Optional
Instructs net-list to only display inactive virtual networks.

Availability
Available from libvirt 0.2.0 onwards
Platform or Hypervisor specific notes
None yet
Examples
Example 2.23. 
virsh # net-list
Displays the active libvirt virtual networks.

Example 2.24. 
virsh # net-list --all
Displays all virtual networks libvirt knows of, both active and inactive.

Example 2.25. 
virsh # net-list --inactive
Displays only the inactive libvirt virtual networks.

Example in context
Displaying all of the libvirt virtual networks on a host:
virsh # net-list --all
Name                 State      Autostart
-----------------------------------------
default              active     yes      <-- this is a virtual network
examplenetwork       inactive   no       <-- this is a virtual network
See also