Web lists-archives.com

Setting up a VLAN tagged bonding device




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.