二层聚合配置举例
1. 组网需求
l Device A与Device B通过各自的以太网端口GigabitEthernet1/0/1~GigabitEthernet1/0/3相互连接。
l 在Device A和Device B上分别配置链路聚合组,并使两端的VLAN 10和VLAN 20之间分别互通。
2. 组网图
3. 配置步骤
(1) 配置Device A
# 创建VLAN 10,并将端口GigabitEthernet1/0/4加入到该VLAN中。
<DeviceA> system-view
[DeviceA] vlan 10
[DeviceA-vlan10] port gigabitEthernet 1/0/4
[DeviceA-vlan10] quit
# 创建VLAN 20,并将端口GigabitEthernet1/0/5加入到该VLAN中。
[DeviceA] vlan 20
[DeviceA-vlan20] port gigabitEthernet 1/0/5
[DeviceA-vlan20] quit
# 创建二层聚合接口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
[DeviceA] interface gigabitethernet 1/0/3
[DeviceA-gigabitethernet1/0/3] port link-aggregation group 1
[DeviceA-gigabitethernet1/0/3] quit
# 配置二层聚合接口1为Trunk端口,并允许VLAN 10和20的报文通过。
该配置将被自动同步到聚合组1内的所有成员端口上。
[DeviceA] interface bridge-aggregation 1
[DeviceA-Bridge-Aggregation1] port link-type trunk
[DeviceA-Bridge-Aggregation1] port trunk permit vlan 10 20
Please wait… Done.
Configuring GigabitEthernet1/0/1… Done.
Configuring GigabitEthernet1/0/2… Done.
Configuring GigabitEthernet1/0/3… Done.
[DeviceA-Bridge-Aggregation1] quit
(2) 配置Device B
Device B的配置与Device A相似,配置过程略。
(3) 检验配置效果
# 查看Device A上所有聚合组的摘要信息。
[DeviceA] display link-aggregation summary
Aggregation Interface Type:
BAGG — Bridge-Aggregation, RAGG — Route-Aggregation
Loadsharing Type: Shar — Loadsharing, NonS — Non-Loadsharing
AGG Select Unselect Share
Interface Ports Ports Type
——————————————————————————-
BAGG1 3 0 Shar