OpenVZ Forum


Home » General » Support » Ethernet bonding with bridge device on CentOS 5.3
Re: Ethernet bonding with bridge device on CentOS 5.3 [message #37782 is a reply to message #37781] Tue, 20 October 2009 21:29 Go to previous messageGo to previous message
batfastad is currently offline  batfastad
Messages: 15
Registered: September 2009
Location: London, UK
Junior Member
Hi ramjet
Thanks for the info - good news that this is possible!

Yes I want all VEs and the host to be on the same subnet.
No iptables and no tagged VLAN

Yeah I would really appreciate a bit more info on this though if that's ok

Quote:
Then add your bond0 and the veth devices of your servers to the bridge. Make sure the bridge is up - either ifconfig br0 0 or ifconfig br0 up and enable forwarding for br0 in /proc.


So create the bond per this guide... http://wiki.openvz.org/Bonding

Then create the bridge, add VEs to the bridge, add the bond to the bridge
So following this guide... http://wiki.openvz.org/Veth#Virtual_Ethernet_devices_can_be_ joined_in_one_bridge
These are the commands I'll need to run:
[host-node]# brctl addbr vzbr0
[host-node]# brctl addif vzbr0 veth102.0
[host-node]# brctl addif vzbr0 veth103.0
[host-node]# brctl addif vzbr0 bond0

[host-node]# ifconfig vzbr0 0
[host-node]# echo 1 > /proc/sys/net/ipv4/conf/vzbr0/forwarding
[host-node]# echo 1 > /proc/sys/net/ipv4/conf/vzbr0/proxy_arp


But possibly missing the proxy_arp bit... what's the proxy_arp for?
Just read up about it and not sure if I'll need it or not. Doesn't the switch normally deal with arp/mac address/ip translation?
One VE will be a zimbra mail container.
Another will be a Samba/Netatalk/Apache/MySQL container which is our combined NAS/intranet DB system.

Sounds like something like Samba might need proxy_arp enabled for broadcasting whatever it needs to broadcast.

And would I need to do this bit?
http://wiki.openvz.org/Veth#Add_routes_in_CT0
I'm guessing I'd still need to do that but its only for the VE addresses, nothing to do with the bond0

Thanks for all your help... so far Wink
 
Read Message icon5.gif
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: iptables v1.3.5: can't initialize iptables table `mangle': Table does not exist (do you need to insm
Next Topic: Has ext4 (prod) been backported to 2.6.27?
Goto Forum:
  


Current Time: Mon Sep 16 20:30:29 GMT 2024

Total time taken to generate the page: 0.04787 seconds