您好,请知:
如果是使用二层聚合,将VLAN加入到聚合组后再给VLAN配置IP地址。
如果是使用三层聚合,可以直接在聚合组配置IP地址。
以下是二层聚合、三层聚合的配置案例:
1.18 以太网链路聚合典型配置举例1.18.1 二层静态聚合配置举例1. 组网需求· Device A与Device B通过各自的二层以太网接口HundredGigE3/0/1~HundredGigE3/0/3相互连接。
· 在Device A和Device B上分别配置二层静态链路聚合组,并实现设备间VLAN 10和VLAN 20分别互通。
2. 组网图图1-7 二层静态聚合配置组网图
3. 配置步骤(1) 配置Device A
# 创建VLAN 10,并将端口HundredGigE3/0/4加入到该VLAN中。
[DeviceA] vlan 10
[DeviceA-vlan10] port hundredgige 3/0/4
[DeviceA-vlan10] quit
# 创建VLAN 20,并将端口HundredGigE3/0/5加入到该VLAN中。
[DeviceA] vlan 20
[DeviceA-vlan20] port hundredgige 3/0/5
[DeviceA-vlan20] quit
# 创建二层聚合接口1。
[DeviceA] interface bridge-aggregation 1
[DeviceA-Bridge-Aggregation1] quit
# 分别将端口HundredGigE3/0/1至HundredGigE3/0/3加入到聚合组1中。
[DeviceA] interface hundredgige 3/0/1
[DeviceA-HundredGigE3/0/1] port link-aggregation group 1
[DeviceA-HundredGigE3/0/1] quit
[DeviceA] interface hundredgige 3/0/2
[DeviceA-HundredGigE3/0/2] port link-aggregation group 1
[DeviceA-HundredGigE3/0/2] quit
[DeviceA] interface hundredgige 3/0/3
[DeviceA-HundredGigE3/0/3] port link-aggregation group 1
[DeviceA-HundredGigE3/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
(2) 配置Device B
Device B的配置与Device A相似,配置过程略。
4. 验证配置# 查看Device A上所有聚合组的详细信息。
[DeviceA] display link-aggregation verbose
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-Aggregation1
Aggregation Mode: Static
Loadsharing Type: Shar
Management VLANs: None
Port Status Priority Oper-Key
HGE3/0/1(R) S 32768 1
HGE3/0/2 S 32768 1
HGE3/0/3 S 32768 1
以上信息表明,聚合组1为负载分担类型的二层静态聚合组,包含有三个选中端口。
1.18.2 二层动态聚合配置举例1. 组网需求· Device A与Device B通过各自的二层以太网接口HundredGigE3/0/1~HundredGigE3/0/3相互连接。
· 在Device A和Device B上分别配置二层动态链路聚合组,并实现设备间VLAN 10和VLAN 20分别互通。
2. 组网图图1-8 二层动态聚合配置组网图
3. 配置步骤(1) 配置Device A
# 创建VLAN 10,并将端口HundredGigE3/0/4加入到该VLAN中。
[DeviceA] vlan 10
[DeviceA-vlan10] port hundredgige 3/0/4
[DeviceA-vlan10] quit
# 创建VLAN 20,并将端口HundredGigE3/0/5加入到该VLAN中。
[DeviceA] vlan 20
[DeviceA-vlan20] port hundredgige 3/0/5
[DeviceA-vlan20] quit
# 创建二层聚合接口1,并配置该接口为动态聚合模式。
[DeviceA] interface bridge-aggregation 1
[DeviceA-Bridge-Aggregation1] link-aggregation mode dynamic
[DeviceA-Bridge-Aggregation1] quit
# 分别将端口HundredGigE3/0/1至HundredGigE3/0/3加入到聚合组1中。
[DeviceA] interface hundredgige 3/0/1
[DeviceA-HundredGigE3/0/1] port link-aggregation group 1
[DeviceA-HundredGigE3/0/1] quit
[DeviceA] interface hundredgige 3/0/2
[DeviceA-HundredGigE3/0/2] port link-aggregation group 1
[DeviceA-HundredGigE3/0/2] quit
[DeviceA] interface hundredgige 3/0/3
[DeviceA-HundredGigE3/0/3] port link-aggregation group 1
[DeviceA-HundredGigE3/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
(2) 配置Device B
Device B的配置与Device A相似,配置过程略。
4. 验证配置# 查看Device A上所有聚合组的详细信息。
[DeviceA] display link-aggregation verbose
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-Aggregation1
Creation Mode: Manual
Aggregation Mode: Dynamic
Loadsharing Type: Shar
Management VLANs: None
System ID: 0x8000, 000f-e267-6c6a
Local:
Port Status Priority Index Oper-Key Flag
HGE3/0/1(R) S 32768 11 1 {ACDEF}
HGE3/0/2 S 32768 12 1 {ACDEF}
HGE3/0/3 S 32768 13 1 {ACDEF}
Remote:
Actor Priority Index Oper-Key SystemID Flag
HGE3/0/1 32768 81 1 0x8000, 000f-e267-57ad {ACDEF}
HGE3/0/2 32768 82 1 0x8000, 000f-e267-57ad {ACDEF}
HGE3/0/3 32768 83 1 0x8000, 000f-e267-57ad {ACDEF}
以上信息表明,聚合组1为负载分担类型的二层动态聚合组,包含有三个选中端口。
1.18.3 二层聚合负载分担配置举例1. 组网需求· Device A与Device B通过各自的二层以太网接口HundredGigE3/0/1~HundredGigE3/0/4相互连接。
· 在Device A和Device B上分别配置两个二层静态链路聚合组,并使两端的VLAN 10通过二层聚合接口1互通、VLAN 20通过二层聚合接口2互通。
· 通过在聚合组1上按照源MAC地址进行聚合负载分担、在聚合组2上按照目的MAC地址进行聚合负载分担的方式,来实现数据流量在各成员端口间的负载分担。
2. 组网图二层聚合负载分担配置组网图
3. 配置步骤(1) 配置Device A
# 创建VLAN 10,并将端口HundredGigE3/0/5加入到该VLAN中。
[DeviceA] vlan 10
[DeviceA-vlan10] port hundredgige 3/0/5
[DeviceA-vlan10] quit
# 创建VLAN 20,并将端口HundredGigE3/0/6加入到该VLAN中。
[DeviceA] vlan 20
[DeviceA-vlan20] port hundredgige 3/0/6
[DeviceA-vlan20] quit
# 创建二层聚合接口1,并配置该接口对应的聚合组内按照源MAC地址进行聚合负载分担。
[DeviceA] interface bridge-aggregation 1
[DeviceA-Bridge-Aggregation1] link-aggregation load-sharing mode source-mac
[DeviceA-Bridge-Aggregation1] quit
# 分别将端口HundredGigE3/0/1和HundredGigE3/0/2加入到聚合组1中。
[DeviceA] interface hundredgige 3/0/1
[DeviceA-HundredGigE3/0/1] port link-aggregation group 1
[DeviceA-HundredGigE3/0/1] quit
[DeviceA] interface hundredgige 3/0/2
[DeviceA-HundredGigE3/0/2] port link-aggregation group 1
[DeviceA-HundredGigE3/0/2] quit
# 配置二层聚合接口1为Trunk端口,并允许VLAN 10的报文通过。
[DeviceA] interface bridge-aggregation 1
[DeviceA-Bridge-Aggregation1] port link-type trunk
[DeviceA-Bridge-Aggregation1] port trunk permit vlan 10
[DeviceA-Bridge-Aggregation1] quit
# 创建二层聚合接口2,并配置该接口对应的聚合组内按照目的MAC地址进行聚合负载分担。
[DeviceA] interface bridge-aggregation 2
[DeviceA-Bridge-Aggregation2] link-aggregation load-sharing mode destination-mac
[DeviceA-Bridge-Aggregation2] quit
# 分别将端口HundredGigE3/0/3和HundredGigE3/0/4加入到聚合组2中。
[DeviceA] interface hundredgige 3/0/3
[DeviceA-HundredGigE3/0/3] port link-aggregation group 2
[DeviceA-HundredGigE3/0/3] quit
[DeviceA] interface hundredgige 3/0/4
[DeviceA-HundredGigE3/0/4] port link-aggregation group 2
[DeviceA-HundredGigE3/0/4] quit
# 配置二层聚合接口2为Trunk端口,并允许VLAN 20的报文通过。
[DeviceA] interface bridge-aggregation 2
[DeviceA-Bridge-Aggregation2] port link-type trunk
[DeviceA-Bridge-Aggregation2] port trunk permit vlan 20
[DeviceA-Bridge-Aggregation2] quit
(2) 配置Device B
Device B的配置与Device A相似,配置过程略。
4. 验证配置# 查看Device A上所有聚合组的详细信息。
[DeviceA] display link-aggregation verbose
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-Aggregation1
Aggregation Mode: Static
Loadsharing Type: Shar
Management VLANs: None
Port Status Priority Oper-Key
HGE3/0/1(R) S 32768 1
HGE3/0/2 S 32768 1
Aggregate Interface: Bridge-Aggregation2
Aggregation Mode: Static
Loadsharing Type: Shar
Management VLANs: None
Port Status Priority Oper-Key
HGE3/0/3(R) S 32768 2
HGE3/0/4 S 32768 2
以上信息表明,聚合组1和聚合组2都是负载分担类型的二层静态聚合组,各包含有两个选中端口。
# 查看Device A上所有聚合接口所对应聚合组内采用的聚合负载分担类型。
[DeviceA] display link-aggregation load-sharing mode interface
Bridge-Aggregation1 Load-Sharing Mode:
source-mac address
Bridge-Aggregation2 Load-Sharing Mode:
destination-mac address
以上信息表明,二层聚合组1按照报文的源MAC地址进行聚合负载分担,二层聚合组2按照报文的目的MAC地址进行聚合负载分担。
1.18.4 二层聚合边缘接口配置举例1. 组网需求· Device与服务器Server通过端口HundredGigE3/0/1、HundredGigE3/0/2相互连接。
· 在Device上配置一个二层动态链路聚合组。
· 在Device上配置二层聚合接口为聚合边缘接口,以便当服务器上未配置动态聚合组时,Device上聚合组成员端口都能作为普通端口正常转发报文。
2. 组网图图1-9 二层聚合边缘接口配置组网图
3. 配置步骤配置Device
# 创建二层聚合接口1,配置该接口为动态聚合模式。
[Device] interface bridge-aggregation 1
[Device-Bridge-Aggregation1] link-aggregation mode dynamic
# 配置二层聚合接口1为聚合边缘接口。
[Device-Bridge-Aggregation1] lacp edge-port
[Device-Bridge-Aggregation1] quit
# 分别将端口HundredGigE3/0/1、HundredGigE3/0/2加入到聚合组1中。
[Device] interface hundredgige 3/0/1
[Device-HundredGigE3/0/1] port link-aggregation group 1
[Device-HundredGigE3/0/1] quit
[Device] interface hundredgige 3/0/2
[Device-HundredGigE3/0/2] port link-aggregation group 1
[Device-HundredGigE3/0/2] quit
4. 验证配置# 当Server未完成动态聚合模式配置时,查看Device上所有聚合组的详细信息。
[Device] display link-aggregation verbose
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-Aggregation1
Creation Mode: Manual
Aggregation Mode: Dynamic
Loadsharing Type: Shar
Management VLANs: None
System ID: 0x8000, 000f-e267-6c6a
Local:
Port Status Priority Index Oper-Key Flag
HGE3/0/1 I 32768 11 1 {AG}
HGE3/0/2 I 32768 12 1 {AG}
Remote:
Actor Priority Index Oper-Key SystemID Flag
HGE3/0/1 32768 81 0 0x8000, 0000-0000-0000 {DEF}
HGE3/0/2 32768 82 0 0x8000, 0000-0000-0000 {DEF}
以上信息表明,当Device未收到Server的LACP报文时,Device的聚合成员端口都工作在Individual状态,该状态下所有聚合成员端口可以作为普通物理口转发报文,以保证此时Server与Device间的链路都可以正常转发报文,且相互形成备份。
1.18.5 三层静态聚合配置举例1. 组网需求· Device A与Device B通过各自的三层以太网接口HundredGigE3/0/1~HundredGigE3/0/3相互连接。
· 在Device A和Device B上分别配置三层静态链路聚合组,并为对应的三层聚合接口配置IP地址和子网掩码。
2. 组网图图1-10 三层静态聚合配置组网图
3. 配置步骤(1) 配置Device A
# 创建三层聚合接口1,并为该接口配置IP地址和子网掩码。
[DeviceA] interface route-aggregation 1
[DeviceA-Route-Aggregation1] ip address 192.168.1.1 24
[DeviceA-Route-Aggregation1] quit
# 分别将接口HundredGigE3/0/1至HundredGigE3/0/3加入到聚合组1中。
[DeviceA] interface hundredgige 3/0/1
[DeviceA-HundredGigE3/0/1] port link-aggregation group 1
[DeviceA-HundredGigE3/0/1] quit
[DeviceA] interface hundredgige 3/0/2
[DeviceA-HundredGigE3/0/2] port link-aggregation group 1
[DeviceA-HundredGigE3/0/2] quit
[DeviceA] interface hundredgige 3/0/3
[DeviceA-HundredGigE3/0/3] port link-aggregation group 1
[DeviceA-HundredGigE3/0/3] quit
(2) 配置Device B
Device B的配置与Device A相似,配置过程略。
4. 验证配置# 查看Device A上所有聚合组的详细信息。
[DeviceA] display link-aggregation verbose
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: Route-Aggregation1
Aggregation Mode: Static
Loadsharing Type: Shar
Management VLANs: None
Port Status Priority Oper-Key
HGE3/0/1(R) S 32768 1
HGE3/0/2 S 32768 1
HGE3/0/3 S 32768 1
以上信息表明,聚合组1为负载分担类型的三层静态聚合组,包含有三个选中端口。
1.18.6 三层动态聚合配置举例1. 组网需求· Device A与Device B通过各自的三层以太网接口HundredGigE3/0/1~HundredGigE3/0/3相互连接。
· 在Device A和Device B上分别配置三层动态链路聚合组,并为对应的三层聚合接口配置IP地址和子网掩码。
2. 组网图图1-11 三层动态聚合配置组网图
3. 配置步骤(1) 配置Device A
# 创建三层聚合接口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
# 分别将接口HundredGigE3/0/1至HundredGigE3/0/3加入到聚合组1中。
[DeviceA] interface hundredgige 3/0/1
[DeviceA-HundredGigE3/0/1] port link-aggregation group 1
[DeviceA-HundredGigE3/0/1] quit
[DeviceA] interface hundredgige 3/0/2
[DeviceA-HundredGigE3/0/2] port link-aggregation group 1
[DeviceA-HundredGigE3/0/2] quit
[DeviceA] interface hundredgige 3/0/3
[DeviceA-HundredGigE3/0/3] port link-aggregation group 1
[DeviceA-HundredGigE3/0/3] quit
(2) 配置Device B
Device B的配置与Device A相似,配置过程略。
4. 验证配置# 查看Device A上所有聚合组的详细信息。
[DeviceA] display link-aggregation verbose
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: Route-Aggregation1
Creation Mode: Manual
Aggregation Mode: Dynamic
Loadsharing Type: Shar
Management VLANs: None
System ID: 0x8000, 000f-e267-6c6a
Local:
Port Status Priority Index Oper-Key Flag
HGE3/0/1(R) S 32768 11 1 {ACDEF}
HGE3/0/2 S 32768 12 1 {ACDEF}
HGE3/0/3 S 32768 13 1 {ACDEF}
Remote:
Actor Priority Index Oper-Key SystemID Flag
HGE3/0/1 32768 81 1 0x8000, 000f-e267-57ad {ACDEF}
HGE3/0/2 32768 82 1 0x8000, 000f-e267-57ad {ACDEF}
HGE3/0/3 32768 83 1 0x8000, 000f-e267-57ad {ACDEF}
以上信息表明,聚合组1为负载分担类型的三层动态聚合组,包含有三个选中端口。
1.18.7 三层聚合负载分担配置举例1. 组网需求· Device A与Device B通过各自的三层以太网接口HundredGigE3/0/1~HundredGigE3/0/4相互连接。
· 在Device A和Device B上分别配置两个三层静态链路聚合组,并为对应的三层聚合接口都配置IP地址和子网掩码。
· 通过在聚合组1上按照源IP地址进行聚合负载分担、在聚合组2上按照目的IP地址进行聚合负载分担的方式,来实现数据流量在各成员端口间的负载分担。
2. 组网图三层聚合负载分担配置组网图
3. 配置步骤(1) 配置Device A
# 创建三层聚合接口1,配置该接口对应的聚合组内按照源IP地址进行聚合负载分担,并为其配置IP地址和子网掩码。
[DeviceA] interface route-aggregation 1
[DeviceA-Route-Aggregation1] link-aggregation load-sharing mode source-ip
[DeviceA-Route-Aggregation1] ip address 192.168.1.1 24
[DeviceA-Route-Aggregation1] quit
# 分别将接口HundredGigE3/0/1和HundredGigE3/0/2加入到聚合组1中。
[DeviceA] interface hundredgige 3/0/1
[DeviceA-HundredGigE3/0/1] port link-aggregation group 1
[DeviceA-HundredGigE3/0/1] quit
[DeviceA] interface hundredgige 3/0/2
[DeviceA-HundredGigE3/0/2] port link-aggregation group 1
[DeviceA-HundredGigE3/0/2] quit
# 创建三层聚合接口2,配置该接口对应的聚合组内按照目的IP地址进行聚合负载分担,并为其配置IP地址和子网掩码。
[DeviceA] interface route-aggregation 2
[DeviceA-Route-Aggregation2] link-aggregation load-sharing mode destination-ip
[DeviceA-Route-Aggregation2] ip address 192.168.2.1 24
[DeviceA-Route-Aggregation2] quit
# 分别将接口HundredGigE3/0/3和HundredGigE3/0/4加入到聚合组2中。
[DeviceA] interface hundredgige 3/0/3
[DeviceA-HundredGigE3/0/3] port link-aggregation group 2
[DeviceA-HundredGigE3/0/3] quit
[DeviceA] interface hundredgige 3/0/4
[DeviceA-HundredGigE3/0/4] port link-aggregation group 2
[DeviceA-HundredGigE3/0/4] quit
(2) 配置Device B
Device B的配置与Device A相似,配置过程略。
4. 验证配置# 查看Device A上所有聚合组的详细信息。
[DeviceA] display link-aggregation verbose
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: Route-Aggregation1
Aggregation Mode: Static
Loadsharing Type: Shar
Management VLANs: None
Port Status Priority Oper-Key
HGE3/0/1(R) S 32768 1
HGE3/0/2 S 32768 1
Aggregate Interface: Route-Aggregation2
Aggregation Mode: Static
Loadsharing Type: Shar
Management VLANs: None
Port Status Priority Oper-Key
HGE3/0/3(R) S 32768 2
HGE3/0/4 S 32768 2
以上信息表明,聚合组1和聚合组2都是负载分担类型的三层静态聚合组,各包含有两个选中端口。
# 查看Device A上所有聚合接口所对应聚合组内采用的聚合负载分担类型。
[DeviceA] display link-aggregation load-sharing mode interface
Route-Aggregation1 Load-Sharing Mode:
source-ip address
Route-Aggregation2 Load-Sharing Mode:
destination-ip address
以上信息表明,三层聚合组1按照报文的源IP地址进行聚合负载分担,三层聚合组2按照报文的目的IP地址进行聚合负载分担。
1.18.8 S-MLAG配置举例1. 组网需求· Device A通过二层以太网接口HundredGigE3/0/1~HundredGigE3/0/3分别与Device B、Device C、Device D的二层以太网接口HundredGigE3/0/1相互连接。
· Device B、Device C、Device D为独立运行的设备,由于用户对于业务的可靠性要求很高,要求Device A和Device B、Device C、Device D之间配置链路聚合。为了实现Device B、Device C、Device D之间跨设备聚合,这时用户可以配置S-MLAG功能,保证正常工作时链路进行负载分担且任何一台设备故障对业务均没有影响,提高可靠性。
2. 组网图图1-12 S-MLAG配置组网图
3. 配置步骤(1) 配置Device A
# 创建二层聚合接口10,并配置该接口为动态聚合模式。
[DeviceA] interface bridge-aggregation 10
[DeviceA-Bridge-Aggregation10] link-aggregation mode dynamic
[DeviceA-Bridge-Aggregation10] quit
# 分别将端口HundredGigE3/0/1至HundredGigE3/0/3加入到聚合组10中。
[DeviceA] interface hundredgige 3/0/1
[DeviceA-HundredGigE3/0/1] port link-aggregation group 10
[DeviceA-HundredGigE3/0/1] quit
[DeviceA] interface hundredgige 3/0/2
[DeviceA-HundredGigE3/0/2] port link-aggregation group 10
[DeviceA-HundredGigE3/0/2] quit
[DeviceA] interface hundredgige 3/0/3
[DeviceA-HundredGigE3/0/3] port link-aggregation group 10
[DeviceA-HundredGigE3/0/3] quit
(2) 配置Device B
# 配置LACP的系统地址为0001-0001-0001。
[DeviceB] lacp system-mac 1-1-1
# 配置LACP的系统优先级为123。
[DeviceB] lacp system-priority 123
# 配置LACP的系统编号为1。
[DeviceB] lacp system-number 1
# 创建二层聚合接口2,并配置该接口为动态聚合模式。
[DeviceB] interface bridge-aggregation 2
[DeviceB-Bridge-Aggregation2] link-aggregation mode dynamic
# 将二层聚合接口2加入S-MLAG组100。
[DeviceB-Bridge-Aggregation2] port s-mlag group 100
# 将端口HundredGigE3/0/1加入到聚合组2中。
[DeviceB] interface hundredgige 3/0/1
[DeviceB-HundredGigE3/0/1] port link-aggregation group 2
[DeviceB-HundredGigE3/0/1] quit
(3) 配置Device C
# 配置LACP的系统地址为0001-0001-0001。
[DeviceC] lacp system-mac 1-1-1
# 配置LACP的系统优先级为123。
[DeviceC] lacp system-priority 123
# 配置LACP的系统编号为2。
[DeviceC] lacp system-number 2
# 创建二层聚合接口3,并配置该接口为动态聚合模式。
[DeviceC] interface bridge-aggregation 3
[DeviceC-Bridge-Aggregation3] link-aggregation mode dynamic
# 将二层聚合接口3加入S-MLAG组100。
[DeviceC-Bridge-Aggregation3] port s-mlag group 100
# 将端口HundredGigE3/0/1加入到聚合组3中。
[DeviceC] interface hundredgige 3/0/1
[DeviceC-HundredGigE3/0/1] port link-aggregation group 3
[DeviceC-HundredGigE3/0/1] quit
(4) 配置Device D
# 配置LACP的系统地址为0001-0001-0001。
[DeviceD] lacp system-mac 1-1-1
# 配置LACP的系统优先级为123。
[DeviceD] lacp system-priority 123
# 配置LACP的系统编号为3。
[DeviceD] lacp system-number 3
# 创建二层聚合接口4,并配置该接口为动态聚合模式。
[DeviceD] interface bridge-aggregation 4
[DeviceD-Bridge-Aggregation4] link-aggregation mode dynamic
# 将二层聚合接口4加入S-MLAG组100。
[DeviceD-Bridge-Aggregation4] port s-mlag group 100
# 将端口HundredGigE3/0/1加入到聚合组4中。
[DeviceD] interface hundredgige 3/0/1
[DeviceD-HundredGigE3/0/1] port link-aggregation group 4
[DeviceD-HundredGigE3/0/1] quit
4. 验证配置# 查看Device A上所有聚合组的详细信息。
[DeviceA] display link-aggregation verbose
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-Aggregation10
Creation Mode: Manual
Aggregation Mode: Dynamic
Loadsharing Type: Shar
Management VLANs: None
System ID: 0x8000, 40fa-264f-0100
Local:
Port Status Priority Index Oper-Key Flag
HGE3/0/1(R) S 32768 1 1 {ACDEF}
HGE3/0/2 S 32768 2 1 {ACDEF}
HGE3/0/3 S 32768 3 1 {ACDEF}
Remote:
Actor Priority Index Oper-Key SystemID Flag
HGE3/0/1 32768 16385 50100 0x7b , 0001-0001-0001 {ACDEF}
HGE3/0/2 32768 32769 50100 0x7b , 0001-0001-0001 {ACDEF}
HGE3/0/3 32768 49153 50100 0x7b , 0001-0001-0001 {ACDEF}
以上信息表明,Device A的端口HundredGigE3/0/1~HundredGigE3/0/3均处于选中状态,此时Device A将Device B、Device C、Device D认为是一台设备,从而实现了跨设备的聚合。
