mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
Domain network devices can now have a <route> element
Network interfaces devices and host devices with net capabilities can now have IPv4 and/or an IPv6 routes configured.
This commit is contained in:
@@ -37,6 +37,8 @@
|
||||
</source>
|
||||
<ip address='192.168.122.2' family='ipv4'/>
|
||||
<ip address='2003:db8:1:0:214:1234:fe0b:3596' family='ipv6' prefix='24'/>
|
||||
<route family='ipv4' via='192.168.122.1'/>
|
||||
<route family='ipv6' via='2003:db8:1:0:214:1234:fe0b:3595'/>
|
||||
</hostdev>
|
||||
</devices>
|
||||
</domain>
|
||||
|
||||
@@ -30,6 +30,8 @@
|
||||
<source bridge='bri0'/>
|
||||
<ip address='192.168.122.12' family='ipv4' prefix='24'/>
|
||||
<ip address='192.168.122.13' family='ipv4' prefix='24'/>
|
||||
<route family='ipv4' via='192.168.122.1'/>
|
||||
<route family='ipv4' via='192.168.124.1' address='192.168.124.0' prefix='24'/>
|
||||
<target dev='veth0'/>
|
||||
<guest dev='eth2'/>
|
||||
</interface>
|
||||
|
||||
Reference in New Issue
Block a user