Skip to content

PVE Bonding Configure

1. Bond setup

1.1 Aactive-Active mode (LACP)

Login PVE, select Node, and click Network -> Create -> Linux Bond

image-20251110122202154

Setup bond IPv4/CIDRGateway (IPv4),input Slaves device name, select bond ModeHash policy, and input Comment, then click Create

image-20251110123052211

Confirm network status, and click Apply Configuration

image-20251110123439997

1.2 Active-Backup mode

Click Create -> Linux Bond

image-20251110123825966

Setup bond IPv4/CIDRGateway (IPv4),input Slaves device name, select bond ModeHash policy, and input Comment, then click Create

image-20251110124127280

Confirm network status, and click Apply Configuration

image-20251110125146537

1.3 VLAN Configure

1.3.1 Create bridge

Click Create -> Linux Bridge

image-20251110124840140

Input bridge NameBridge ports, and check VLAN awareAdvanced, then input VLAN IDs and click Create

image-20251110125043134

1.3.2 Create VLAN

Click Create -> Linux VLAN

image-20251110125753251

Input bridge name.vlanid to bind the bridge with the VLAN ID

image-20251110125847993

1.3.3 Create sub-bridge

Click Create -> Linux Bridge

image-20251110130342964

Input sub-bridge NameBridge portsComment, then click Create

image-20251110130505436

Check all configure finish, then click Apply Configuration to finish

image-20251110130931402

2. Optional

PVE network configure file. (exa)

# network interface settings; autogenerated
# Please do NOT modify this file directly, unless you know what
# you're doing.
#
# If you want to manage parts of the network configuration manually,
# please utilize the 'source' or 'source-directory' directives to do
# so.
# PVE will preserve these directives, but will NOT read its network
# configuration from sourced files, so do not attempt to move any of
# the PVE managed interfaces into external files!

auto lo
iface lo inet loopback

auto eno12399
iface eno12399 inet manual

auto eno12409
iface eno12409 inet manual

iface eno12419 inet manual

iface eno12429 inet manual

auto ens3f0np0
iface ens3f0np0 inet manual

auto ens3f1np1
iface ens3f1np1 inet manual

auto ens6f0np0
iface ens6f0np0 inet manual

auto ens6f1np1
iface ens6f1np1 inet manual

auto ens7f0np0
iface ens7f0np0 inet manual

auto ens7f1np1
iface ens7f1np1 inet manual

auto bond0
iface bond0 inet static
    address 10.41.xx.xx/24
    gateway 10.41.xx.1
    bond-slaves ens3f0np0 ens6f0np0
    bond-miimon 100
    bond-mode 802.3ad
    bond-xmit-hash-policy layer2+3
#Manage

auto bond1
iface bond1 inet static
    address 192.168.xx.xx/24
    bond-slaves ens6f1np1 ens7f1np1
    bond-miimon 100
    bond-mode 802.3ad
    bond-xmit-hash-policy layer2+3
#Ceph

auto bond2
iface bond2 inet manual
    bond-slaves ens3f1np1 ens7f0np0
    bond-miimon 100
    bond-mode active-backup
    bond-primary ens3f1np1
#i4.0

auto bond3
iface bond3 inet manual
    bond-slaves eno12399 eno12409
    bond-miimon 100
    bond-mode active-backup
    bond-primary eno12399
#OALan

auto i40
iface i40 inet manual
    bridge-ports bond2
    bridge-stp off
    bridge-fd 0
    bridge-vlan-aware yes
    bridge-vids 239 241

auto i40.239
iface i40.239 inet manual

auto i40.241
iface i40.241 inet manual

auto ARM239
iface ARM239 inet manual
    bridge-ports i40.239
    bridge-stp off
    bridge-fd 0
#10.41.239

auto ARM241
iface ARM241 inet manual
    bridge-ports i40.241
    bridge-stp off
    bridge-fd 0
#10.41.241

auto oa
iface oa inet manual
    bridge-ports bond3
    bridge-stp off
    bridge-fd 0
    bridge-vlan-aware yes
    bridge-vids 200 210 220 230

auto oa.200
iface oa.200 inet manual

auto oa.210
iface oa.210 inet manual

auto oa.220
iface oa.220 inet manual

auto oa.230
iface oa.230 inet manual

auto OA20
iface OA20 inet manual
    bridge-ports oa.200
    bridge-stp off
    bridge-fd 0
#10.41.20

auto OA21
iface OA21 inet manual
    bridge-ports oa.210
    bridge-stp off
    bridge-fd 0
#10.41.21

auto OA22
iface OA22 inet manual
    bridge-ports oa.220
    bridge-stp off
    bridge-fd 0
#10.41.22

auto OA23
iface OA23 inet manual
    bridge-ports oa.230
    bridge-stp off
    bridge-fd 0
#10.41.23

source /etc/network/interfaces.d/*