system-view //進入配置模式
動態鏈路聚合:
[SW]dis cu //檢視所有配置埠資訊
[SW]int Bridge-Aggregation 1 //建立鏈路聚合組埠1
[SW-Bridge-Aggregation1]link-aggregation mode dynamic //鏈路聚合模式動態
[SW-Bridge-Aggregation1]interface gigabitethernet 1/0/1 //進入網口
[SW-Ethernet1/0/1]port link-aggregation group 1 //加入鏈路聚合組
[SW-Ethernet1/0/1]quit //退出
[SW]interface Ethernet(gigabitethernet) 1/0/2
[SW-Ethernet1/0/2]port link-aggregation group 1 //加入鏈路聚合組
[SW-Ethernet1/0/1]quit
[SW-Bridge-Aggregation1]port link-type trunk //改為trunk模式
[SW-Bridge-Aggregation1]port trunk permit vlan all //所有的vlan適用
刪除鏈路聚合:
步驟1 將原來已加入的聚合組的埠退出
步驟2 刪除聚合組
命令參考如下,(具體的埠號,聚合組 請根據你的實際情況修改):
interface GigabitEthernet 0/8
undo port link-aggregation group 1
quit
undo link-aggregation group 1
檢視命令:
display link-aggregation summary
[S1]display link-aggregation verbose
負載分擔:
[S1]link-aggregation load-sharing mode destination-mac 兩端都配置(貌似介面也可以配置)
[SW]save //儲存配置資訊
[SW]reboot //重啟交換機
system-view //進入配置模式
動態鏈路聚合:
[SW]dis cu //檢視所有配置埠資訊
[SW]int Bridge-Aggregation 1 //建立鏈路聚合組埠1
[SW-Bridge-Aggregation1]link-aggregation mode dynamic //鏈路聚合模式動態
[SW-Bridge-Aggregation1]interface gigabitethernet 1/0/1 //進入網口
[SW-Ethernet1/0/1]port link-aggregation group 1 //加入鏈路聚合組
[SW-Ethernet1/0/1]quit //退出
[SW]interface Ethernet(gigabitethernet) 1/0/2
[SW-Ethernet1/0/2]port link-aggregation group 1 //加入鏈路聚合組
[SW-Ethernet1/0/1]quit
[SW-Bridge-Aggregation1]port link-type trunk //改為trunk模式
[SW-Bridge-Aggregation1]port trunk permit vlan all //所有的vlan適用
刪除鏈路聚合:
步驟1 將原來已加入的聚合組的埠退出
步驟2 刪除聚合組
命令參考如下,(具體的埠號,聚合組 請根據你的實際情況修改):
interface GigabitEthernet 0/8
undo port link-aggregation group 1
quit
undo link-aggregation group 1
檢視命令:
display link-aggregation summary
[S1]display link-aggregation verbose
負載分擔:
[S1]link-aggregation load-sharing mode destination-mac 兩端都配置(貌似介面也可以配置)
[SW]save //儲存配置資訊
[SW]reboot //重啟交換機