Web lists-archives.com

Re: Setting up a VLAN tagged bonding device




John W. M. Stevens <john@xxxxxxxxxxxxx> wrote:

> 2) Does anybody have a working example configuration for such a thing?

Sure.

Please not I don't use any configuration for int0, int1, ext0 and ext1.
You need to do that on Ubuntu because of something they broke.  It is
not needed in Debian.

This is the fill working configuration from one of my production
routers:

-----------8<--------------

### internal network

auto bond0
iface bond0 inet manual
  bond_mode 802.3ad
  bond_miimon 100 
  bond_updelay 1000
  bond_lacp_rate slow
  bond_xmit_hash_policy layer2+3
  slaves int0 int1

auto bond0.135
iface bond0.135 inet static
  address xxx.yyy.14.218
  netmask 255.255.255.248
  up ip route add 10.0.0.0/8 via xxx.yyy.14.220 dev $IFACE
  up ip route add 172.16.0.0/12 via xxx.yyy.14.220 dev $IFACE
  up ip route add 192.168.0.0/16 via xxx.yyy.14.220 dev $IFACE

### external network

auto bond1
iface bond1 inet manual
  bond_mode 802.3ad
  bond_miimon 100 
  bond_updelay 1000
  bond_lacp_rate slow
  bond_xmit_hash_policy layer2+3
  slaves ext0 ext1

auto bond1.160
iface bond1.160 inet static
  address xxx.yyy.14.213
  netmask 255.255.255.248
  gateway xxx.yyy.14.209

-----------8<--------------

Grüße,
Sven.

-- 
Sigmentation fault. Core dumped.