On Fri, Oct 05, 2018 at 08:42:39PM +0000, Srinivas via discuss wrote:
> Hello, I have a physical box with the following interface config. Note that
> vlans are already configured as child interfaces on the main bond0 interface.
> bond0: ipaddr 10.2.34.29 (native and untagged traffic)
> bond0.11: ipaddr 172.30.11.28 (traffic for vlan 11) bond0.12:
> ipaddr 172.30.12.21 (traffic for vlan 12)
> Now i want to create three guest machines vm1 , vm2 and vm3 using kvm
> with vm1 for native/untagged traffic and vm2 on vlan 11 and vm3 on vlan12.
> My questions are a) Can i do this using a single bridge?b) what
> would the bridge config look like? Would i need to use fake bridges and move
> bond0.11 and bond0.12 to the fake bridges?c) Can i leave my bond0.11 and
> bond0.12 as is just move the bond0 under a ovs bridge bridge1 and set the
> vnet ports for vm2 and vm3 as access ports for vlan 11 and vlan 12
> respectively and vnet port for vm1 as untagged?
I think you can do something like this:
ovs-vsctl \
-- add-br br0 \
-- add-port br0 bond0 tag=0 \
-- add-port br0 bond0.11 tag=11 \
-- add-port br0 bond0.12 tag=12 \
-- add-port br0 vm1 tag=0 \
-- add-port br0 vm2 tag=11 \
-- add-port br0 vm3 tag=12
I wouldn't leave anything without a tag, that would make it a trunk
port.
If you didn't break out the child interfaces from bond0 then it could be
simpler:
ovs-vsctl \
-- add-br br0 \
-- add-port br0 bond0 \
-- add-port br0 vm1 tag=0 \
-- add-port br0 vm2 tag=11 \
-- add-port br0 vm3 tag=12
_______________________________________________
discuss mailing list
[email protected]
https://mail.openvswitch.org/mailman/listinfo/ovs-discuss