华为交换机和华三交换机之间如何建立链路聚合?
发布日期:
2022-03-11

如何建立链路聚合?对于企业来说,为了保障信息安全,在接入汇聚或汇聚到核心的链路时一般都会做链路备份,且交换机互连的过程中很多时候都会采用链路聚合,让多条聚合链路同时工作在负载分担模式下,这样不仅可以增加链路带宽,同时还能让各个成员端口互为动态备份。现在就带大家来熟悉一下如何在华为交换机和华三交换机之间进行简易的链路聚合配置,希望能对大家有所帮助。 

华为配置:

创建链路聚合接口

interface Eth-Trunk 0

 

进入物理接口,并把物理接口加入到聚合口中

interface XGigabitEthernet0/0/1

 eth-trunk 0

interface XGigabitEthernet0/0/2

 eth-trunk 0

 

在链路聚合口中更改接口模式

interface Eth-Trunk 0

  port link-type trunk

 port trunk allow-pass vlan all

缺省情况下,Eth-Trunk的工作模式为手工负载分担模式,该模式下所有活动链路都参与数据的转发,平均分担流量,因此称为负载分担模式。

 

检查聚合口状态

dis interface Eth-Trunk 0

Eth-Trunk0 current state : DOWN

Line protocol current state : DOWN

Switch Port, Link-type : trunk(configured),

IP Sending Frames' Format is PKTFMT_ETHNT_2, Hardware address is 0427-5820-dcb0

    Input bandwidth utilization  : 0.01%

    Output bandwidth utilization :    0%

-----------------------------------------------------

PortName                      Status      Weight

-----------------------------------------------------

XGigabitEthernet0/0/1        down          1

XGigabitEthernet0/0/2        down          1

-----------------------------------------------------

The Number of Ports in Trunk : 2

The Number of UP Ports in Trunk : 0

 

华三配置:

创建链路聚合接口

interface Bridge-Aggregation 20

 

进入物理接口视图,并把接口加入到聚合口下

interface Ten-GigabitEthernet0/0/1

 port link-aggregation group 20

 

interface Ten-GigabitEthernet0/0/2

 port link-aggregation group 20

 

在链路聚合口中更改接口模式

interface Bridge-Aggregation16

 port link-type trunk

 port trunk permit vlan all

 

检查链路聚合接口状态

display link-aggregation verbose Bridge-Aggregation 20

Loadsharing Type: Shar -- Loadsharing, NonS -- Non-Loadsharing

Port Status: S -- Selected, U -- Unselected, I -- Individual

Port: A -- Auto port, M -- Management port, R -- Reference port

Flags:  A -- LACP_Activity, B -- LACP_Timeout, C -- Aggregation,

        D -- Synchronization, E -- Collecting, F -- Distributing,

        G -- Defaulted, H -- Expired

 

Aggregate Interface: Bridge-Aggregation16

Aggregation Mode: Static

Loadsharing Type: Shar

Management VLANs: None

  Port             Status  Priority Oper-Key

  XGE0/0/1(R)     S       32768    1         

  XGE0/0/2       S       32768    1   

 

display interface Bridge-Aggregation 20 brief

Brief information on interfaces in bridge mode:

Link: ADM - administratively down; Stby - standby

Speed: (a) - auto

Duplex: (a)/A - auto; H - half; F - full

Type: A - access; T - trunk; H - hybrid

Interface            Link Speed   Duplex Type PVID Description                

BAGG20               UP   20G(a)  F(a)   T    1