proxmox ve系统绑定上联外网出口bond双网卡
背景描述:一个客户搭建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
专业从事搬砖多年,还是在继续搬砖中,厚积薄发~