Bridge on bonding interface

gdseb

Member
Sep 20, 2021
3
0
6
52
Hello,

I have configured my NIC with a bond interface (mode balance-rr). And it works great. the network switch correctly between wlp2s0 and enp1s0.
But when i add bridge interface for Proxmox the bond stopped to work (in fact, wlp2s0 state become UP to DORMANT/DOWN)

My bonding seems correct (and worked and no bridge is configured)

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

Bonding Mode: load balancing (round-robin)
MII Status: up
MII Polling Interval (ms): 0
Up Delay (ms): 0
Down Delay (ms): 0
Peer Notification Delay (ms): 0

Slave Interface: enp1s0
MII Status: up
Speed: 100 Mbps
Duplex: full
Link Failure Count: 0
Permanent HW addr: 84:47:09:05:e0:3a
Slave queue ID: 0

Slave Interface: wlp2s0
MII Status: up
Speed: Unknown
Duplex: Unknown
Link Failure Count: 0
Permanent HW addr: 4c:79:6e:af:b3:42
Slave queue ID: 0

but

ip a|grep state
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
2: enp1s0: <BROADCAST,MULTICAST,SLAVE,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast master bond0 state UP group default qlen 1000
3: wlp2s0: <NO-CARRIER,BROADCAST,MULTICAST,SLAVE,UP,LOWER_UP> mtu 1500 qdisc noqueue master bond0 state DORMANT group default qlen 1000
4: bond0: <BROADCAST,MULTICAST,MASTER,UP,LOWER_UP> mtu 1500 qdisc noqueue master vmbr0 state UP group default qlen 1000
5: vmbr0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000


See my /etc/network/interface :
auto lo
iface lo inet loopback

auto enp1s0
iface enp1s0 inet manual
bond-master bond0

auto wlp2s0
iface wlp2s0 inet manual
bond-master bond0
#bond-primary enp1s0 wlp2s0
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
#wpa-ssid "Home"
#wpa-psk "WIFscmj$44"

auto bond0
iface bond0 inet static
address 192.168.0.14/24
gateway 192.168.0.1
bond-miimon 80
bond-downdelay 200
bond-updelay 200

auto vmbr0
iface vmbr0 inet static
address 192.168.0.14/24
gateway 192.168.0.1
bridge-ports bond0
bridge-stp off
bridge-fd 0


What's wrong ?

Bridge over Bond in balance-rr mode si compatible ?
Or bad configuration ?
Regards

DEBIAN BUSTER / PROMOX 6
 
when you add an interface in a bridge, you need to remove ip adddress from the interface and put in the bridge.
(if you use the proxmox gui to configure ot, you'll have an warning/error if you try to put a interface with ip address in a bridge) .

use

Code:
auto bond0
iface bond0 inet manual
   bond-miimon 80
   bond-downdelay 200
   bond-updelay 200

auto vmbr0
iface vmbr0 inet static
    address 192.168.0.14/24
    gateway 192.168.0.1
    bridge-ports bond0
    bridge-stp off
    bridge-fd 0