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 在刪除端口配置