· Device A与Device B通过各自的二层以太网接口GigabitEthernet1/0/1~GigabitEthernet1/0/3相互连接。
· 在DeviceA和Device B上分别配置二层静态链路聚合组,并实现设备间VLAN 10和VLAN 20分别互通。
#创建VLAN 10,并将端口GigabitEthernet1/0/4加入到该VLAN中。
[DeviceA] vlan 10
[DeviceA-vlan10] port gigabitethernet1/0/4
[DeviceA-vlan10] quit
# 创建VLAN 20,并将端口GigabitEthernet1/0/5加入到该VLAN中。
[DeviceA-vlan20] port gigabitethernet1/0/5
[DeviceA-vlan20] quit
[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] portlink-aggregation group 1
[DeviceA-GigabitEthernet1/0/1] quit
[DeviceA] interface gigabitethernet1/0/2
[DeviceA-GigabitEthernet1/0/2] portlink-aggregation group 1
[DeviceA-GigabitEthernet1/0/2] quit
[DeviceA] interface gigabitethernet1/0/3
[DeviceA-GigabitEthernet1/0/3] portlink-aggregation group 1
[DeviceA-GigabitEthernet1/0/3] quit
#配置二层聚合接口1为Trunk端口,并允许VLAN 10和20的报文通过。
[DeviceA] interface bridge-aggregation 1
[DeviceA-Bridge-Aggregation1] portlink-type trunk
[DeviceA-Bridge-Aggregation1] porttrunk permit vlan 10 20
[DeviceA-Bridge-Aggregation1] quit
[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: Shar
Port Status Priority Oper-Key
--------------------------------------------------------------------------------
GE1/0/1 S 32768 1
GE1/0/2 S 32768 1
GE1/0/3 S 32768 1
以上信息表明,聚合组1为二层静态聚合组,包含有三个选中端口。
· Device A与Device B通过各自的二层以太网接口GigabitEthernet1/0/1~GigabitEthernet1/0/3相互连接。
· 在DeviceA和Device B上分别配置二层动态链路聚合组,并实现设备间VLAN 10和VLAN 20分别互通。
#创建VLAN 10,并将端口GigabitEthernet1/0/4加入到该VLAN中。
[DeviceA] vlan 10
[DeviceA-vlan10] port gigabitethernet1/0/4
[DeviceA-vlan10] quit
# 创建VLAN 20,并将端口GigabitEthernet1/0/5加入到该VLAN中。
[DeviceA-vlan20] port gigabitethernet1/0/5
[DeviceA-vlan20] quit
[DeviceA] interface bridge-aggregation 1
[DeviceA-Bridge-Aggregation1] link-aggregationmode dynamic
[DeviceA-Bridge-Aggregation1] quit
#分别将端口GigabitEthernet1/0/1至GigabitEthernet1/0/3加入到聚合组1中。
[DeviceA] interface gigabitethernet 1/0/1
[DeviceA-GigabitEthernet1/0/1] portlink-aggregation group 1
[DeviceA-GigabitEthernet1/0/1] quit
[DeviceA] interface gigabitethernet1/0/2
[DeviceA-GigabitEthernet1/0/2] portlink-aggregation group 1
[DeviceA-GigabitEthernet1/0/2] quit
[DeviceA] interface gigabitethernet1/0/3
[DeviceA-GigabitEthernet1/0/3] portlink-aggregation group 1
[DeviceA-GigabitEthernet1/0/3] quit
#配置二层聚合接口1为Trunk端口,并允许VLAN 10和20的报文通过。
[DeviceA] interface bridge-aggregation 1
[DeviceA-Bridge-Aggregation1] portlink-type trunk
[DeviceA-Bridge-Aggregation1] porttrunk permit vlan 10 20
[DeviceA-Bridge-Aggregation1] quit
[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: Shar
System ID: 0x8000, 000f-e267-6c6a
Local:
Port Status Priority Oper-Key Flag
--------------------------------------------------------------------------------
GE1/0/1 S 32768 1 {ACDEF}
GE1/0/2 S 32768 1 {ACDEF}
GE1/0/3 S 32768 1 {ACDEF}
Remote:
Actor PartnerPriority Oper-Key SystemID Flag
--------------------------------------------------------------------------------
GE1/0/1 1 32768 1 0x8000, 000f-e267-57ad{ACDEF}
GE1/0/2 2 32768 1 0x8000, 000f-e267-57ad{ACDEF}
GE1/0/3 3 32768 1 0x8000, 000f-e267-57ad{ACDEF}
以上信息表明,聚合组1为二层动态聚合组,包含有三个选中端口。
总结:1、华三交换机的静态模式对应华为的默认模式,华三的动态模式对应华为的mode lacp模式。思科这边的话目前只实验过华为和思科的,华为为mode lacp,思科为mode active。
2、华三交换机做链路聚合时,需要先创建聚合接口1,然后在将端口GigabitEthernet1/0/1至GigabitEthernet1/0/3加入到聚合组1中,最后配置二层聚合接口1为Trunk端口,并允许VLAN 10和20的报文通过。此处顺序绝对不能乱,否则链路聚合端口不会生效。华为的最后两部可以颠倒。
之前在做华为和华三的交换机聚合连接时,便出过这么一次问题,最后查阅了大量的资料,才发现是因为配置顺序问题导致通信失败,PS:这个问题真的是意向不到呀!
原文地址:http://zkupc.blog.51cto.com/2208062/1770145