Fix three typos pointed out by Anton Protopopov

This commit is contained in:
Daniel P. Berrange 2008-07-08 17:44:56 +00:00
parent 93118c7efe
commit 24cef5fdfd
5 changed files with 100 additions and 185 deletions

View File

@ -1,3 +1,15 @@
Tue Jul 8 18:42:56 BST 2008 Daniel P. Berrange <berrange@redhat.com>
* docs/drvqemu.html.in, docs/formatnetwork.html.in: Fix three
typos pointed out by Anton Protopopov
Tue Jul 8 13:02:56 BST 2008 Daniel P. Berrange <berrange@redhat.com>
* docs/libvirt.rng: Updated schema to follow latest XML syntax
supported by drivers. Based off work by John Levon
* tests/qemuxml2argvdata/qemuxml2argv-input-xen.xml: Fix boot
syntax to comply with schema
Mon Jul 7 12:46:56 BST 2008 Daniel P. Berrange <berrange@redhat.com> Mon Jul 7 12:46:56 BST 2008 Daniel P. Berrange <berrange@redhat.com>
* src/openvz_driver.c: Don't cast pointers to ints, and fix * src/openvz_driver.c: Don't cast pointers to ints, and fix

View File

@ -16,137 +16,109 @@
<div id="header"> <div id="header">
<div id="headerLogo"></div> <div id="headerLogo"></div>
<div id="headerSearch"> <div id="headerSearch">
<form action="search.php" enctype="application/x-www-form-urlencoded" method="get"> <form action="search.php" enctype="application/x-www-form-urlencoded" method="get"><div>
<div>
<input id="query" name="query" type="text" size="12" value="" /> <input id="query" name="query" type="text" size="12" value="" />
<input id="submit" name="submit" type="submit" value="Search" /> <input id="submit" name="submit" type="submit" value="Search" />
</div> </div></form>
</form>
</div> </div>
</div> </div>
<div id="body"> <div id="body">
<div id="menu"> <div id="menu">
<ul class="l0"> <ul class="l0"><li>
<li>
<div> <div>
<a title="Front page of the libvirt website" class="inactive" href="index.html">Home</a> <a title="Front page of the libvirt website" class="inactive" href="index.html">Home</a>
</div> </div>
</li> </li><li>
<li>
<div> <div>
<a title="Details of new features and bugs fixed in each release" class="inactive" href="news.html">News</a> <a title="Details of new features and bugs fixed in each release" class="inactive" href="news.html">News</a>
</div> </div>
</li> </li><li>
<li>
<div> <div>
<a title="Get the latest source releases, binary builds and get access to the source repository" class="inactive" href="downloads.html">Downloads</a> <a title="Get the latest source releases, binary builds and get access to the source repository" class="inactive" href="downloads.html">Downloads</a>
</div> </div>
</li> </li><li>
<li>
<div> <div>
<a title="Information for users, administrators and developers" class="active" href="docs.html">Documentation</a> <a title="Information for users, administrators and developers" class="active" href="docs.html">Documentation</a>
<ul class="l1"> <ul class="l1"><li>
<li>
<div> <div>
<a title="Information about deploying and using libvirt" class="inactive" href="deployment.html">Deployment</a> <a title="Information about deploying and using libvirt" class="inactive" href="deployment.html">Deployment</a>
</div> </div>
</li> </li><li>
<li>
<div> <div>
<a title="Overview of the logical subsystems in the libvirt API" class="inactive" href="intro.html">Architecture</a> <a title="Overview of the logical subsystems in the libvirt API" class="inactive" href="intro.html">Architecture</a>
</div> </div>
</li> </li><li>
<li>
<div> <div>
<a title="Description of the XML formats used in libvirt" class="inactive" href="format.html">XML format</a> <a title="Description of the XML formats used in libvirt" class="inactive" href="format.html">XML format</a>
</div> </div>
</li> </li><li>
<li>
<div> <div>
<a title="Hypervisor specific driver information" class="active" href="drivers.html">Drivers</a> <a title="Hypervisor specific driver information" class="active" href="drivers.html">Drivers</a>
<ul class="l2"> <ul class="l2"><li>
<li>
<div> <div>
<a title="Driver the Xen hypervisor" class="inactive" href="drvxen.html">Xen</a> <a title="Driver the Xen hypervisor" class="inactive" href="drvxen.html">Xen</a>
</div> </div>
</li> </li><li>
<li>
<div> <div>
<span class="active">QEMU / KVM</span> <span class="active">QEMU / KVM</span>
</div> </div>
</li> </li><li>
<li>
<div> <div>
<a title="Driver for the Linux native container API" class="inactive" href="drvlxc.html">Linux Container</a> <a title="Driver for the Linux native container API" class="inactive" href="drvlxc.html">Linux Container</a>
</div> </div>
</li> </li><li>
<li>
<div> <div>
<a title="Psuedo-driver simulating APIs in memory for test suites" class="inactive" href="drvtest.html">Test</a> <a title="Psuedo-driver simulating APIs in memory for test suites" class="inactive" href="drvtest.html">Test</a>
</div> </div>
</li> </li><li>
<li>
<div> <div>
<a title="Driver providing secure remote to the libvirt APIs" class="inactive" href="drvremote.html">Remote</a> <a title="Driver providing secure remote to the libvirt APIs" class="inactive" href="drvremote.html">Remote</a>
</div> </div>
</li> </li><li>
<li>
<div> <div>
<a title="Driver for the OpenVZ container technology" class="inactive" href="drvopenvz.html">OpenVZ</a> <a title="Driver for the OpenVZ container technology" class="inactive" href="drvopenvz.html">OpenVZ</a>
</div> </div>
</li> </li><li>
<li>
<div> <div>
<a title="Driver for the storage management APIs" class="inactive" href="storage.html">Storage</a> <a title="Driver for the storage management APIs" class="inactive" href="storage.html">Storage</a>
</div> </div>
</li> </li></ul>
</ul>
</div> </div>
</li> </li><li>
<li>
<div> <div>
<a title="Reference manual for the C public API" class="inactive" href="html/index.html">API reference</a> <a title="Reference manual for the C public API" class="inactive" href="html/index.html">API reference</a>
</div> </div>
</li> </li><li>
<li>
<div> <div>
<a title="Bindings of the libvirt API for other languages" class="inactive" href="bindings.html">Language bindings</a> <a title="Bindings of the libvirt API for other languages" class="inactive" href="bindings.html">Language bindings</a>
</div> </div>
</li> </li></ul>
</ul>
</div> </div>
</li> </li><li>
<li>
<div> <div>
<a title="User contributed content" class="inactive" href="http://wiki.libvirt.org">Wiki</a> <a title="User contributed content" class="inactive" href="http://wiki.libvirt.org">Wiki</a>
</div> </div>
</li> </li><li>
<li>
<div> <div>
<a title="Frequently asked questions" class="inactive" href="FAQ.html">FAQ</a> <a title="Frequently asked questions" class="inactive" href="FAQ.html">FAQ</a>
</div> </div>
</li> </li><li>
<li>
<div> <div>
<a title="How and where to report bugs and request features" class="inactive" href="bugs.html">Bug reports</a> <a title="How and where to report bugs and request features" class="inactive" href="bugs.html">Bug reports</a>
</div> </div>
</li> </li><li>
<li>
<div> <div>
<a title="How to contact the developers via email and IRC" class="inactive" href="contact.html">Contact</a> <a title="How to contact the developers via email and IRC" class="inactive" href="contact.html">Contact</a>
</div> </div>
</li> </li><li>
<li>
<div> <div>
<a title="Miscellaneous links of interest related to libvirt" class="inactive" href="relatedlinks.html">Related Links</a> <a title="Miscellaneous links of interest related to libvirt" class="inactive" href="relatedlinks.html">Related Links</a>
</div> </div>
</li> </li><li>
<li>
<div> <div>
<a title="Overview of all content on the website" class="inactive" href="sitemap.html">Sitemap</a> <a title="Overview of all content on the website" class="inactive" href="sitemap.html">Sitemap</a>
</div> </div>
</li> </li></ul>
</ul>
</div> </div>
<div id="content"> <div id="content">
<h1>QEMU/KVM hypervisor driver</h1> <h1>QEMU/KVM hypervisor driver</h1>
@ -156,24 +128,23 @@
line syntax and monitor interaction. This includes KVM, and Xenner. line syntax and monitor interaction. This includes KVM, and Xenner.
</p> </p>
<h2>Deployment pre-requisites</h2> <h2>Deployment pre-requisites</h2>
<ul> <ul><li>
<li><strong>QEMU emulators</strong>: The driver will probe <code>/usr/bin</code> <strong>QEMU emulators</strong>: The driver will probe <code>/usr/bin</code>
for the presence of <code>qemu</code>, <code>qemu-system-x86_64</code>, for the presence of <code>qemu</code>, <code>qemu-system-x86_64</code>,
<code>qemu-system-mips</code>,<code>qemu-system-mipsel</code>, <code>qemu-system-mips</code>,<code>qemu-system-mipsel</code>,
<code>qemu-system-sparc</code>,<code>qemu-system-ppc</code>. The results <code>qemu-system-sparc</code>,<code>qemu-system-ppc</code>. The results
of this can be seen from the capabilities XML output. of this can be seen from the capabilities XML output.
</li> </li><li>
<li><strong>KVM hypervisor</strong>: The driver will probe <code>/usr/bin</code> <strong>KVM hypervisor</strong>: The driver will probe <code>/usr/bin</code>
for the presence of <code>qemu-kvm</code> and <code>/dev/kvm</code> device for the presence of <code>qemu-kvm</code> and <code>/dev/kvm</code> device
node. If both are found, then KVM fullyvirtualized, hardware accelerated node. If both are found, then KVM fullyvirtualized, hardware accelerated
guests will be available. guests will be available.
</li> </li><li>
<li><strong>Xenner hypervisor</strong>: The driver will probe <code>/usr/bin</code> <strong>Xenner hypervisor</strong>: The driver will probe <code>/usr/bin</code>
for the presence of <code>xenner</code> and <code>/dev/kvm</code> device for the presence of <code>xenner</code> and <code>/dev/kvm</code> device
node. If both are found, then Xen paravirtualized guests can be run using node. If both are found, then Xen paravirtualized guests can be run using
the KVM hardware acceleration. the KVM hardware acceleration.
</li> </li></ul>
</ul>
<h2> <h2>
<a name="xmlconfig" id="xmlconfig">Example domain XML config</a> <a name="xmlconfig" id="xmlconfig">Example domain XML config</a>
</h2> </h2>
@ -200,7 +171,7 @@
&lt;target dev='hda'/&gt; &lt;target dev='hda'/&gt;
&lt;/disk&gt; &lt;/disk&gt;
&lt;interface type='network'&gt; &lt;interface type='network'&gt;
&lt;source name='default'/&gt; &lt;source network='default'/&gt;
&lt;/interface&gt; &lt;/interface&gt;
&lt;graphics type='vnc' port='-1'/&gt; &lt;graphics type='vnc' port='-1'/&gt;
&lt;/devices&gt; &lt;/devices&gt;

View File

@ -58,7 +58,7 @@
&lt;target dev='hda'/&gt; &lt;target dev='hda'/&gt;
&lt;/disk&gt; &lt;/disk&gt;
&lt;interface type='network'&gt; &lt;interface type='network'&gt;
&lt;source name='default'/&gt; &lt;source network='default'/&gt;
&lt;/interface&gt; &lt;/interface&gt;
&lt;graphics type='vnc' port='-1'/&gt; &lt;graphics type='vnc' port='-1'/&gt;
&lt;/devices&gt; &lt;/devices&gt;

View File

@ -16,160 +16,123 @@
<div id="header"> <div id="header">
<div id="headerLogo"></div> <div id="headerLogo"></div>
<div id="headerSearch"> <div id="headerSearch">
<form action="search.php" enctype="application/x-www-form-urlencoded" method="get"> <form action="search.php" enctype="application/x-www-form-urlencoded" method="get"><div>
<div>
<input id="query" name="query" type="text" size="12" value="" /> <input id="query" name="query" type="text" size="12" value="" />
<input id="submit" name="submit" type="submit" value="Search" /> <input id="submit" name="submit" type="submit" value="Search" />
</div> </div></form>
</form>
</div> </div>
</div> </div>
<div id="body"> <div id="body">
<div id="menu"> <div id="menu">
<ul class="l0"> <ul class="l0"><li>
<li>
<div> <div>
<a title="Front page of the libvirt website" class="inactive" href="index.html">Home</a> <a title="Front page of the libvirt website" class="inactive" href="index.html">Home</a>
</div> </div>
</li> </li><li>
<li>
<div> <div>
<a title="Details of new features and bugs fixed in each release" class="inactive" href="news.html">News</a> <a title="Details of new features and bugs fixed in each release" class="inactive" href="news.html">News</a>
</div> </div>
</li> </li><li>
<li>
<div> <div>
<a title="Get the latest source releases, binary builds and get access to the source repository" class="inactive" href="downloads.html">Downloads</a> <a title="Get the latest source releases, binary builds and get access to the source repository" class="inactive" href="downloads.html">Downloads</a>
</div> </div>
</li> </li><li>
<li>
<div> <div>
<a title="Information for users, administrators and developers" class="active" href="docs.html">Documentation</a> <a title="Information for users, administrators and developers" class="active" href="docs.html">Documentation</a>
<ul class="l1"> <ul class="l1"><li>
<li>
<div> <div>
<a title="Information about deploying and using libvirt" class="inactive" href="deployment.html">Deployment</a> <a title="Information about deploying and using libvirt" class="inactive" href="deployment.html">Deployment</a>
</div> </div>
</li> </li><li>
<li>
<div> <div>
<a title="Overview of the logical subsystems in the libvirt API" class="inactive" href="intro.html">Architecture</a> <a title="Overview of the logical subsystems in the libvirt API" class="inactive" href="intro.html">Architecture</a>
</div> </div>
</li> </li><li>
<li>
<div> <div>
<a title="Description of the XML formats used in libvirt" class="active" href="format.html">XML format</a> <a title="Description of the XML formats used in libvirt" class="active" href="format.html">XML format</a>
<ul class="l2"> <ul class="l2"><li>
<li>
<div> <div>
<a title="The domain XML format" class="inactive" href="formatdomain.html">Domains</a> <a title="The domain XML format" class="inactive" href="formatdomain.html">Domains</a>
</div> </div>
</li> </li><li>
<li>
<div> <div>
<span class="active">Networks</span> <span class="active">Networks</span>
</div> </div>
</li> </li><li>
<li>
<div> <div>
<a title="The storage pool and volume XML format" class="inactive" href="formatstorage.html">Storage</a> <a title="The storage pool and volume XML format" class="inactive" href="formatstorage.html">Storage</a>
</div> </div>
</li> </li><li>
<li>
<div> <div>
<a title="The driver capabilities XML format" class="inactive" href="formatcaps.html">Capabilities</a> <a title="The driver capabilities XML format" class="inactive" href="formatcaps.html">Capabilities</a>
</div> </div>
</li> </li><li>
<li>
<div> <div>
<a title="The host device XML format" class="inactive" href="formatnode.html">Node Devices</a> <a title="The host device XML format" class="inactive" href="formatnode.html">Node Devices</a>
</div> </div>
</li> </li></ul>
</ul>
</div> </div>
</li> </li><li>
<li>
<div> <div>
<a title="Hypervisor specific driver information" class="inactive" href="drivers.html">Drivers</a> <a title="Hypervisor specific driver information" class="inactive" href="drivers.html">Drivers</a>
</div> </div>
</li> </li><li>
<li>
<div> <div>
<a title="Reference manual for the C public API" class="inactive" href="html/index.html">API reference</a> <a title="Reference manual for the C public API" class="inactive" href="html/index.html">API reference</a>
</div> </div>
</li> </li><li>
<li>
<div> <div>
<a title="Bindings of the libvirt API for other languages" class="inactive" href="bindings.html">Language bindings</a> <a title="Bindings of the libvirt API for other languages" class="inactive" href="bindings.html">Language bindings</a>
</div> </div>
</li> </li></ul>
</ul>
</div> </div>
</li> </li><li>
<li>
<div> <div>
<a title="User contributed content" class="inactive" href="http://wiki.libvirt.org">Wiki</a> <a title="User contributed content" class="inactive" href="http://wiki.libvirt.org">Wiki</a>
</div> </div>
</li> </li><li>
<li>
<div> <div>
<a title="Frequently asked questions" class="inactive" href="FAQ.html">FAQ</a> <a title="Frequently asked questions" class="inactive" href="FAQ.html">FAQ</a>
</div> </div>
</li> </li><li>
<li>
<div> <div>
<a title="How and where to report bugs and request features" class="inactive" href="bugs.html">Bug reports</a> <a title="How and where to report bugs and request features" class="inactive" href="bugs.html">Bug reports</a>
</div> </div>
</li> </li><li>
<li>
<div> <div>
<a title="How to contact the developers via email and IRC" class="inactive" href="contact.html">Contact</a> <a title="How to contact the developers via email and IRC" class="inactive" href="contact.html">Contact</a>
</div> </div>
</li> </li><li>
<li>
<div> <div>
<a title="Miscellaneous links of interest related to libvirt" class="inactive" href="relatedlinks.html">Related Links</a> <a title="Miscellaneous links of interest related to libvirt" class="inactive" href="relatedlinks.html">Related Links</a>
</div> </div>
</li> </li><li>
<li>
<div> <div>
<a title="Overview of all content on the website" class="inactive" href="sitemap.html">Sitemap</a> <a title="Overview of all content on the website" class="inactive" href="sitemap.html">Sitemap</a>
</div> </div>
</li> </li></ul>
</ul>
</div> </div>
<div id="content"> <div id="content">
<h1>Network XML format</h1> <h1>Network XML format</h1>
<ul> <ul><li>
<li>
<a href="#elements">Element and attribute overview</a> <a href="#elements">Element and attribute overview</a>
<ul> <ul><li>
<li>
<a href="#elementsMetadata">General metadata</a> <a href="#elementsMetadata">General metadata</a>
</li> </li><li>
<li>
<a href="#elementsConnect">Connectivity</a> <a href="#elementsConnect">Connectivity</a>
</li> </li><li>
<li>
<a href="#elementsAddress">Addressing</a> <a href="#elementsAddress">Addressing</a>
</li> </li></ul>
</ul> </li><li>
</li>
<li>
<a href="#examples">Example configuration</a> <a href="#examples">Example configuration</a>
<ul> <ul><li>
<li>
<a href="#examplesNAT">NAT based network</a> <a href="#examplesNAT">NAT based network</a>
</li> </li><li>
<li>
<a href="#examplesRoute">Routed network config</a> <a href="#examplesRoute">Routed network config</a>
</li> </li><li>
<li>
<a href="#examplesPrivate">Isolated network config</a> <a href="#examplesPrivate">Isolated network config</a>
</li> </li></ul>
</ul> </li></ul>
</li>
</ul>
<p> <p>
This page provides an introduction to the network XML format. For background This page provides an introduction to the network XML format. For background
information on the concepts referred to here, consult the <a href="archnetwork.html">network driver architecture</a> information on the concepts referred to here, consult the <a href="archnetwork.html">network driver architecture</a>
@ -195,25 +158,16 @@
&lt;name&gt;default&lt;/name&gt; &lt;name&gt;default&lt;/name&gt;
&lt;uuid&gt;3e3fce45-4f53-4fa7-bb32-11f34168b82b&lt;/uuid&gt; &lt;uuid&gt;3e3fce45-4f53-4fa7-bb32-11f34168b82b&lt;/uuid&gt;
...</pre> ...</pre>
<dl> <dl><dt><code>name</code></dt><dd>The content of the <code>name</code> element provides
<dt>
<code>name</code>
</dt>
<dd>The content of the <code>name</code> element provides
a short name for the virtual network. This name should a short name for the virtual network. This name should
consist only of alpha-numeric characters and is required consist only of alpha-numeric characters and is required
to be unique within the scope of a single host. It is to be unique within the scope of a single host. It is
used to form the filename for storing the persistent used to form the filename for storing the persistent
configuration file. <span class="since">Since 0.3.0</span></dd> configuration file. <span class="since">Since 0.3.0</span></dd><dt><code>uuid</code></dt><dd>The content of the <code>uuid</code> element provides
<dt>
<code>uuid</code>
</dt>
<dd>The content of the <code>uuid</code> element provides
a globally unique identifier for the virtual network. a globally unique identifier for the virtual network.
The format must be RFC 4122 compliant, eg <code>3e3fce45-4f53-4fa7-bb32-11f34168b82b</code>. The format must be RFC 4122 compliant, eg <code>3e3fce45-4f53-4fa7-bb32-11f34168b82b</code>.
If omitted when defining/creating a new network, a random If omitted when defining/creating a new network, a random
UUID is generated. <span class="since">Since 0.3.0</span></dd> UUID is generated. <span class="since">Since 0.3.0</span></dd></dl>
</dl>
<h3> <h3>
<a name="elementsConnect" id="elementsConnect">Connectivity</a> <a name="elementsConnect" id="elementsConnect">Connectivity</a>
</h3> </h3>
@ -226,11 +180,7 @@
&lt;bridge name="virbr0" /&gt; &lt;bridge name="virbr0" /&gt;
&lt;forward mode="nat" dev="eth0"/&gt; &lt;forward mode="nat" dev="eth0"/&gt;
...</pre> ...</pre>
<dl> <dl><dt><code>bridge</code></dt><dd>The <code>name</code> attribute on the <code>bridge</code> element
<dt>
<code>bridge</code>
</dt>
<dd>The <code>name</code> attribute on the <code>bridge</code> element
defines the name of a bridge device which will be used to construct defines the name of a bridge device which will be used to construct
the virtual network. The virtual machines will be connected to this the virtual network. The virtual machines will be connected to this
bridge device allowing them to talk to each other. The bridge device bridge device allowing them to talk to each other. The bridge device
@ -239,11 +189,7 @@
<code>virbr0</code> is reserved for the "default" virtual network. <code>virbr0</code> is reserved for the "default" virtual network.
This element should always be provided when defining a new network. This element should always be provided when defining a new network.
<span class="since">Since 0.3.0</span> <span class="since">Since 0.3.0</span>
</dd> </dd><dt><code>forward</code></dt><dd>Inclusion of the <code>forward</code> element indicates that
<dt>
<code>forward</code>
</dt>
<dd>Inclusion of the <code>forward</code> element indicates that
the virtual network is to be connected to the physical LAN. If the virtual network is to be connected to the physical LAN. If
no attributes are set, NAT forwarding will be used for connectivity. no attributes are set, NAT forwarding will be used for connectivity.
Firewall rules will allow forwarding to any other network device whether Firewall rules will allow forwarding to any other network device whether
@ -253,8 +199,7 @@
then the traffic will not have NAT applied. This presumes that the then the traffic will not have NAT applied. This presumes that the
local LAN router has suitable routing table entries to return traffic local LAN router has suitable routing table entries to return traffic
to this host. <span class="since">Since 0.3.0; 'mode' attribute since to this host. <span class="since">Since 0.3.0; 'mode' attribute since
0.4.2</span></dd> 0.4.2</span></dd></dl>
</dl>
<h3> <h3>
<a name="elementsAddress" id="elementsAddress">Addressing</a> <a name="elementsAddress" id="elementsAddress">Addressing</a>
</h3> </h3>
@ -270,36 +215,23 @@
&lt;/dhcp&gt; &lt;/dhcp&gt;
&lt;/ip&gt; &lt;/ip&gt;
&lt;/network&gt;</pre> &lt;/network&gt;</pre>
<dl> <dl><dt><code>ip</code></dt><dd>The <code>address</code> attribute defines an IPv4 address in
<dt>
<code>ip</code>
</dt>
<dd>The <code>address</code> attribute defines an IPv4 address in
dotted-decimal format, that will be configured on the bridge dotted-decimal format, that will be configured on the bridge
device associated with the virtual network. To the guests this device associated with the virtual network. To the guests this
address will be their default route. The <code>netmask</code> address will be their default route. The <code>netmask</code>
attribute defines the significant bits of the network address, attribute defines the significant bits of the network address,
again specified in dotted-decimal format. <span class="since">Since 0.3.0</span> again specified in dotted-decimal format. <span class="since">Since 0.3.0</span>
</dd> </dd><dt><code>dhcp</code></dt><dd>Immediately within the <code>ip</code> element there is an
<dt>
<code>dhcp</code>
</dt>
<dd>Immediately within the <code>ip</code> element there is an
optional <code>dhcp</code> element. The presence of this element optional <code>dhcp</code> element. The presence of this element
enables DHCP services on the virtual network. It will further enables DHCP services on the virtual network. It will further
contain one or more <code>range</code> elements. contain one or more <code>range</code> elements.
<span class="since">Since 0.3.0</span> <span class="since">Since 0.3.0</span>
</dd> </dd><dt><code>range</code></dt><dd>The <code>start</code> and <code>end</code> attributes on the
<dt>
<code>range</code>
</dt>
<dd>The <code>start</code> and <code>end</code> attributes on the
<code>range</code> element specify the boundaries of a pool of <code>range</code> element specify the boundaries of a pool of
IPv4 addresses to be provided to DHCP clients. These two addresses IPv4 addresses to be provided to DHCP clients. These two addresses
must lie within the scope of the network defined on the parent must lie within the scope of the network defined on the parent
<code>ip</code> element. <span class="since">Since 0.3.0</span> <code>ip</code> element. <span class="since">Since 0.3.0</span>
</dd> </dd></dl>
</dl>
<h2> <h2>
<a name="examples" id="examples">Example configuration</a> <a name="examples" id="examples">Example configuration</a>
</h2> </h2>
@ -319,7 +251,7 @@
&lt;network&gt; &lt;network&gt;
&lt;name&gt;default&lt;/name&gt; &lt;name&gt;default&lt;/name&gt;
&lt;bridge name="virbr0" /&gt; &lt;bridge name="virbr0" /&gt;
&lt;forward type="nat"/&gt; &lt;forward mode="nat"/&gt;
&lt;ip address="192.168.122.1" netmask="255.255.255.0"&gt; &lt;ip address="192.168.122.1" netmask="255.255.255.0"&gt;
&lt;dhcp&gt; &lt;dhcp&gt;
&lt;range start="192.168.122.2" end="192.168.122.254" /&gt; &lt;range start="192.168.122.2" end="192.168.122.254" /&gt;
@ -341,7 +273,7 @@
&lt;network&gt; &lt;network&gt;
&lt;name&gt;local&lt;/name&gt; &lt;name&gt;local&lt;/name&gt;
&lt;bridge name="virbr1" /&gt; &lt;bridge name="virbr1" /&gt;
&lt;forward type="route" dev="eth1"/&gt; &lt;forward mode="route" dev="eth1"/&gt;
&lt;ip address="192.168.122.1" netmask="255.255.255.0"&gt; &lt;ip address="192.168.122.1" netmask="255.255.255.0"&gt;
&lt;dhcp&gt; &lt;dhcp&gt;
&lt;range start="192.168.122.2" end="192.168.122.254" /&gt; &lt;range start="192.168.122.2" end="192.168.122.254" /&gt;

View File

@ -146,7 +146,7 @@
&lt;network&gt; &lt;network&gt;
&lt;name&gt;default&lt;/name&gt; &lt;name&gt;default&lt;/name&gt;
&lt;bridge name="virbr0" /&gt; &lt;bridge name="virbr0" /&gt;
&lt;forward type="nat"/&gt; &lt;forward mode="nat"/&gt;
&lt;ip address="192.168.122.1" netmask="255.255.255.0"&gt; &lt;ip address="192.168.122.1" netmask="255.255.255.0"&gt;
&lt;dhcp&gt; &lt;dhcp&gt;
&lt;range start="192.168.122.2" end="192.168.122.254" /&gt; &lt;range start="192.168.122.2" end="192.168.122.254" /&gt;
@ -169,7 +169,7 @@
&lt;network&gt; &lt;network&gt;
&lt;name&gt;local&lt;/name&gt; &lt;name&gt;local&lt;/name&gt;
&lt;bridge name="virbr1" /&gt; &lt;bridge name="virbr1" /&gt;
&lt;forward type="route" dev="eth1"/&gt; &lt;forward mode="route" dev="eth1"/&gt;
&lt;ip address="192.168.122.1" netmask="255.255.255.0"&gt; &lt;ip address="192.168.122.1" netmask="255.255.255.0"&gt;
&lt;dhcp&gt; &lt;dhcp&gt;
&lt;range start="192.168.122.2" end="192.168.122.254" /&gt; &lt;range start="192.168.122.2" end="192.168.122.254" /&gt;