这是链路聚合手册
· Device A与Device B通过各自的二层以太网接口GigabitEthernet2/0/1~GigabitEthernet2/0/3相互连接。
· 在Device A和Device B上分别配置二层静态链路聚合组,并实现设备间VLAN 10和VLAN 20分别互通。
# 创建VLAN 10,并将端口GigabitEthernet2/0/4加入到该VLAN中。
[DeviceA] vlan 10
[DeviceA-vlan10] port gigabitethernet 2/0/4
[DeviceA-vlan10] quit
# 创建VLAN 20,并将端口GigabitEthernet2/0/5加入到该VLAN中。
[DeviceA-vlan20] port gigabitethernet 2/0/5
[DeviceA-vlan20] quit
# 创建二层聚合接口1。
[DeviceA] interface bridge-aggregation 1
[DeviceA-Bridge-Aggregation1] quit
# 分别将端口GigabitEthernet2/0/1至GigabitEthernet2/0/3加入到聚合组1中。
[DeviceA] interface gigabitethernet 2/0/1
[DeviceA-GigabitEthernet2/0/1] port link-aggregation group 1
[DeviceA-GigabitEthernet2/0/1] quit
[DeviceA] interface gigabitethernet 2/0/2
[DeviceA-GigabitEthernet2/0/2] port link-aggregation group 1
[DeviceA-GigabitEthernet2/0/2] quit
[DeviceA] interface gigabitethernet 2/0/3
[DeviceA-GigabitEthernet2/0/3] port link-aggregation group 1
[DeviceA-GigabitEthernet2/0/3] quit
# 配置二层聚合接口1为Trunk端口,并允许VLAN 10和20的报文通过。
[DeviceA] interface bridge-aggregation 1
[DeviceA-Bridge-Aggregation1] port link-type trunk
[DeviceA-Bridge-Aggregation1] port trunk permit vlan 10 20
[DeviceA-Bridge-Aggregation1] quit
Device B的配置与Device A相似,配置过程略。
# 查看Device A上所有聚合组的详细信息。
[DeviceA] display link-aggregation verbose
Loadsharing Type: Shar -- Loadsharing, NonS -- Non-Loadsharing
Port Status: S -- Selected, U -- Unselected, I -- Individual
Flags: A -- LACP_Activity, B -- LACP_Timeout, C -- Aggregation,
D -- Synchronization, E -- Collecting, F -- Distributing,
G -- Defaulted, H -- Expired
Aggregate Interface: Bridge-Aggregation1
Aggregation Mode: Static
Loadsharing Type: NonS
Port Status Priority Oper-Key
--------------------------------------------------------------------------------
GE2/0/1 S 32768 1
GE2/0/2 S 32768 1
GE2/0/3 S 32768 1
以上信息表明,聚合组1为非负载分担类型的二层静态聚合组,包含有三个选中端口。
· Device A与Device B通过各自的二层以太网接口GigabitEthernet2/0/1~GigabitEthernet2/0/3相互连接。
· 在Device A和Device B上分别配置二层动态链路聚合组,并实现设备间VLAN 10和VLAN 20分别互通。
# 创建VLAN 10,并将端口GigabitEthernet2/0/4加入到该VLAN中。
[DeviceA] vlan 10
[DeviceA-vlan10] port gigabitethernet 2/0/4
[DeviceA-vlan10] quit
# 创建VLAN 20,并将端口GigabitEthernet2/0/5加入到该VLAN中。
[DeviceA-vlan20] port gigabitethernet 2/0/5
[DeviceA-vlan20] quit
# 创建二层聚合接口1,并配置该接口为动态聚合模式。
[DeviceA] interface bridge-aggregation 1
[DeviceA-Bridge-Aggregation1] link-aggregation mode dynamic
[DeviceA-Bridge-Aggregation1] quit
# 分别将端口GigabitEthernet2/0/1至GigabitEthernet2/0/3加入到聚合组1中。
[DeviceA] interface gigabitethernet 2/0/1
[DeviceA-GigabitEthernet2/0/1] port link-aggregation group 1
[DeviceA-GigabitEthernet2/0/1] quit
[DeviceA] interface gigabitethernet 2/0/2
[DeviceA-GigabitEthernet2/0/2] port link-aggregation group 1
[DeviceA-GigabitEthernet2/0/2] quit
[DeviceA] interface gigabitethernet 2/0/3
[DeviceA-GigabitEthernet2/0/3] port link-aggregation group 1
[DeviceA-GigabitEthernet2/0/3] quit
# 配置二层聚合接口1为Trunk端口,并允许VLAN 10和20的报文通过。
[DeviceA] interface bridge-aggregation 1
[DeviceA-Bridge-Aggregation1] port link-type trunk
[DeviceA-Bridge-Aggregation1] port trunk permit vlan 10 20
[DeviceA-Bridge-Aggregation1] quit
Device B的配置与Device A相似,配置过程略。
# 查看Device A上所有聚合组的详细信息。
[DeviceA] display link-aggregation verbose
Loadsharing Type: Shar -- Loadsharing, NonS -- Non-Loadsharing
Port Status: S -- Selected, U -- Unselected, I -- Individual
Flags: A -- LACP_Activity, B -- LACP_Timeout, C -- Aggregation,
D -- Synchronization, E -- Collecting, F -- Distributing,
G -- Defaulted, H -- Expired
Aggregate Interface: Bridge-Aggregation1
Aggregation Mode: Dynamic
Loadsharing Type: NonS
System ID: 0x8000, 000f-e267-6c6a
Local:
Port Status Priority Oper-Key Flag
--------------------------------------------------------------------------------
GE2/0/1 S 32768 1 {ACDEF}
GE2/0/2 S 32768 1 {ACDEF}
GE2/0/3 S 32768 1 {ACDEF}
Remote:
Actor Partner Priority Oper-Key SystemID Flag
--------------------------------------------------------------------------------
GE2/0/1 1 32768 1 0x8000, 000f-e267-57ad {ACDEF}
GE2/0/2 2 32768 1 0x8000, 000f-e267-57ad {ACDEF}
GE2/0/3 3 32768 1 0x8000, 000f-e267-57ad {ACDEF}
以上信息表明,聚合组1为非负载分担类型的二层动态聚合组,包含有三个选中端口。
· Device A与Device B通过各自的三层以太网接口GigabitEthernet2/0/1~GigabitEthernet2/0/3相互连接。
· 在Device A和Device B上分别配置三层静态链路聚合组,并为对应的三层聚合接口配置IP地址和子网掩码。
# 创建三层聚合接口1,并为该接口配置IP地址和子网掩码。
[DeviceA] interface route-aggregation 1
[DeviceA-Route-Aggregation1] ip address 192.168.1.1 24
[DeviceA-Route-Aggregation1] quit
# 分别将接口GigabitEthernet2/0/1至GigabitEthernet2/0/3加入到聚合组1中。
[DeviceA] interface gigabitethernet 2/0/1
[DeviceA-GigabitEthernet2/0/1] port link-aggregation group 1
[DeviceA-GigabitEthernet2/0/1] quit
[DeviceA] interface gigabitethernet 2/0/2
[DeviceA-GigabitEthernet2/0/2] port link-aggregation group 1
[DeviceA-GigabitEthernet2/0/2] quit
[DeviceA] interface gigabitethernet 2/0/3
[DeviceA-GigabitEthernet2/0/3] port link-aggregation group 1
[DeviceA-GigabitEthernet2/0/3] quit
Device B的配置与Device A相似,配置过程略。
# 查看Device A上所有聚合组的详细信息。
[DeviceA] display link-aggregation verbose
Loadsharing Type: Shar -- Loadsharing, NonS -- Non-Loadsharing
Port Status: S -- Selected, U -- Unselected, I -- Individual
Flags: A -- LACP_Activity, B -- LACP_Timeout, C -- Aggregation,
D -- Synchronization, E -- Collecting, F -- Distributing,
G -- Defaulted, H -- Expired
Aggregate Interface: Route-Aggregation1
Aggregation Mode: Static
Loadsharing Type: NonS
Port Status Priority Oper-Key
--------------------------------------------------------------------------------
GE2/0/1 S 32768 1
GE2/0/2 S 32768 1
GE2/0/3 S 32768 1
以上信息表明,聚合组1为非负载分担类型的三层静态聚合组,包含有三个选中端口。
· Device A与Device B通过各自的三层以太网接口GigabitEthernet2/0/1~GigabitEthernet2/0/3相互连接。
· 在Device A和Device B上分别配置三层动态链路聚合组,并为对应的三层聚合接口配置IP地址和子网掩码。
# 创建三层聚合接口1,配置该接口为动态聚合模式,并为其配置IP地址和子网掩码。
[DeviceA] interface route-aggregation 1
[DeviceA-Route-Aggregation1] link-aggregation mode dynamic
[DeviceA-Route-Aggregation1] ip address 192.168.1.1 24
[DeviceA-Route-Aggregation1] quit
# 分别将接口GigabitEthernet2/0/1至GigabitEthernet2/0/3加入到聚合组1中。
[DeviceA] interface gigabitethernet 2/0/1
[DeviceA-GigabitEthernet2/0/1] port link-aggregation group 1
[DeviceA-GigabitEthernet2/0/1] quit
[DeviceA] interface gigabitethernet 2/0/2
[DeviceA-GigabitEthernet2/0/2] port link-aggregation group 1
[DeviceA-GigabitEthernet2/0/2] quit
[DeviceA] interface gigabitethernet 2/0/3
[DeviceA-GigabitEthernet2/0/3] port link-aggregation group 1
[DeviceA-GigabitEthernet2/0/3] quit
Device B的配置与Device A相似,配置过程略。
# 查看Device A上所有聚合组的详细信息。
[DeviceA] display link-aggregation verbose
Loadsharing Type: Shar -- Loadsharing, NonS -- Non-Loadsharing
Port Status: S -- Selected, U -- Unselected, I -- Individual
Flags: A -- LACP_Activity, B -- LACP_Timeout, C -- Aggregation,
D -- Synchronization, E -- Collecting, F -- Distributing,
G -- Defaulted, H -- Expired
Aggregate Interface: Route-Aggregation1
Aggregation Mode: Dynamic
Loadsharing Type: NonS
System ID: 0x8000, 000f-e267-6c6a
Local:
Port Status Priority Oper-Key Flag
--------------------------------------------------------------------------------
GE2/0/1 S 32768 1 {ACDEF}
GE2/0/2 S 32768 1 {ACDEF}
GE2/0/3 S 32768 1 {ACDEF}
Remote:
Actor Partner Priority Oper-Key SystemID Flag
--------------------------------------------------------------------------------
GE2/0/1 1 32768 1 0x8000, 000f-e267-57ad {ACDEF}
GE2/0/2 2 32768 1 0x8000, 000f-e267-57ad {ACDEF}
GE2/0/3 3 32768 1 0x8000, 000f-e267-57ad {ACDEF}
以上信息表明,聚合组1为非负载分担类型的三层动态聚合组,包含有三个选中端口。
(0)
二层聚合:
# 创建二层聚合接口1。
[DeviceA] interface bridge-aggregation 1
[DeviceA-Bridge-Aggregation1] quit
# 分别将端口GigabitEthernet1/0/1至GigabitEthernet1/0/3加入到聚合组1中。
[DeviceA] interface gigabitethernet 1/0/1
[DeviceA-GigabitEthernet1/0/1] port link-aggregation group 1
[DeviceA-GigabitEthernet1/0/1] quit
[DeviceA] interface gigabitethernet 1/0/2
[DeviceA-GigabitEthernet1/0/2] port link-aggregation group 1
[DeviceA-GigabitEthernet1/0/2] quit
三层聚合:
创建三层聚合接口1,并为该接口配置IP地址和子网掩码。
<DeviceA> system-view
[DeviceA] interface route-aggregation 1
[DeviceA-Route-Aggregation1] ip address 192.168.1.1 24
[DeviceA-Route-Aggregation1] quit
# 分别将接口GigabitEthernet1/0/1至GigabitEthernet1/0/3加入到聚合组1中。
[DeviceA] interface gigabitethernet 1/0/1
[DeviceA-GigabitEthernet1/0/1] port link-aggregation group 1
[DeviceA-GigabitEthernet1/0/1] quit
[DeviceA] interface gigabitethernet 1/0/2
[DeviceA-GigabitEthernet1/0/2] port link-aggregation group 1
[DeviceA-GigabitEthernet1/0/2] quit
(0)
暂无评论
您好,请知:
这要看您使用的是三层链路聚合还是二层链路聚合。
1、如果是二层链路聚合,可参考如下配置:
· Device A与Device B通过各自的二层以太网接口GigabitEthernet2/0/1~GigabitEthernet2/0/3相互连接。
· 在Device A和Device B上分别配置二层静态链路聚合组,并实现设备间VLAN 10和VLAN 20分别互通。
# 创建VLAN 10,并将端口GigabitEthernet2/0/4加入到该VLAN中。
[DeviceA] vlan 10
[DeviceA-vlan10] port gigabitethernet 2/0/4
[DeviceA-vlan10] quit
# 创建VLAN 20,并将端口GigabitEthernet2/0/5加入到该VLAN中。
[DeviceA-vlan20] port gigabitethernet 2/0/5
[DeviceA-vlan20] quit
# 创建二层聚合接口1。
[DeviceA] interface bridge-aggregation 1
[DeviceA-Bridge-Aggregation1] quit
# 分别将端口GigabitEthernet2/0/1至GigabitEthernet2/0/3加入到聚合组1中。
[DeviceA] interface gigabitethernet 2/0/1
[DeviceA-GigabitEthernet2/0/1] port link-aggregation group 1
[DeviceA-GigabitEthernet2/0/1] quit
[DeviceA] interface gigabitethernet 2/0/2
[DeviceA-GigabitEthernet2/0/2] port link-aggregation group 1
[DeviceA-GigabitEthernet2/0/2] quit
[DeviceA] interface gigabitethernet 2/0/3
[DeviceA-GigabitEthernet2/0/3] port link-aggregation group 1
[DeviceA-GigabitEthernet2/0/3] quit
# 配置二层聚合接口1为Trunk端口,并允许VLAN 10和20的报文通过。
[DeviceA] interface bridge-aggregation 1
[DeviceA-Bridge-Aggregation1] port link-type trunk
[DeviceA-Bridge-Aggregation1] port trunk permit vlan 10 20
[DeviceA-Bridge-Aggregation1] quit
Device B的配置与Device A相似,配置过程略。
# 查看Device A上所有聚合组的详细信息。
[DeviceA] display link-aggregation verbose
Loadsharing Type: Shar -- Loadsharing, NonS -- Non-Loadsharing
Port Status: S -- Selected, U -- Unselected, I -- Individual
Flags: A -- LACP_Activity, B -- LACP_Timeout, C -- Aggregation,
D -- Synchronization, E -- Collecting, F -- Distributing,
G -- Defaulted, H -- Expired
Aggregate Interface: Bridge-Aggregation1
Aggregation Mode: Static
Loadsharing Type: NonS
Port Status Priority Oper-Key
--------------------------------------------------------------------------------
GE2/0/1 S 32768 1
GE2/0/2 S 32768 1
GE2/0/3 S 32768 1
以上信息表明,聚合组1为非负载分担类型的二层静态聚合组,包含有三个选中端口。
2、如果是三层链路聚合,可参考如下配置举例:
· Device与服务器Server通过GigabitEthernet2/0/1、GigabitEthernet2/0/2相互连接。
· 在Device上配置一个三层动态链路聚合组,并配置IP地址和子网掩码。
· 在Device上配置三层动态链路聚合接口为聚合边缘接口,以便当服务器上未配置动态聚合组时,Device上聚合组成员端口都能做为普通端口正常转发报文。
# 创建三层聚合接口1,配置该接口为动态聚合模式,并为其配置IP地址和子网掩码。
[Device] interface route-aggregation 1
[Device-Route-Aggregation1] link-aggregation mode dynamic
[Device-Route-Aggregation1] ip address 192.168.1.1 24
# 配置三层聚合接口1为聚合边缘接口。
[Device-Route-Aggregation1] lacp edge-port
[Device-Route-Aggregation1] quit
# 分别将端口GigabitEthernet2/0/1、GigabitEthernet2/0/2加入到聚合组1中。
[Device] interface gigabitethernet 2/0/1
[Device-GigabitEthernet2/0/1] port link-aggregation group 1
[Device-GigabitEthernet2/0/1] quit
[Device] interface gigabitethernet 2/0/2
[Device-GigabitEthernet2/0/2] port link-aggregation group 1
[Device-GigabitEthernet2/0/2] quit
# 当Server未完成动态聚合模式配置时,查看Device上所有聚合组的详细信息。
[Device] display link-aggregation verbose
Loadsharing Type: Shar -- Loadsharing, NonS -- Non-Loadsharing
Port Status: S -- Selected, U -- Unselected, I -- Individual
Flags: A -- LACP_Activity, B -- LACP_Timeout, C -- Aggregation,
D -- Synchronization, E -- Collecting, F -- Distributing,
G -- Defaulted, H -- Expired
Aggregate Interface: Route-Aggregation1
Aggregation Mode: Dynamic
Loadsharing Type: NonS
System ID: 0x8000, 000f-e267-6c6a
Local:
Port Status Priority Oper-Key Flag
--------------------------------------------------------------------------------
GE2/0/1 I 32768 1 {AG}
GE2/0/2 I 32768 1 {AG}
Remote:
Actor Partner Priority Oper-Key SystemID Flag
--------------------------------------------------------------------------------
GE2/0/1 0 32768 0 0x8000, 0000-0000-0000 {DEF}
GE2/0/2 0 32768 0 0x8000, 0000-0000-0000 {DEF}
以上信息表明,当Device未收到Server的LACP报文时,Device的聚合成员端口都工作在Individual状态,该状态下所有聚合成员端口可以作为普通物理口转发报文,以保证此时Server与Device间的链路都可以正常转发报文,且相互形成备份。
3、以下是MSR2600链路聚合的配置手册,请参考:
https://www.h3c.com/cn/d_201510/896531_30005_0.htm#_Toc433270242
https://www.h3c.com/cn/Service/Document_Software/Document_Center/Routers/Catalog/MSR/MSR_2600/
(0)
暂无评论
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作
举报
×
侵犯我的权益
×
侵犯了我企业的权益
×
抄袭了我的内容
×
原文链接或出处
诽谤我
×
对根叔社区有害的内容
×
不规范转载
×
举报说明
暂无评论