net-dumpxml

Displays the current configuration of a virtual network.

Syntax


1  net-dumpxml!  --network
2.1 <network-name>
2.1 <network-UUID>
1?  --inactive
Where:
<network-name>
Is the name of the virtual network.
<network-UUID>
Is the UUID of the virtual network.

Selected options

--network
Specifies the virtual network.
--inactive
Displays the network XML without the automatic expansions in the libvirt-internal representation.

Usage

Managing virtual networks

Example

# virsh net-dumpxml net0
<network>
  <name>net0</name>
  <uuid>fec14861-35f0-4fd8-852b-5b70fdc112e3</uuid>
  <forward mode="nat">
    <nat>
      <port start="1024" end="65535"/>
    </nat>
  </forward>
  <bridge name="virbr0" stp="on" delay="0"/>
  <mac address="aa:25:9e:d9:55:13"/>
  <ip address="192.0.2.1" netmask="255.255.255.0">
    <dhcp>
      <range start="192.0.2.2" end="192.0.2.254"/>
    </dhcp>
  </ip>
</network>