net-define

Creates a persistent definition of a virtual network.

Syntax


1  net-define!  --file <XML-filename>
Where:
<XML-filename>
Is the name of the network configuration-XML file.

Selected options

--file
specifies the network configuration-XML file.

Usage

Managing virtual networks

Example

This example defines the virtual network that is configured by the net0.xml network configuration-XML file.
# virsh net-define net0.xml