背景描述:一個客戶搭建proxmox ve系統,要求上聯出口雙網卡綁定bond,
proxmox ve下載地址:超鏈接
記錄日期:2020/5/9
前期准備:服務器接好2個網卡
交換機:H3C
1、pve系統支持以下幾種bond模式
2、當交換機上的2個端口沒有lacp的時候,單純只做了端口聚合的時候只有第一模式網絡才可以通:balance-rr
其他幾個模式要么不通要么就是網絡掉包丟包影響訪問鏈接。
3、客戶要求LACP(802.3ad)模式或者最后一種balance-alb模式,這邊采用LACP模式,
4、貼出交換機配置文件和服務器網卡配置信息:
1 <SZHL-7F-3100-0325> 2 <SZHL-7F-3100-0325> 3 <SZHL-7F-3100-0325>sys 4 System View: return to User View with Ctrl+Z. 5 [SZHL-7F-3100-0325]int B 6 [SZHL-7F-3100-0325]int Bridge-Aggregation 1 7 [SZHL-7F-3100-0325-Bridge-Aggregation1]link-aggregation mode dynamic ##配置聚合模式為lacp 8 [SZHL-7F-3100-0325-Bridge-Aggregation1]dis this 9 # 10 interface Bridge-Aggregation1 11 link-aggregation mode dynamic 12 # 13 return 14 [SZHL-7F-3100-0325-Bridge-Aggregation1]int e1/0/14 15 [SZHL-7F-3100-0325-Ethernet1/0/14]port link-aggregation group 1 16 [SZHL-7F-3100-0325-Ethernet1/0/14]dis this 17 # 18 interface Ethernet1/0/14 19 port link-aggregation group 1 20 # 21 return 22 [SZHL-7F-3100-0325-Ethernet1/0/14]int e1/0/17 23 [SZHL-7F-3100-0325-Ethernet1/0/17]port link-aggregation group 1 24 [SZHL-7F-3100-0325-Ethernet1/0/17]dis this 25 # 26 interface Ethernet1/0/17 27 port link-aggregation group 1 28 # 29 return 30 [SZHL-7F-3100-0325-Ethernet1/0/17] 31 32 [SZHL-7F-3100-0325]dis link-aggregation verbose 33 34 Loadsharing Type: Shar -- Loadsharing, NonS -- Non-Loadsharing 35 Port Status: S -- Selected, U -- Unselected 36 Flags: A -- LACP_Activity, B -- LACP_Timeout, C -- Aggregation, 37 D -- Synchronization, E -- Collecting, F -- Distributing, 38 G -- Defaulted, H -- Expired 39 40 Aggregation Interface: Bridge-Aggregation1 41 Aggregation Mode: Dynamic 42 Loadsharing Type: Shar 43 System ID: 0x8000, 5866-bae7-30e6 44 Local: 45 Port Status Priority Oper-Key Flag 46 -------------------------------------------------------------------------------- 47 Eth1/0/14 S 32768 1 {ACDEF} 48 Eth1/0/17 U 32768 1 {AC} 49 Remote: 50 Actor Partner Priority Oper-Key SystemID Flag 51 -------------------------------------------------------------------------------- 52 Eth1/0/14 2 255 7 0xffff, 90b1-1c36-3487 {ACDEF} 53 Eth1/0/17 1 255 7 0xffff, 90b1-1c36-3487 {ACEF} 54 [SZHL-7F-3100-0325]
服務器端網卡配置:/etc/network/interfaces