Libvirt Virtual Network Creation Operation: Difference between revisions
Jump to navigation
Jump to search
(Created page with "=Internal= * Linux Virtualization Operations") |
|||
(2 intermediate revisions by the same user not shown) | |||
Line 2: | Line 2: | ||
* [[Linux_Virtualization_Operations#Virtualization_Host_Network_Operations|Linux Virtualization Operations]] | * [[Linux_Virtualization_Operations#Virtualization_Host_Network_Operations|Linux Virtualization Operations]] | ||
=Overview= | |||
This section documents [[KVM_Virtual_Networking_Concepts#Virtual_Network_Switch|virtual network]] creation procedures. | |||
virsh net-create | |||
=net-define= | |||
virsh net-define <''xml-file''> | |||
A sample XML configuration file is available as /usr/share/libvirt/networks/default.xml: | |||
<syntaxhighlight lang='xml'> | |||
<network> | |||
<name>default</name> | |||
<bridge name="virbr0"/> | |||
<forward/> | |||
<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> | |||
</syntaxhighlight> | |||
=net-create= |
Latest revision as of 05:23, 19 April 2018
Internal
Overview
This section documents virtual network creation procedures.
virsh net-create
net-define
virsh net-define <xml-file>
A sample XML configuration file is available as /usr/share/libvirt/networks/default.xml:
<network>
<name>default</name>
<bridge name="virbr0"/>
<forward/>
<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>