华为交换机以 LACP 模式实现链路聚合

LACP 链路聚合模式简介

以太网链路聚合是指将多条以太网物理链路捆绑在一起成为一条逻辑链路,从而实现增加链路带宽的目的。链路聚合分为手工模式和LACP模式。

LACP模式需要有链路聚合控制协议LACP的参与。当需要在两个直连设备间提供一个较大的链路带宽而设备支持LACP协议时,建议使用LACP模式。LACP模式不仅可以实现增加带宽、提高可靠性、负载分担的目的,而且可以提高Eth-Trunk的容错性、提供备份功能。

LACP模式下,部分链路是活动链路,所有活动链路均参与数据转发。如果某条活动链路故障,链路聚合组自动在非活动链路中选择一条链路作为活动链路,参与数据转发的链路数目不变。

实验拓扑

各交换机配置

S1

sysname S1

#高优先级确定主动端
lacp priority 100

interface Eth-Trunk1
mode lacp-static

interface GigabitEthernet0/0/1
eth-trunk 1

interface GigabitEthernet0/0/2
eth-trunk 1
lacp priority 100

interface GigabitEthernet0/0/3
eth-trunk 1
lacp priority 100

S2

sysname S2

interface Eth-Trunk1
mode lacp-static

interface GigabitEthernet0/0/1
eth-trunk 1

interface GigabitEthernet0/0/2
eth-trunk 1
lacp priority 100

interface GigabitEthernet0/0/3
eth-trunk 1
lacp priority 100

实验结果

PC1 可以 Ping 通 PC2

链路聚合状态如下:

[S1]dis eth-trunk 1
Eth-Trunk1's state information is:
Local:
LAG ID: 1                   WorkingMode: STATIC                               
Preempt Delay: Disabled     Hash arithmetic: According to SIP-XOR-DIP         
System Priority: 100        System ID: 4c1f-ccc2-4fb8                         
Least Active-linknumber: 1  Max Active-linknumber: 8                          
Operate status: up          Number Of Up Port In Trunk: 2                     
--------------------------------------------------------------------------------
ActorPortName          Status   PortType PortPri PortNo PortKey PortState Weight
GigabitEthernet0/0/1   Unselect 1GE      32768   2      305     10110000  1     
GigabitEthernet0/0/2   Selected 1GE      100     3      305     10111100  1     
GigabitEthernet0/0/3   Selected 1GE      100     4      305     10111100  1     

Partner:
--------------------------------------------------------------------------------
ActorPortName          SysPri   SystemID        PortPri PortNo PortKey PortState
GigabitEthernet0/0/1   32768    4c1f-cc37-362e  32768   2      305     10100000
GigabitEthernet0/0/2   32768    4c1f-cc37-362e  100     3      305     10111100
GigabitEthernet0/0/3   32768    4c1f-cc37-362e  100     4      305     10111100

链路聚合注意事项

猜你喜欢

转载自www.cnblogs.com/GyForever1004/p/9238356.html