OpenVZ Forum


Home » General » Support » Bonding eth0 and eth1 and use vlans in VE's does not work
Bonding eth0 and eth1 and use vlans in VE's does not work [message #43187] Thu, 04 August 2011 12:03 Go to next message
Gerard64 is currently offline  Gerard64
Messages: 6
Registered: August 2011
Location: Eijsden / The Netherlands
Junior Member
Wen I use vlans in VE's without bonding eth0 and eth1 vlans are working. Wen I bond eth0 and eth1 I can't get an ip from dhcp, the vlan device is not reaching the outside anymore. Wen I remove eth0 or eth1 from the bond0 it is working again.

In 2006 there was a bond driver patch (Sorry can't post any links yet) for this problem and in openvz 2.6.17 it was build in accrding to this post? (Sorry can't post any links yet).

Does anybody know how i can fix this? I'm running openvz 2.6.32-5 debian 6 squeeze on host system and in VE's.

This is my /etc/network/interfaces file:

auto bond0
iface bond0 inet manual
up ifconfig bond0 0.0.0.0 up
# slaves eth0 eth1
slaves eth0
bond_mode balance-rr
# bond_mode balance-tlb
# bond_mode active-backup
bond_miimon 100
bond_downdelay 200
bond_updelay 200

auto vmbr0
iface vmbr0 inet static
address 192.168.166.4
netmask 255.255.255.224
network 192.168.166.0
broadcast 192.168.166.31
gateway 192.168.166.1
bridge_ports bond0
bridge_fd 0
bridge_stp off
Re: Bonding eth0 and eth1 and use vlans in VE's does not work (SOLVED) [message #43363 is a reply to message #43187] Tue, 30 August 2011 22:16 Go to previous message
Gerard64 is currently offline  Gerard64
Messages: 6
Registered: August 2011
Location: Eijsden / The Netherlands
Junior Member
After searched and read some more about the problem I found a solution for it.

Quote:
vm2 was using mode 1 bonding (balance-rr) which does simple round-robin load balancing instead of mode 5 (balance-tlb) which does adaptive transmit load balancing. I changed this on vm2 to:

alias bond0 bonding
options bond0 miimon=80 mode=5

and rebooted. Problem solved!

Sorry can't post no url's yet.

[Updated on: Tue, 30 August 2011 22:18]

Report message to a moderator

Previous Topic: Upgrade VM Debian Lenny to Squeeze
Next Topic: kernel-debuginfo
Goto Forum:
  


Current Time: Tue Aug 13 02:19:46 GMT 2024

Total time taken to generate the page: 0.02985 seconds