Re: Setting up a VLAN tagged bonding device

2019-03-28 Thread Sven Hartge
John W. M. Stevens  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.



Setting up a VLAN tagged bonding device

2019-03-28 Thread John W. M. Stevens
I've tried six different sets of instructions, and at this point, I'm at 
a loss.  Is it even possible to set up an 802.3ad bond that uses VLAN 
tagging under Debian 9.1?


I have a working setup with bonding.  I need to modify this setup to 
VLAN tag the bond.


The working setup is:

auto bond0
iface bond0 inet static
    address 10.10.110.222
    netmask 255.255.0.0
    network 10.10.0.0
    broadcast 10.10.255.255
    bond-mode 802.3ad
    bond-miimon 100
    bond-lacp-rate 1
    bond-min-links 1
    bond-xmit-hash-policy layer2
    bond-slaves eno3 eno4 enp3s0f1

auto eno3
iface eno3 inet manual
    bond-master bond0

auto eno4
iface eno4 inet manual
    bond-master bond0

auto enp3s0f1
iface enp3s0f1 inet manual
    bond-master bond0

This results in a /proc/net/bonding/bond0 output of:

# cat /proc/net/bonding/bond0
Ethernet Channel Bonding Driver: v3.7.1 (April 27, 2011)

Bonding Mode: IEEE 802.3ad Dynamic link aggregation
Transmit Hash Policy: layer2 (0)
MII Status: up
MII Polling Interval (ms): 100
Up Delay (ms): 0
Down Delay (ms): 0

802.3ad info
LACP rate: fast
Min links: 0
Aggregator selection policy (ad_select): stable
System priority: 65535
System MAC address: d0:94:66:04:fc:ed
Active Aggregator Info:
    Aggregator ID: 2
    Number of ports: 3
    Actor Key: 9
    Partner Key: 3
    Partner Mac Address: 00:1c:73:61:a9:25

Slave Interface: eno3
MII Status: up
Speed: 1000 Mbps
Duplex: full
Link Failure Count: 1
Permanent HW addr: d0:94:66:04:fc:ed
Slave queue ID: 0
Aggregator ID: 2
Actor Churn State: none
Partner Churn State: none
Actor Churned Count: 0
Partner Churned Count: 0
details actor lacp pdu:
    system priority: 65535
    system mac address: d0:94:66:04:fc:ed
    port key: 9
    port priority: 255
    port number: 1
    port state: 63
details partner lacp pdu:
    system priority: 8192
    system mac address: 00:1c:73:61:a9:25
    oper key: 3
    port priority: 32768
    port number: 9
    port state: 63

Slave Interface: eno4
MII Status: up
Speed: 1000 Mbps
Duplex: full
Link Failure Count: 1
Permanent HW addr: d0:94:66:04:fc:ef
Slave queue ID: 0
Aggregator ID: 2
Actor Churn State: none
Partner Churn State: none
Actor Churned Count: 0
Partner Churned Count: 0
details actor lacp pdu:
    system priority: 65535
    system mac address: d0:94:66:04:fc:ed
    port key: 9
    port priority: 255
    port number: 2
    port state: 63
details partner lacp pdu:
    system priority: 8192
    system mac address: 00:1c:73:61:a9:25
    oper key: 3
    port priority: 32768
    port number: 7
    port state: 63

Slave Interface: enp3s0f1
MII Status: up
Speed: 1000 Mbps
Duplex: full
Link Failure Count: 1
Permanent HW addr: 00:0a:f7:9e:74:0b
Slave queue ID: 0
Aggregator ID: 2
Actor Churn State: none
Partner Churn State: none
Actor Churned Count: 0
Partner Churned Count: 0
details actor lacp pdu:
    system priority: 65535
    system mac address: d0:94:66:04:fc:ed
    port key: 9
    port priority: 255
    port number: 3
    port state: 63
details partner lacp pdu:
    system priority: 8192
    system mac address: 00:1c:73:61:a9:25
    oper key: 3
    port priority: 32768
    port number: 8
    port state: 63

My attempt to VLAN tag this is:

auto eno3
iface eno3 inet manual
    bond-master bond0

auto eno4
iface eno4 inet manual
    bond-master bond0

auto enp3s0f1
iface enp3s0f1 inet manual
    bond-master bond0

auto bond0
iface bond0 inet manual
    pre-up ifconfig bond0 0.0.0.0 up
    bond-mode 802.3ad
    bond-miimon 100
    bond-downdelay 200
    bond-updelay 200
    bond-lacp-rate 1
    bond-min-links 1
    bond-xmit-hash-policy layer2
    bond-slaves eno3 eno4 enp3s0f1

auto bond0.10
iface bond0.10 inet static
    address 10.10.110.222
    netmask 255.255.0.0
    vlan-raw-device bond0

This results in what is clearly a non-working bond:

# cat /proc/net/bonding/bond0
Ethernet Channel Bonding Driver: v3.7.1 (April 27, 2011)

Bonding Mode: load balancing (round-robin)
MII Status: down
MII Polling Interval (ms): 100
Up Delay (ms): 200
Down Delay (ms): 200

Slave Interface: eno3
MII Status: down
Speed: 1000 Mbps
Duplex: full
Link Failure Count: 1
Permanent HW addr: d0:94:66:04:fb:3d
Slave queue ID: 0

Slave Interface: eno4
MII Status: down
Speed: 1000 Mbps
Duplex: full
Link Failure Count: 1
Permanent HW addr: d0:94:66:04:fb:3f
Slave queue ID: 0

Slave Interface: enp3s0f1
MII Status: down
Speed: Unknown
Duplex: Unknown
Link Failure Count: 1
Permanent HW addr: 00:0a:f7:9e:72:05
Slave queue ID: 0

None of the six sets of instructions I've tried has gotten me any closer 
to a working configuration.  Bringing up the slaves manually does not 
change anything except the status line of the slaves, though it is 
unclear to me if this is because the switch has not yet been reconfigured.


So, two questions:

1) Is this even supported?

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

Thanks,

John S.