首页 > 其他分享 >H3C交换机聚合口trunk级联二层思科交换机聚合口

H3C交换机聚合口trunk级联二层思科交换机聚合口

时间:2023-03-16 15:22:17浏览次数:36  
标签:H3C 聚合 range Switch 交换机 trunk config port

H3C5560配置:

以下聚合组模式默认为静态模式。注:华三与思科交换机组合组默认选择分别为,华三:静态(static)思科:强制模式(on)

端口加入聚合组时需要配置一致,如果无法加入先改为三层在改回二层试下重新加入。

[H3C] link-aggregation group 1 mode static  创建聚合组1 选择静态模式  

[H3C] int Bridge-Aggregation 1  进入聚合口1

[H3C-Bridge-Aggregation1]port link-type trunk      trunk模式

[H3C-Bridge-Aggregation1]port trunk permit vlan all   允许所有vlan

[H3C]int range GigabitEthernet 1/0/20-23      进入20、21、22、23接口组 

[H3C-if-range]port link-type trunk          

[H3C-if-range]port trunk permit vlan all

[H3C-if-range]port link-aggregation group 1         接口组加入聚合组1

dis interface Bridge-Aggregation 1 brief   查看聚合组1状态

dis link-aggregation verbose   查看聚合组端口汇聚信息

Bridge-Aggregation 是二层聚合

Route-Aggregation 是三层聚合 

dis int  brief  可以查看聚合,看有没有聚合好,二个千兆端口聚合,显示的speed就是2G

思科交换机配置:

Switch(config)#int range gigabitEthernet 1/0/20-23   20、21、22、23 进入需要聚合的接口组

Switch(config-if-range)#switchport trunk encapsulation dot1q

Switch(config-if-range)#switchport mode trunk

Switch(config-if-range)#switchport trunk allowed vlan all      可设置指定vlan可通过

Switch(config-if-range)#channel-group 1 mode on    启用聚合功能并改为on强制开启模式{active|auto|desirable|on|passive}

Switch(config-if-range)#end

Switch(config)#interface port-channel 1             进入聚合组1配置

Switch(config-if)#switchport trunk encapsulation dot1q        封装dot1q

Switch(config-if)#switchport mode trunk           接口改trunk模式

Switch(config-if)#switchport trunk allowed vlan all    

Switch(config-if)#exit

 

Switch(config-if-range)#exit

show interfaces port-channel 1 status   查看聚合状态

show interfaces port-channel 1 etherchannel   查看聚合组端口汇聚信息

 

 

删除聚合口:

端口移除聚合口:int g1/0/1       undo port link-aggregation group

华三:undo int bridge-aggregation 1

思科:no int port-channel 1    在删除端口配置

标签:H3C,聚合,range,Switch,交换机,trunk,config,port
From: https://www.cnblogs.com/ningfuyou/p/15989922.html

相关文章