net-info
--network
network-identifier
Name | Required? | Description |
---|---|---|
--network network-identifier
|
required
|
The name or UUID of the virtual network to display information for.
The word "--network" itself is optional.
|
virsh # net-info default Name default UUID 1c42888c-82c9-4dda-bc9c-4387962a0c0e Active: yes Persistent: yes Autostart: yes Bridge: virbr0
virsh # net-info --network default Name default UUID 1c42888c-82c9-4dda-bc9c-4387962a0c0e Active: yes Persistent: yes Autostart: yes Bridge: virbr0
virsh # net-list --all Name State Autostart ----------------------------------------- default active yes
# net-info default Name default UUID 1c42888c-82c9-4dda-bc9c-4387962a0c0e Active: yes Persistent: yes Autostart: yes Bridge: virbr0
virsh # net-dumpxml default <network> <name>default</name> <uuid>1c42888c-82c9-4dda-bc9c-4387962a0c0e</uuid> <forward mode='nat'/> <bridge name='virbr0' stp='on' delay='0' /> <ip address='192.168.122.1' netmask='255.255.255.0'> <dhcp> <range start='192.168.122.2' end='192.168.122.254' /> </dhcp> </ip> </network>