華爲5700s配置鏈路聚合

華爲官網配置案例: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鏈路,我這裏只介紹前者。

       手動的eth-trunk,能夠把他當作是一種接口,能夠是access,也能夠是trunk,建立好了後,配置徹底和配置接口同樣。我這裏演示成trunk模式。
1、場景模擬爲 pc1--sw1-----sw2--pc2
vlan 2 sw1:192.168.20.1 ,sw2:192.168.20.33;pc1:192.168.20.11,pc2 19219.168.20.22
(pc端的vlan配置不講了,你們應該都會。)另外,sw2配置也相同,固然,聚合的接口自定義。
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/11 /加入接口。
port-group group-member g0/0/10 to g0/0/11  /建立臨時端口組,同時進入接口10和11
eth-trunk 1   /加入eth-trunk 1
效果:[sw1]dis 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/10         Up          1      
GigabitEthernet0/0/11         Up          1     
這裏簡單解釋一下:
Operate status:顯示成員接口狀態,若是是down表示在物理接口上出現故障。
      workingMode:nomal是普通負載分擔方式,static 表示靜態LACP負載分擔方式
      portName:接口名
2、還能夠根據源mac,ip,目的mac,ip進行負載,load-balance 命令後不少。能夠根據實際狀況加
3、故障排除。
我配置的時候出現過,用dis的時候portname下面是空的狀況。原來是本身沒有加入eth-trunk 1。
第二個問題,原來g0/0/10 和11 是trunk.我更改接口的時候出現Error: Please renew the default configurations。我百度了一下,發現是由於接口下有非默認配置的配置,因此沒法直接更改爲eth-trunk,必須先清除原來的配置,可是清除接口時任然報這個錯。就是由於默認接口是加入vlan 1 的。
解決:1. 首先undo trunk port allow-pass vlan all./清除trunk全部vlan
  而後 2. port trunk allow-pass vlan 1,將vlan 1從新加入
           3. undo port link-type trunk /清除trunk。這個時候就不會報錯了。
           4.而後就能夠加入eth-trunk 1 了。
相關文章
相關標籤/搜索