10-端口汇聚命令
本章节下载 (111.86 KB)
目 录
1.1.2 display link-aggregation interface
1.1.3 display link-aggregation summary
1.1.4 display link-aggregation verbose
1.1.9 link-aggregation group description
1.1.10 link-aggregation group mode
1.1.11 port link-aggregation group
【命令】
display lacp system-id
【视图】
任意视图
【参数】
无
【描述】
display lacp system-id命令用来显示本端系统的设备ID,包括:系统优先级与系统MAC地址。
【举例】
# 显示本端系统的设备ID。
<H3C> display lacp system-id
Actor System ID: 0x8000, 00e0-fc00-0100
表1-1 display lacp system-id命令显示信息描述表
字段 |
描述 |
Actor System ID |
本端系统的设备ID(包括:系统优先级与系统MAC地址) |
【命令】
display link-aggregation interface interface-type interface-number [ to interface-type interface-number ]
【视图】
任意视图
【参数】
interface interface-type interface-number [ to interface-type interface-number ]:指定端口。
l 不使用to关键字时,只指定一个端口;
l 使用to关键字时,可以指定多个连续的端口。
l interface-type为端口类型,interface-num为端口编号。
【描述】
display link-aggregation interface命令用来显示指定端口的端口汇聚的详细信息,包括:
l 指定端口所在聚合组ID
l 本端的端口优先级、操作Key、LACP协议状态标志
l 对端的设备ID、端口号、端口优先级、操作Key、标志,LACP协议报文统计信息。
需要注意的是,由于手工汇聚组无法获知对端信息,因此对端的各项显示均为0,并不代表对方系统实际信息。
【举例】
# 显示指定端口的端口汇聚的详细信息。
<H3C> display link-aggregation interface ethernet2/0/1
Ethernet2/0/1:
Attached AggID: 20
Local:
Port-Priority: 32768, Oper key: 2, Flag: 0x3d
Remote:
System ID: 0x8000, 000e-84a6-fb00
Port Number: 2, Port-Priority: 32768 , Oper-key: 10, Flag: 0x3d
Received LACP Packets: 8 packet(s), Illegal: 0 packet(s)
Sent LACP Packets: 9 packet(s)
表1-2 display link-aggregation interface命令显示信息描述表
字段 |
描述 |
Attached AggID |
指定端口所在聚合组ID |
Local: Port-Priority: 32768, Oper key: 1, Flag: 0x00 |
本端的端口优先级、操作Key、LACP协议状态标志 |
Remote: System ID: 0x0, 0000-0000-0000 Port Number: 0, Port-Priority: 0, Oper-key: 0, Flag: 0x00 |
对端的设备ID、端口号、端口优先级、操作Key、标志 |
Received LACP Packets: 0 packect(s), Illegal: 0 packect(s) Sent LACP Packets: 0 packect(s) |
LACP协议报文统计信息,包含接收的LACP报文数、非法的报文数及发送的LACP报文数 |
【命令】
display link-aggregation summary
【视图】
任意视图
【参数】
无
【描述】
display link-aggregation summary命令用来显示当前所有汇聚组的摘要信息,包括:本端设备ID、聚合组ID、汇聚组类型、对端设备ID、Selected端口数、Standby端口数、负载分担类型及主端口号。
【举例】
# 显示汇聚组的摘要信息。
<H3C> display link-aggregation summary
Aggregation Group Type: D -- Dynamic, S -- Static, M -- Manual
Loadsharing Type: Shar – Loadsharing, NonS – Non-Loadsharing
Actor ID: 0x8000, 00e0-fcff-ff04
AL AL Partner ID Select Standby Share Master
ID Type Ports Ports Type Port
-------------------------------------------------------------------
1 D 0x8000,00e0-fcff-ff01 1 0 NonS Ethernet4/0/1
10 M none 1 0 NonS Ethernet4/0/2
20 S 0x8000,00e0-fcff-ff01 1 0 NonS Ethernet4/0/3
表1-3 display link-aggregation summary命令显示信息描述表
字段 |
描述 |
Actor ID |
本端设备ID |
AL ID |
聚合组ID |
AL Type |
汇聚组类型,分为动态聚合、静态聚合和手工聚合 |
Partner ID |
对端设备ID |
Select Ports |
Selected端口数 |
Standby Ports |
Standby端口数 |
Share Type |
负载分担类型 |
Master Port |
主端口号 |
【命令】
display link-aggregation verbose [ agg-id ]
【视图】
任意视图
【参数】
agg-id:要显示的聚合组ID,必须是当前已经存在的聚合组ID,取值范围为1~384。
【描述】
display link-aggregation verbose命令用来显示指定汇聚组的详细信息,包括:
l 聚合组ID、汇聚组类型、负载分担类型、汇聚组描述符;
l 本端的详细信息(包括设备ID、包含的端口编号、端口状态、端口优先级、LACP协议标志、操作Key、连接状态);
l 对端的详细信息(本端的端口、对端的端口索引、对端的端口优先级、标志、操作Key和设备ID)。
需要注意的是,由于手工汇聚组无法获知对端信息,因此对端的各项显示均为0,并不代表对方系统实际信息。
【举例】
# 显示汇聚组1的详细信息。
<H3C> display link-aggregation verbose 1
Loadsharing Type: Shar -- Loadsharing, NonS -- Non-Loadsharing
Aggregation ID: 1, AggregationType: Static, Loadsharing Type: NonS
Aggregation Description:
System ID: 0x8000, 000f-e218-d0d0
Port Status: S -- Selected, T -- sTandby
Local:
Port Status Priority Flag Oper-Key Link-Status
--------------------------------------------------------------------------
GigabitEthernet3/0/1 S 32768 0x7d 1 Up
GigabitEthernet3/0/2 T 32768 0x45 2 Down
Remote:
Actor Partner Priority Flag Oper-Key SystemID
--------------------------------------------------------------------------
GigabitEthernet3/0/1 0 32768 0x38 0 0x8000,0000-0000-0000
GigabitEthernet3/0/2 0 32768 0x30 0 0x8000,0000-0000-0000
表1-4 display link-aggregation verbose命令显示信息描述表
字段 |
描述 |
Aggregation ID |
聚合组ID |
Aggregation Type |
汇聚组类型,分为动态聚合、静态聚合和手工聚合 |
Loadsharing Type |
负载分担类型 |
Aggregation Description |
汇聚组描述符 |
System ID |
本端设备ID |
Port State |
端口状态 |
Local |
本端其他信息(包括端口编号、端口状态、端口优先级、LACP协议标志、操作Key、连接状态) |
Remote |
对端详细信息(包括本端的端口编号、对端的端口索引、端口优先级、标志位、操作Key和设备ID) |
【命令】
lacp enable
undo lacp enable
【视图】
以太网端口视图
【参数】
无
【描述】
lacp enable命令用来打开LACP协议,undo lacp enable命令用来关闭LACP协议。
【举例】
# 打开以太网端口Ethernet2/0/1的LACP协议。
<H3C> system-view
System View: return to User View with Ctrl+Z.
[H3C] interface Ethernet2/0/1
[H3C-Ethernet2/0/1] lacp enable
【命令】
lacp port-priority port-priority-value
undo lacp port-priority
【视图】
以太网端口视图
【参数】
port-priority-value:端口优先级,取值范围为0~65535,缺省值为32768。
【描述】
lacp port-priority命令用来配置端口优先级,undo lacp port-priority命令用来恢复端口优先级为缺省值。
【举例】
# 设置端口优先级为64。
<H3C> system-view
System View: return to User View with Ctrl+Z.
[H3C] interface Ethernet2/0/1
[H3C-Ethernet2/0/1] lacp port-priority 64
【命令】
lacp system-priority system-priority-value
undo lacp system-priority
【视图】
系统视图
【参数】
system-priority-value:系统优先级,取值范围为0~65535,缺省值为32768。
【描述】
lacp system-priority命令用来配置系统优先级,undo lacp system-priority命令用来恢复系统优先级为缺省值。
【举例】
# 设置系统优先级为64。
<H3C> system-view
System View: return to User View with Ctrl+Z.
[H3C] lacp system-priority 64
【命令】
link-aggregation interface-type interface-number to interface-type interface-number [ both ]
【视图】
系统视图
【参数】
interface-type:端口类型。
interface-num:端口编号。
to:指定一组连续的端口。
both:表示汇聚组中各成员端口同时对发送方向和接受方向的数据流进行负载分担。
【描述】
link-aggregation命令用来将一组端口加入到一个新的手工汇聚组中,系统会自动为这个手工汇聚组分配一个组号。该命令实现的作用也可以通过link-aggregation group agg-id mode,port link-aggregation group来完成。
缺省情况下:
l 对于IP报文,系统按照IP地址进行负载分担;
l 对于非IP报文,系统按照MAC地址进行负载分担。
【举例】
# 将端口Ethernet2/0/1~Ethernet2/0/4设置为汇聚组,并同时对汇聚组的发送方向和接收方向的数据流进行负载分担。
<H3C> system-view
System View: return to User View with Ctrl+Z.
[H3C] link-aggregation ethernet2/0/1 to ethernet2/0/4 both
【命令】
link-aggregation group agg-id description agg-name
undo link-aggregation group agg-id description
【视图】
系统视图
【参数】
agg-id:聚合组ID,取值范围为1~384。
agg-name:汇聚组名,是一个长度为1~32个字符的字符串。
【描述】
link-aggregation group description命令用来为汇聚组配置描述符,undo link-aggregation group description命令用来删除汇聚组描述符。
【举例】
# 配置汇聚组22的描述符为office。
<H3C> system-view
System View: return to User View with Ctrl+Z.
[H3C] link-aggregation group 22 description office
【命令】
link-aggregation group agg-id mode { manual | static }
undo link-aggregation group agg-id
【视图】
系统视图
【参数】
agg-id:聚合组ID,取值范围为1~384。
manual:手工汇聚组。
static:静态汇聚组。
【描述】
link-aggregation group mode命令用来创建手工或静态汇聚组。undo link-aggregation group命令用来删除汇聚组。
【举例】
# 创建汇聚组号为22的手工汇聚组。
<H3C> system-view
System View: return to User View with Ctrl+Z.
[H3C] link-aggregation group 22 mode manual
【命令】
port link-aggregation group agg-id
undo port link-aggregation group
【视图】
以太网端口视图
【参数】
agg-id:聚合组ID,取值范围为1~384。
【描述】
port link-aggregation group命令用来将以太网端口加入手工或静态汇聚组,undo port link-aggregation group命令用来将以太网端口退出汇聚组。
【举例】
# 将以太网端口Ethernet2/0/1加入汇聚组22。
<H3C> system-view
System View: return to User View with Ctrl+Z.
[H3C] interface Ethernet2/0/1
[H3C-Ethernet2/0/1] port link-aggregation group 22
【命令】
reset lacp statistics [ interface interface-type interface-number [ to interface-type interface-number ] ]
【视图】
用户视图
【参数】
interface interface-type interface-number [ to interface-type interface-number ]:指定端口。
l 不使用to参数时,只指定一个端口;
l 使用to参数时,可以指定连续的多个端口。
l interface-type表示端口类型,interface-num表示端口编号。
【描述】
reset lacp statistics命令用来清除端口的LACP统计信息,若不指定端口,则清除所有端口的LACP统计信息。
【举例】
# 清除所有以太网端口的LACP统计信息。
<H3C> reset lacp statistics
不同款型规格的资料略有差异, 详细信息请向具体销售和400咨询。H3C保留在没有任何通知或提示的情况下对资料内容进行修改的权利!