[PVE-User] PVE Bonding and Bridging howto

ijez ijez76 at gmail.com
Tue May 13 13:04:31 CEST 2008


Hi,

Ok, after wrestler a couple of hours with the configurations and with help from google and debian man pages, I manage to setup 2 bonding interface then bridging the bonding interface with vmbr0. 

Here is how I do manage to do it, it maybe useful for other who have a similar setup like me, and not so familiar with debian.

1. Download ifenslave-2.6 package using :

--------------------------------------------
#apt-get install ifenslave-2.6
--------------------------------------------

PVE v0.9Beta have some bug in the source.list, you need to edit /etc/apt/sources.list and change the first line read :

deb http://ftp.debian.org/debian etch main

into 

deb ftp://ftp.debian.org/debian etch main

and run :

#apt-get update

before you install ifenslave-2.6. Thanks to Dietmar Maurer to point that out.

2. Edit /etc/modprobe.d/arch/i386 and add :

--------------------------------------------
alias bond0 bonding
options bonding mode=5 miimon=100
--------------------------------------------

I'm using Load Balancing Mode here hence mode=5.

3. update your newly add module by running :

---------------------------------------------
#update-modules
---------------------------------------------

4. Edit the /etc/network/interface to have :

---------------------------------------------
auto bond0
iface bond0 inet manual
    slaves eth0 eth1
    pre-up /sbin/ifconfig bond0 up
    pre-up ip link set $IFACE up
    down ip link set $IFACE down

auto vmbr0
iface vmbr0 inet static
    address xxx.xxx.xxx.xxx
    netmask 255.xxx.xxx.xxx
    gateway xxx.xxx.xxx.xxx
    bridge_ports bond0
---------------------------------------------

4. restart networking service by running :

---------------------------------------------
#invoke-rc.d networking restart
---------------------------------------------

You could just restart the server to be "sure to be sure" by running init 6

5. Done! :)


Thanks and Regards,




More information about the pve-user mailing list