PVE Bonding Configure¶
1. Bond setup¶
1.1 Aactive-Active mode (LACP)¶
Login PVE, select
Node, and clickNetwork->Create->Linux Bond
Setup bond
IPv4/CIDR、Gateway (IPv4),inputSlavesdevice name, select bondMode、Hash policy, and inputComment, then clickCreate
Confirm network status, and click
Apply Configuration
1.2 Active-Backup mode¶
Click
Create->Linux Bond
Setup bond
IPv4/CIDR、Gateway (IPv4),inputSlavesdevice name, select bondMode、Hash policy, and inputComment, then clickCreate
Confirm network status, and click
Apply Configuration
1.3 VLAN Configure¶
1.3.1 Create bridge¶
Click
Create->Linux Bridge
Input bridge
Name、Bridge ports, and checkVLAN aware、Advanced, then inputVLAN IDsand clickCreate
1.3.2 Create VLAN¶
Click
Create->Linux VLAN
Input
bridge name.vlanidto bind the bridge with theVLAN ID
1.3.3 Create sub-bridge¶
Click
Create->Linux Bridge
Input sub-bridge
Name、Bridge ports、Comment, then clickCreate
Check all configure finish, then click
Apply Configurationto finish
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/*












