華爲官網配置案例:http://support.huawei.com/enterprise/KnowledgebaseReadAction.action?contentId=KB1000067551
http://support.huawei.com/enterprise/docinforeader!loadDocument1.action?contentId=DOC1000088724&partNo=10212
================================================================================
S交換機eth-trunk 鏈路聚合配置ui
此功能在S交換機中通用,如S2700,S3700,S5700,S6700,S7700,S9300,S9700spa
[SwitchA] interface Eth-Trunk1code
[SwitchA-Eth-Trunk1] trunkport gigabitethernet 0/0/1 to 0/0/3orm
[SwitchA-Eth-Trunk1] quitblog
[SwitchA] interface Eth-Trunk1 //按需配置接口的vlan接口
[SwitchA-Eth-Trunk1] port link-type trunkip
[SwitchA-Eth-Trunk1] port trunk allow-pass vlan 10 20ci
若是須要使用LACP的方式,添加mode lacp。若是是已添加接口,轉換時須要先去除接口。it
[SwitchA] interface eth-trunk 1io
[SwitchA-Eth-Trunk1] mode lacp
==================================================================================================
華爲S5700的手工鏈路聚合配置
一、創建 eth-trunk ID
二、將配置eth-trunl的link-type爲trunk
三、設置容許經過的vlan
四、將端口加入eth-trunk
配置實例:
#
int eth-trunk 1
port link-type trunk
port trunk allow vlan 10 to 100
#
int g0/0/1
eth-trunk 1
#int g0/0/2
eth-trunk 1
#
return
驗證命令:
dis trunkmembership 驗證是否建立成功,端口是否加入
dis eth-trunk 1 查看eth-trunk 1的配置
==========================================================================================
interface Eth-Trunk 1 /建立聚合鏈路,數值能夠隨意。 port link-type trunk /設置成trunk模式。(若是是接入vlan的話,link-type acess) port trunk allow-pass vlan all /設置容許全部vlan.(接入vlan的話,port default vlan 20) mode manual load-balance /設置爲手動負載 trunkport g0/0/10 to g0/0/13 /加入接口。
trunkport g0/0/10 to g0/0/14 /加入接口。
查看效果:
[txkj2]display eth-trunk 1
Eth-Trunk1's state information is:
WorkingMode: NORMAL Hash arithmetic: According to SIP-XOR-DIP
Least Active-linknumber: 1 Max Bandwidth-affected-linknumber: 8
Operate status: up Number Of Up Port In Trunk: 2
--------------------------------------------------------------------------------
PortName Status Weight
GigabitEthernet0/0/13 Up 1
GigabitEthernet0/0/14 Up 1
[txkj2]display trunkmembership eth-trunk 1
Trunk ID: 1
Used status: VALID
TYPE: ethernet
Working Mode : Normal
Number Of Ports in Trunk = 2
Number Of Up Ports in Trunk = 2
Operate status: up
Interface GigabitEthernet0/0/13, valid, operate up, weight=1
Interface GigabitEthernet0/0/14, valid, operate up, weight=1
華爲端口聚合分爲兩種,手工負載分擔eth-trunk鏈路和LACP eth-trunk鏈路,我這裏只介紹前者。