bonding & vlan: switch config

mir

Famous Member
Apr 14, 2012
3,568
127
133
Copenhagen, Denmark
Hi all,

Given the following:

# network interface settings
auto lo
iface lo inet loopback
iface eth0 inet manual # switch P2
iface eth1 inet manual # switch P3


auto bond0
iface bond0 inet manual
slaves eth0 eth1
bond_miimon 100
bond_mode 4


auto bond0.2
iface bond0.2 inet manual
vlan-raw-device bond0


auto bond0.3
iface bond0.3 inet manual
vlan-raw-device bond0


auto bond0.4
iface bond0.4 inet manual
vlan-raw-device bond0


auto vmbr0
iface vmbr0 inet static # management interface
address 192.168.1.8
netmask 255.255.255.0
gateway 192.168.2.1
bridge_ports bond0.2
bridge_stp off
bridge_fd 0
auto vmbr1
iface vmbr1 inet static # Private subnet (192.168.2.0/24)
bridge_ports bond0.3
bridge_stp off
bridge_fd 0
auto vmbr1
iface vmbr2 inet static # public subnet (172.16.0.0/16)
bridge_ports bond0.4
bridge_stp off
bridge_fd 0

Switch:
vlan2: P1,2-3,4-9
vlan3: P1,2-3,10-11
vlan4: P1,2-3,12-13

P1: trunk

How should P2 and P3 be configured on the switch?
1) trunk
2) General untagged
 
Last edited:
Since you are using bond_mode 4 (802.3ad) then those switch ports need to be configured as 802.3ad.
How to do that will depend on what type of switch you have, your switch documentation should tell you what to do.

If you tell us what switch you have maybe someone here will know and can post the info.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!