链路聚合(端口汇聚)配置
合集下载
相关主题
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
实验环境:两台H3C E126A,Ethernet1/0/24、Ethernet1/0/23汇聚为一条链路。
手工汇聚:
第一台交换机的配置:
[H3CA]link-aggregation group 10 mode manual
[H3CA]interface ethernet 1/0/24
[H3CA]interface ethernet1/0/24
[H3CA-Ethernet1/0/24]port link-aggregation group 10
Can not specify a loopback-detection enable port as aggregation group member !
D -- Synchronization, E -- Collecting, F -- Distributing,
G -- Defaulted, H -- Expired
Aggregation ID: 10, AggregationType: Manual, Loadsharing Type: Shar
[H3CA-Ethernet1/0/24]undo loopback-detection enable
[H3CA-Ethernet1/0/24]port link-aggregation group 10
%Apr 1 23:58:48:162 2000 H3CA LAGG/3/PartnerNoLacp:- 1 -LACP is not enabled on
启动某端口的LACP协议后,该端口将通过发送LACPDU向对端通告自己的系统优先级、系统MAC、端口优先级、端口号和操作Key。对端接收到这些信息后,将这些信息与其它端口所保存的信息比较以选择能够汇聚的端口,从而双方可以对端口加入或退出某个动态汇聚组达成一致。
按照汇聚方式的不同,端口汇聚可以分为三类:手工汇聚、静态LACP汇聚、动态LACP汇聚。
[H3CB]
[H3CB]display link-aggregation verbose //显示详细信息
Loadsharing Type: Shar -- Loadsharing, NonS -- Non-Loadsharing
Flags: A -- LACP_Activity, B -- LACP_timeout, C -- Aggregation,
the remote end of port Ethernet
[H3CA-Ethernet1/0/24]interface ethernet1/0/23
[H3CA-Ethernet1/0/23]undo loopback-detection enable
[H3CA-Ethernet1/0/23]port link-aggregation group 10
Aggregation ID: 10, AggregationType: Static, Loadsharing Type: Shar
Aggregation Description:
System ID: 0x8000, 000f-e286-97be
Port Status: S -- Selected, U -- Unselected
[H3CA-Ethernet1/0/23]port link-aggregation group 10
[H3CA-Ethernet1/0/23]
第二台交换机的配置:
[H3CB]link-aggregation group 10 mode manual
[H3CB]interface ethernet1/0/24
Ethernet1/0/23:
Selected AggID: 10
Local:
Port-Priority: 32768, Oper key: 1, Flag: 0x00
Remote:
System ID: 0x0, 0000-0000-0000
Port Number: 0, Port-Priority: 0 , Oper-key: 0, Flag: 0x00
Remote:
System ID: 0x0, 0000-0000-0000
Port Number: 0, Port-Priority: 0 , Oper-key: 0, Flag: 0x00
[H3CB]display link-aggregation interface ethernet1/0/23
Aggregation Group Type -- Dynamic, S -- Static , M -- Manual
Loadsharing Type: Shar -- Loadsharing, NonS -- Non-Loadsharing
Actor ID: 0x8000, 000f-e2a8-2def
Local:
Port Status Priority Key Flag
--------------------------------------------------------------------------------
Ethernet1/0/23 S 32768 1 {ACDEF}
[H3CB-Ethernet1/0/24]interface ethernet1/0/23
[H3CB-Ethernet1/0/23]undo loopback-detection enable
[H3CB-Ethernet1/0/23]port link-aggregation group 10
[H3CA-Ethernet1/0/24]port link-aggregation group 10
Can not specify a loopback-detection enable port as aggregation group member !
[H3CA-Ethernet1/0/24]undo loopback-detection enable //关闭掉lookback-detection功能
Flags: A -- LACP_Activity, B -- LACP_timeout, C -- Aggregation,
D -- Synchronization, E -- Collecting, F -- Distributing,
G -- Defaulted, H -- Expired
Ethernet1/0/23 S 32768 1 {}
Ethernet1/0/24 S 32768 1 {}
Remote:
Actor Partner Priority Key SystemID Fla
g
--------------------------------------------------------------------------------
[H3CA-Ethernet1/0/23]
%Apr 1 23:59:52:016 2000 H3CA LAGG/3/PartnerNoLacp:- 1 -LACP is not enabled on
the remote end of port Ethernet1/0/23.
[H3CA-Ethernet1/0/23]
Aggregation Description:
System ID: 0x8000, 000f-e2a8-2def
Port Status: S -- Selected, U -- Unselected
Local:
Port Status Priority Key Flag
--------------------------------------------------------------------------------
[H3CB-Ethernet1/0/24]undo loopback-detection enable
[H3CB-Ethernet1/0/24]port link-aggregation group 10
[H3CB-Ethernet1/0/24]interface ethernet1/0/23
[H3CB]link-aggregation group 10 mode static
[H3CB]interface ethernet1/0/24
[H3CB-Ethernet1/0/24]undo loopback-detection enable
[H3CB-Ethernet1/0/24]port link-aggregation group 10
10 M none 2 0 Shar Ethernet1/0/23
[H3CB]
[H3CB]display link-aggregation interface ethernet1/0/24 //显示接口信息
Ethernet1/0/24:
Selected AggID: 10
Local:
Port-Priority: 32768, Oper key: 1, Flag: 0x00
链路聚合(端口汇聚)配置
端口汇聚是将多个以太网端口汇聚在一起形成一个逻辑上的汇聚组,使用汇聚服务的上层实体把同一汇聚组内的多条物理链路视为一条逻辑链路。
端口汇聚可以实现流量在汇聚组中各个成员端口之间进行分担,以增加带宽。同时,同一汇聚组的各个成员端口之间彼此动态备份,提高了连接可靠性。
AL AL Partner ID Select Unselect Share Master
ID Type Ports Ports Type Port
--------------------------------------------------------------------------------
基于IEEE802.3ad标准的LACP(Link Aggregation Control Protocol,链路汇聚控制协议)是一种实现链路动态汇聚与解汇聚的协议。LACP协议通过LACPDU(Link Aggregation Control Protocol Data Unit,链路汇聚控制协议数据单元)与对端交互信息。
[H3CB-Ethernet1/0/23]undo loopback-detection enable
[H3CB-Ethernet1/0/23]port link-aggregation group 10
[H3CB-Ethernet1/0/23]
显示相关信息:
[H3CB]display link-aggregation summary //显示摘要信息
[H3CB-Ethernet1/0/23]quit
[H3CB]
[H3CA-Ethernet1/0/23]display link-aggregation verbose
Loadsharing Type: Shar -- Loadsharing, NonS -- Non-Loadsharing
Ethernet1/0/24 S 32768 1 {ACDEF}
Remote:
Actor Partner Priority Key SystemID Fla
g பைடு நூலகம்
--------------------------------------------------------------------------------
[H3CA-Ethernet1/0/24]port link-aggregation group 10
[H3CA-Ethernet1/0/24]
[H3CA]interface ethernet1/0/23
[H3CA-Ethernet1/0/23]undo loopback-detection enable
Ethernet1/0/23 0 0 0 0x0000,0000-0000-0000 {}
Ethernet1/0/24 0 0 0 0x0000,0000-0000-0000 {}
[H3CB]
LACP静态配置及显示信息:
[H3CA]link-aggregation group 10 mode static
手工汇聚:
第一台交换机的配置:
[H3CA]link-aggregation group 10 mode manual
[H3CA]interface ethernet 1/0/24
[H3CA]interface ethernet1/0/24
[H3CA-Ethernet1/0/24]port link-aggregation group 10
Can not specify a loopback-detection enable port as aggregation group member !
D -- Synchronization, E -- Collecting, F -- Distributing,
G -- Defaulted, H -- Expired
Aggregation ID: 10, AggregationType: Manual, Loadsharing Type: Shar
[H3CA-Ethernet1/0/24]undo loopback-detection enable
[H3CA-Ethernet1/0/24]port link-aggregation group 10
%Apr 1 23:58:48:162 2000 H3CA LAGG/3/PartnerNoLacp:- 1 -LACP is not enabled on
启动某端口的LACP协议后,该端口将通过发送LACPDU向对端通告自己的系统优先级、系统MAC、端口优先级、端口号和操作Key。对端接收到这些信息后,将这些信息与其它端口所保存的信息比较以选择能够汇聚的端口,从而双方可以对端口加入或退出某个动态汇聚组达成一致。
按照汇聚方式的不同,端口汇聚可以分为三类:手工汇聚、静态LACP汇聚、动态LACP汇聚。
[H3CB]
[H3CB]display link-aggregation verbose //显示详细信息
Loadsharing Type: Shar -- Loadsharing, NonS -- Non-Loadsharing
Flags: A -- LACP_Activity, B -- LACP_timeout, C -- Aggregation,
the remote end of port Ethernet
[H3CA-Ethernet1/0/24]interface ethernet1/0/23
[H3CA-Ethernet1/0/23]undo loopback-detection enable
[H3CA-Ethernet1/0/23]port link-aggregation group 10
Aggregation ID: 10, AggregationType: Static, Loadsharing Type: Shar
Aggregation Description:
System ID: 0x8000, 000f-e286-97be
Port Status: S -- Selected, U -- Unselected
[H3CA-Ethernet1/0/23]port link-aggregation group 10
[H3CA-Ethernet1/0/23]
第二台交换机的配置:
[H3CB]link-aggregation group 10 mode manual
[H3CB]interface ethernet1/0/24
Ethernet1/0/23:
Selected AggID: 10
Local:
Port-Priority: 32768, Oper key: 1, Flag: 0x00
Remote:
System ID: 0x0, 0000-0000-0000
Port Number: 0, Port-Priority: 0 , Oper-key: 0, Flag: 0x00
Remote:
System ID: 0x0, 0000-0000-0000
Port Number: 0, Port-Priority: 0 , Oper-key: 0, Flag: 0x00
[H3CB]display link-aggregation interface ethernet1/0/23
Aggregation Group Type -- Dynamic, S -- Static , M -- Manual
Loadsharing Type: Shar -- Loadsharing, NonS -- Non-Loadsharing
Actor ID: 0x8000, 000f-e2a8-2def
Local:
Port Status Priority Key Flag
--------------------------------------------------------------------------------
Ethernet1/0/23 S 32768 1 {ACDEF}
[H3CB-Ethernet1/0/24]interface ethernet1/0/23
[H3CB-Ethernet1/0/23]undo loopback-detection enable
[H3CB-Ethernet1/0/23]port link-aggregation group 10
[H3CA-Ethernet1/0/24]port link-aggregation group 10
Can not specify a loopback-detection enable port as aggregation group member !
[H3CA-Ethernet1/0/24]undo loopback-detection enable //关闭掉lookback-detection功能
Flags: A -- LACP_Activity, B -- LACP_timeout, C -- Aggregation,
D -- Synchronization, E -- Collecting, F -- Distributing,
G -- Defaulted, H -- Expired
Ethernet1/0/23 S 32768 1 {}
Ethernet1/0/24 S 32768 1 {}
Remote:
Actor Partner Priority Key SystemID Fla
g
--------------------------------------------------------------------------------
[H3CA-Ethernet1/0/23]
%Apr 1 23:59:52:016 2000 H3CA LAGG/3/PartnerNoLacp:- 1 -LACP is not enabled on
the remote end of port Ethernet1/0/23.
[H3CA-Ethernet1/0/23]
Aggregation Description:
System ID: 0x8000, 000f-e2a8-2def
Port Status: S -- Selected, U -- Unselected
Local:
Port Status Priority Key Flag
--------------------------------------------------------------------------------
[H3CB-Ethernet1/0/24]undo loopback-detection enable
[H3CB-Ethernet1/0/24]port link-aggregation group 10
[H3CB-Ethernet1/0/24]interface ethernet1/0/23
[H3CB]link-aggregation group 10 mode static
[H3CB]interface ethernet1/0/24
[H3CB-Ethernet1/0/24]undo loopback-detection enable
[H3CB-Ethernet1/0/24]port link-aggregation group 10
10 M none 2 0 Shar Ethernet1/0/23
[H3CB]
[H3CB]display link-aggregation interface ethernet1/0/24 //显示接口信息
Ethernet1/0/24:
Selected AggID: 10
Local:
Port-Priority: 32768, Oper key: 1, Flag: 0x00
链路聚合(端口汇聚)配置
端口汇聚是将多个以太网端口汇聚在一起形成一个逻辑上的汇聚组,使用汇聚服务的上层实体把同一汇聚组内的多条物理链路视为一条逻辑链路。
端口汇聚可以实现流量在汇聚组中各个成员端口之间进行分担,以增加带宽。同时,同一汇聚组的各个成员端口之间彼此动态备份,提高了连接可靠性。
AL AL Partner ID Select Unselect Share Master
ID Type Ports Ports Type Port
--------------------------------------------------------------------------------
基于IEEE802.3ad标准的LACP(Link Aggregation Control Protocol,链路汇聚控制协议)是一种实现链路动态汇聚与解汇聚的协议。LACP协议通过LACPDU(Link Aggregation Control Protocol Data Unit,链路汇聚控制协议数据单元)与对端交互信息。
[H3CB-Ethernet1/0/23]undo loopback-detection enable
[H3CB-Ethernet1/0/23]port link-aggregation group 10
[H3CB-Ethernet1/0/23]
显示相关信息:
[H3CB]display link-aggregation summary //显示摘要信息
[H3CB-Ethernet1/0/23]quit
[H3CB]
[H3CA-Ethernet1/0/23]display link-aggregation verbose
Loadsharing Type: Shar -- Loadsharing, NonS -- Non-Loadsharing
Ethernet1/0/24 S 32768 1 {ACDEF}
Remote:
Actor Partner Priority Key SystemID Fla
g பைடு நூலகம்
--------------------------------------------------------------------------------
[H3CA-Ethernet1/0/24]port link-aggregation group 10
[H3CA-Ethernet1/0/24]
[H3CA]interface ethernet1/0/23
[H3CA-Ethernet1/0/23]undo loopback-detection enable
Ethernet1/0/23 0 0 0 0x0000,0000-0000-0000 {}
Ethernet1/0/24 0 0 0 0x0000,0000-0000-0000 {}
[H3CB]
LACP静态配置及显示信息:
[H3CA]link-aggregation group 10 mode static