《二层静态聚合配置举例教案.docx》由会员分享,可在线阅读,更多相关《二层静态聚合配置举例教案.docx(7页珍藏版)》请在第壹文秘上搜索。
1、二层静态聚合配置举例1 .组网需求 DeviceADeviceB通过各自的二层以太网接口GigabitEthernetl/0/1GigabitEthernetl/0/3相互连接。 在DeviceA和DeViCeB上分别配置二层静态链路聚合组,并实现设备间VLAN10和VLAN20分别互通。2 .组网图图1-5二层静态聚合配置组网图3 .配置步骤配置DeViCeA#创建VLAN10,并将端口GigabitEthernetl/0/4加入到该VLAN中。system-viewDeviceAvlan10DeviceA-vlanlOportgigabitethernetl/0/4DeviceA-vlan
2、lOquit#创建VLAN20,并将端口GigabitEthernetl/0/5加入到该VLAN中。DeviceAvlan20DeviceA-vlan20portgigabitethernetl/0/5DeviceA-vlan20quit#创建二层聚合接口IoDeviceAinterfacebridge-aggregation1DeviceA-Bridge-Aggregationlquit#分别将端口GigabitEthernetl/0/1至GigabitEthernetl/0/3加入到聚合组1中。DeviceAinterfacegigabitethernet1/0/1DeviceA-Giga
3、bitEthernetl/0/1portlink-aggregationgroup1DeviceA-GigabitEthernetl/0/1quitDeviceAinterfacegigabitethernetl/0/2DeviceA-GigabitEthernetl/0/2portlink-aggregationgroup1DeviceA-GigabitEthernetl/0/2quitDeviceAinterfacegigabitethernetl/0/3DeviceA-GigabitEthernetl/0/3portlink-aggregationgroup1DeviceA-Gigabi
4、tEthernetl/0/3quit#配置二层聚合接口1为TrUnk端口,并允许VLAN10和20的报文通过。DeviceAinterfacebridge-aggregation1DeviceA-Bridge-Aggregationlportlink-typetrunkDeviceA-Bridge-Aggregationlporttrunkpermitvlan1020DeviceA-Bridge-Aggregationlquit配置DeviceBDeviceB的配置与DeviceA相似,配置过程略。4.验证配置#查看DeviceA上所有聚合组的详细信息。DeviceAdisplaylink-a
5、ggregationverboseLoadsharingType:SharLoadsharingzNonSNon-LoadsharingPortStatus:SSelected,UUnselected,IIndividualFlags:A-LACP_Activity,BLACP_Timeout,CAggregation,DSynchronization,E-Collecting,FDistributing,GDefaulted,HExpiredAggregateInterfaceiBridge-AggregationlAggregationMode:StaticLoadsharingType:
6、SharPortStatusPriorityOper-KeyGE1O1S327681GE1O2S327681GE1O3S327681以上信息表明,聚合组1为二层静态聚合组,包含有三个选中端口。二层动态聚合配置举例1.组网需求 DeviceADeviceB通过各自的二层以太网接口GigabitEtherTletl0lGigabitEthernetl/O/3相互连接。 在DeviceA和DeViCeB上分别配置二层动态链路聚合组,并实现设备间VLANIO和VLAN20分别互通。2 .组网图图1-6二层动态聚合配置组网图3 .配置步骤(1) 配置DeViCeA# 创建VLAN10,并将端口Gigab
7、itEthemetl/0/4加入到该VLAN中。system-viewDeviceAvlan10DeviceA-vlanlOportgigabitethernetl/0/4DeviceA-vlanlOquit# 创建VLAN20,并将端口GigabitEthernetl/0/5加入到该VLAN中。DeviceAvlan20DeviceA-vlan20portgigabitethernetl/0/5DeviceA-vlan20quit# 创建二层聚合接口1,并配置该接口为动态聚合模式。DeviceAinterfacebridge-aggregation1DeviceA-Bridge-Aggreg
8、ationllink-aggregationmodedynamicDeviceA-Bridge-Aggregationlquit# 分别将端口GigabitEthernetl/0/1至GigabitEthernetl/0/3加入到聚合组1中。DeviceAinterfacegigabitethernet1/0/1DeviceA-GigabitEthernetl/0/1portlink-aggregationgroup1DeviceA-GigabitEthernetl/0/1quitDeviceAinterfacegigabitethernetl/0/2DeviceA-GigabitEthern
9、etl/0/2portlink-aggregationgroup1DeviceA-GigabitEthernetl/0/2quitDeviceAinterfacegigabitethernetl/0/3DeviceA-GigabitEthernetl/0/3portlink-aggregationgroup1DeviceA-GigabitEthernetl/0/3quit# 配置二层聚合接口1为TrUnk端口,并允许VLAN10和20的报文通过。DeviceAinterfacebridge-aggregation1DeviceA-Bridge-Aggregationlportlink-type
10、trunkDeviceA-Bridge-Aggregationlporttrunkpermitvlan1020DeviceA-Bridge-Aggregationlquit配置DeViCeBDeviceB的配置与DeviceA相似,配置过程略。4.验证配置#查看DeviceA上所有聚合组的详细信息。DeviceAdisplaylink-aggregationverboseLoadsharingType:SharLoadsharing,NonSNon-LoadsharingPortStatus:SSelected,UUnselected,IIndividualFlags:A-LACP_Activ
11、ity,B-LACP_Timeout,C-Aggregation,D-Synchronization,ECollecting,FDistributing,G-Defaulted,HExpiredAggregateInterfaceiBridge-AggregationlAggregationMode:DynamicLoadsharingType:SharSystemID:08000,000f-e267-6c6aLocal:PortStatusPriorityOper-KeyFlagGE1O1S327681ACDEF)GE1O2S327681ACDEFGE1O3S327681ACDEF)Remo
12、te:ActorPartnerPriorityOper-KeySystemIDFlagGE1O113276810x8000,000f-e267-57adACDEFGE1O2232768108000,000f-e267-57adACDEFGE1O333276810x8000,000f-e267-57adACDEF以上信息表明,聚合组1为二层动态聚合组,包含有三个选中端口。总结:1、华三交换机的静态模式对应华为的默认模式,华三的动态模式对应华为的InOdeIaCP模式。思科这边的话目前只实验过华为和思科的,华为为modeIacp,思科为InOdeactiveo2、华三交换机做链路聚合时,需要先创建聚合接口L然后在将端口GigabitEtherne11/0/1至GigabitEthernetI/0/3加入到聚合组1中,最后配置二层聚合接口1为TrUnk端口,并允许VLAN10和20的报文通过。此处顺序绝对不能乱,否则链路聚合端口不会生效。华为的最后两部可以颠倒。