mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
Domain conf: allow more than one IP address for net devices
Add the possibility to have more than one IP address configured for a domain network interface. IP addresses can also have a prefix to define the corresponding netmask.
This commit is contained in:
@@ -4321,6 +4321,29 @@ qemu-kvm -net nic,model=? /dev/null
|
||||
<span class="since">Since 0.9.5</span>
|
||||
</p>
|
||||
|
||||
<h5><a name="ipconfig">IP configuration</a></h5>
|
||||
<pre>
|
||||
...
|
||||
<devices>
|
||||
<interface type='network'>
|
||||
<source network='default'/>
|
||||
<target dev='vnet0'/>
|
||||
<b><ip family='ipv4' address='192.168.122.5' prefix='24'/></b>
|
||||
</interface>
|
||||
</devices>
|
||||
...
|
||||
</pre>
|
||||
|
||||
<p>
|
||||
<span class="since">Since 1.2.12</span> the network devices and host devices
|
||||
with network capabilities can be provided zero or more IP addresses to set
|
||||
on the target device. Note that some hypervisors or network device types
|
||||
will simply ignore them or only use the first one. The <code>family</code>
|
||||
attribute can be set to either <code>ipv4</code> or <code>ipv6</code>, the
|
||||
<code>address</code> attribute holds the IP address. The <code>prefix</code>
|
||||
is not mandatory since some hypervisors do not handle it.
|
||||
</p>
|
||||
|
||||
<h5><a name="elementVhostuser">vhost-user interface</a></h5>
|
||||
|
||||
<p>
|
||||
|
||||
Reference in New Issue
Block a user