On Mon, Jun 10, 2013 at 04:30:23PM +0530, Ashraf Khalid wrote:
> I wanted to know procedure to setup bridge on top of an existing
> bond interface which is configured using linux native bonding.
>
> I have configured "bond0" bond interface using eth1 and eth2 using
> mode=4 (alb) and LACP configured in the physical switches (stacked),
> and later tested it by assigning an IP address to the same, and it
> seems to be working just fine!
>
> Later I removed the IP Address from bond interface which I have
> created (but retained the bonding configurations), and now I want to
> create a bridge named "cloudbr" using open vswitch that has trunks
> defined for multiple VLANs to be channeled, and LACP also to be
> activated.
If you want to use LACP with the native Linux bonding, then you need
to enable it in the native LACP bonding, not in OVS. (I don't know
whether this configuration works anyway; no one has reported testing
it.)
> I have tried the same using ovs-vsctl command, but it is
> failing. I am getting confused on how to say that "cloudbr" should
> use the native linux bond interface (bond0) and I also do not know
> on how and where to configure the IP address for the VLAN. Do I need
> to create ports and interfaces for the "cloudbr" bridge? Can I
> assign IP address to the bridge itself, o rdo I need to assign it to
> the ports/interfaces? Anyway, I have failed to do so, and need your
> expert advice.
This is essentially the following FAQ. Tailored a little for your
case:
ovs-vsctl add-br cloudbr
ovs-vsctl add-port cloudbr bond0
ovs-vsctl add-port cloudbr vlan9 tag=9 -- set interface vlan9
type=internal
ifconfig vlan9 192.168.0.7
Q: Can I configure an IP address on a VLAN?
A: Yes. Use an "internal port" configured as an access port. For
example, the following configures IP address 192.168.0.7 on VLAN 9.
That is, OVS will forward packets from eth0 to 192.168.0.7 only if
they have an 802.1Q header with VLAN 9. Conversely, traffic
forwarded from 192.168.0.7 to eth0 will be tagged with an 802.1Q
header with VLAN 9:
ovs-vsctl add-br br0
ovs-vsctl add-port br0 eth0
ovs-vsctl add-port br0 vlan9 tag=9 -- set interface vlan9 type=internal
ifconfig vlan9 192.168.0.7
_______________________________________________
discuss mailing list
[email protected]
http://openvswitch.org/mailman/listinfo/discuss