中興交換機(jī)鏈路聚合相關(guān)匯總_第1頁
中興交換機(jī)鏈路聚合相關(guān)匯總_第2頁
中興交換機(jī)鏈路聚合相關(guān)匯總_第3頁
中興交換機(jī)鏈路聚合相關(guān)匯總_第4頁
中興交換機(jī)鏈路聚合相關(guān)匯總_第5頁
已閱讀5頁,還剩3頁未讀, 繼續(xù)免費(fèi)閱讀

下載本文檔

版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進(jìn)行舉報(bào)或認(rèn)領(lǐng)

文檔簡介

1、操作步驟:(Link Aggregation )方案一靜態(tài)-3228-1交換機(jī)配置如下:1、配置vlanZXR10(config)# vlan 10ZXR10(config-vlan)#exitZXR10(config)# vlan 20ZXR10(config)#exitZXR10(config)#interface fei_1/1-接 PC 機(jī)ZXR10(config)#exitZXR10(config)#interface fei_1/2-接 PC 機(jī)ZXR10(config)#exit2、創(chuàng)建SMARTGROUP組,并設(shè)置為靜態(tài)ZXR10 (config)# interface sma

2、rtgroup1ZXR10(config-if)# smartgroup mode onZXR10(config-if)#exit3、將端口加入到組中:ZXR10 (config)# interface fei_1/15-接 3228-1 的 15 口ZXR10 (config-if)# smartgroup 1 mode on以靜態(tài)方式將端口成員加入鏈路聚合組ZXR10 (config)# interface fei_1/16-接 3228-1 的 16 口ZXR10 (config-if)# smartgroup 1 mode on以靜態(tài)方式將端口加入鏈路聚合組ZXR10 (config-

3、if)#exit4、配置鏈路聚合組模式:ZXR10 (config)# interface smartgroup1-進(jìn)入虛擬鏈路聚合組 1ZXR10 (config-if)# switchport mode trunk修改虛擬鏈路聚合組1的模式為TRUNK20-虛擬鏈路聚合組1承載VLAN 10,20ZXR10 (config)#exit(3228-2交換機(jī)配置同3228-1 一樣)方案二:動態(tài)鏈路聚合-3228-1交換機(jī)配置如下:1、配置vlanZXR10(config)# vlan 10ZXR10(config-vlan)#exitZXR10(config)# vlan 20ZXR10(c

4、onfig)#exitZXR10(config)#interface fei_1/1 -接 PC 機(jī)ZXR10(config-if)#switchport access vlan 10ZXR10(config)#exitZXR10(config)#interface fei_1/2 -接 PC 機(jī)2、創(chuàng)建鏈路聚合(Link Aggregation):ZXR10 (config)# interface smartgroup1ZXR10 (config-if)#smartgroup mode 802.3ad /( 1、on 是靜態(tài)聚合 2、802.3ad 是 動態(tài)鏈路聚合,此條語句不是所有的交換機(jī)

5、都需要配置,需要具體查看相關(guān)命令) ZXR10 (config-if)#exit3、將端口加入到鏈路聚合組中:ZXR10 (config)# interface fei_1/15-接 3228-1 的 15 口ZXR10 (config-if)# smartgroup 1 mode active( /passive)ZXR10 (config)# interface fei_1/16-接 3228-1 的 16 口ZXR10 (config-if)# smartgroup 1 mode active( /passive)4、配置鏈路聚合組模式:ZXR10 (config)# interface

6、 smartgroup1ZXR10 (config-if)# switchport mode trunkZXR10(config-if)#switchport trunk vlan 10,20ZXR10 (config)#exit注:聚合模式設(shè)置為on時(shí)端口運(yùn)行靜態(tài)trunk,參與聚合的兩端都需要設(shè)置為on模式。 聚合模式設(shè)置為active或passive時(shí)端口運(yùn)行LACP,active指端口為主動協(xié)商模式, passive指端口為被動協(xié)商模式。配置動態(tài)鏈路聚合時(shí),應(yīng)當(dāng)將一端端口的聚合模式設(shè)置 為active,另一端設(shè)置為passive,或者兩端都設(shè)置為active。三、查看配置結(jié)果:1、查看

7、 smartgroup 信息:ZXR10 (config)#show lacp 1 internal2、查看vlan信息:ZXR10 (config)#show vlan3、查看端口信息:ZXR10 (config)#show interface brief四、驗(yàn)證配置結(jié)果:1、不同交換機(jī)的相同vlan是否通。2、不同交換機(jī)的不同vlan是否通。3、拔掉smarttrunk中的任何一個(gè)端口,看看對通訊有沒有中斷。中興鏈路聚合中興ZXR10千兆路由交換機(jī)以及萬兆路由交換機(jī)支持靜態(tài)Ttunk和LACP兩 種鏈路聚合方式。靜態(tài)trunk直接將端口加入到trunk組,形成一個(gè)邏輯端口, 這種方式不利于

8、觀察端口的狀態(tài)。LACP是一種基于802.3ad標(biāo)準(zhǔn)的協(xié)議,它 支持端口動態(tài)的加入trunk組,LACP自動產(chǎn)生聚合以獲得最大的帶寬。中興鏈路聚合功能支持32個(gè)trunk組,每個(gè)組里面可以允許有8個(gè)端口聚合, 中興交換機(jī)允許端口不在一個(gè)槽位上,但是所選擇的端口必須是全雙工模式, 而且速率也必須保持一致。中興聚合鏈路的邏輯端口稱作為smartgroup,我們可 以把smartgroup當(dāng)做一個(gè)普通的端口來用。配置聚合鏈路的步驟:創(chuàng)建 trunk組 int smartgroup (1-32)添加成員端口 進(jìn)入接口模式配置 smartgroup mode on /active/passive 是 靜

9、態(tài)的active/passiv是動lacp動態(tài)的需要注意的是成員端口的鏈路類型必須 和smartgroup鏈路的類型保持一致,比如都為trunk或者都為access設(shè)置鏈路負(fù)載分擔(dān)的方式有6種方式基于源/目的端口基于源/目的mac地 址源/目的IP等.配置實(shí)例interface smartgroup1int f0/1smartgroup 1 mode activeinf f0/2smartgroup 1 mode active int smartgroup 1 switchport mode trunk switchport trunk vlan 10 swithcport trunk vla

10、n 20 show lacp 1 nerghbors查看對端成員 show lacp 1 interface看組1中成員端口的狀態(tài) 配置鏈路聚合需要注意以下幾個(gè)問題:參與聚合的端口必須保證基本屬性及配置屬性一致。不同型號的設(shè)備,支持的trunk組不同,低端交換機(jī)最多支持16個(gè)聚合組,中高端 交換機(jī)最多支持32聚合組,路由器最多可支持64個(gè)聚合組。各類設(shè)備參與在同一個(gè)聚 合組下最多可以有8個(gè)端口。端口的聚合方式配置為動態(tài)時(shí),兩端端口可以選擇全部為active或者至少保證其中 一端端口 為active。聚合方式選擇靜態(tài)或者動態(tài)根據(jù)具體環(huán)境選擇,對于設(shè)備之間存在傳輸或者端口為 光口時(shí)建議采用動態(tài)聚合

11、。二、LACP動態(tài)與靜態(tài)1、配成動態(tài)時(shí),只有收到對端的LACPDU包后本端的端口才能綁定到聚合組。2、配成靜態(tài)時(shí),即使沒有收到對端的LACPDU包,本端的端口也能綁定到聚合組。3、在使能了 LACP的情況下,配成靜態(tài)的聚合組能夠和未使能LACP的Trunk組通業(yè)務(wù), 而配成動態(tài)的則不行。采用聚合配置時(shí),組網(wǎng)和可行的配置組合說明如下:如果olt和對端交換機(jī)是直接點(diǎn)對點(diǎn)對接,沒有跨越傳輸設(shè)備,不能采用“靜態(tài)+強(qiáng) 制”,下述配置組合均可以:靜態(tài)+自協(xié)商動態(tài)+自協(xié)商動態(tài)+強(qiáng)制若olt和交換機(jī)之間還有傳輸設(shè)備,必須采用動態(tài)聚合,可以采用的配置有: 動態(tài)+自協(xié)商動態(tài)+強(qiáng)制3)不需要使用聚合,僅僅單個(gè)上聯(lián)口

12、和對端交換機(jī)對接時(shí),若中間還有傳輸設(shè)備,端 口建議配置為強(qiáng)制模式;若中間沒有傳輸設(shè)備,端口建議配置為自協(xié)商模式。強(qiáng)制模式下:端口只要tx插上光纖硬件就會以一定的頻率往外發(fā)送idle幀,如果端口的rx方向能 收到與自己頻率相同的idle幀,就認(rèn)為對端的屬性和本端端口一致,本端端口就建鏈 了。所以在只拔掉一方rx的情況下,這一方的tx仍在往外發(fā)送idle幀,導(dǎo)致另外一方的 rx方向一直能收到idle幀,并認(rèn)為自己端口是建鏈的。這樣另一方就不會將端口從聚 合組里刪除。流量仍舊會均衡到這個(gè)端口上導(dǎo)致丟包。自協(xié)商模式下:千兆光口需要協(xié)商雙工狀態(tài)。這個(gè)是通過硬件發(fā)送C幀協(xié)商出來的,有一個(gè)交互過程。在拔掉一

13、方rx的情況下,雖然這一方的tx仍能往外發(fā)送C幀,但是卻不能收到對端發(fā) 送過來的C幀,兩邊沒辦法交互,所以都會掉鏈。兩邊都會將端口從聚合組里刪除。中興8908-鏈路聚合配置交換機(jī)a和交換機(jī)b通過smartgroup端口相連,它們分別由4個(gè)物理端口聚合而成。smartgroup 的端口 模式為 trunk,承載 vlan10 和 vlan20交換機(jī)a的配置:zxr10_a(config)#interface smartgroup10zxr10_a(config)#interface gei_5/1zxr10_a(config-if)#smartgroup 10 mode activezxr10_

14、a(config)#interface gei_5/2zxr10_a(config-if)#smartgroup 10 mode activezxr10_a(config)#interface gei_5/3zxr10_a(config-if)#smartgroup 10 mode activezxr10_a(config)#interface gei_5/4zxr10_a(config-if)#smartgroup 10 mode active zxr10_a(config)#interface smartgroup10zxr10_a(config-if)#switchport mode t

15、runkzxr10_a(config-if)#switchport trunk vlan 10zxr10_a(config-if)#switchport trunk vlan 20zxr10_a(config-if)#switchport trunk native vlan 10交換機(jī)b的配置:zxr10_b(config)#interface smartgroupllzxr10_b(config)#interface gei_3/5zxr10_b(config-if)#smartgroup 11 mode passivezxr10_b(config)#interface gei_3/6zxr

16、10_b(config-if)#smartgroup 11 mode passivezxr10_b(config)#interface gei_3/7zxr10_b(config-if)#smartgroup 11 mode passivezxr10_b(config)#interface gei_3/8zxr10_b(config-if)#smartgroup 11 mode passivezxr10_b(config)#interface smartgroup11zxr10_b(config-if)#switchport mode trunkzxr10_b(config-if)#switc

17、hport trunk vlan 10zxr10_b(config-if)#switchport trunk vlan 20zxr10_b(config-if)#switchport trunk native vlan 10在C200/C220上的上聯(lián)端口鏈路聚合設(shè)置ZXAN#show lacp 1 internal (顯示 trunk 組內(nèi)的端口成員)access/trunZXAN#show interface smartgroup1(S示 trunk 組的端口 VLAN k/hybrid 及 PVID)ZXAN#show vlan port smartgroup1(S示 trunk 組的所

18、屬 VLAN)ZXAN#show running-config interface gei_0/6/1(S示端口所屬鏈路聚合的模式 on /active/passive)ZXAN(config)#interface smartgroup1 (創(chuàng)建并進(jìn)入 trunk 組)ZXAN(config-if)#exit (退出 trunk 蛆)ZXAN(config)#interface gei_0/6/1 (進(jìn)入上聯(lián)口)ZXAN(config-if)#smartgro up 1 mode。“(將上聯(lián)口加入 trunk組 1,模式 on 表示 靜態(tài)聚合) 該命令能正確執(zhí)行的前提是gei_0/6/1與sm

19、artgroup1這兩個(gè)端口的VLAN屬性 必須完全一致,SSaccess/trunk/hybrid、所屬的 VLANS否 tag 等ZXAN(config-if)#exit (退出上聯(lián)口)ZXAN(config)#interface smartgroup1(進(jìn)入 trunk 組)ZXAN(config-if)#switchport vlan 200 tag (把 trunk 組加入 VLAN) trunk組看作是一個(gè)邏輯端口,對其的VLAN操作與普通的端口一樣。該命令執(zhí) 行后組中的端口成員的VLAN配置也會相應(yīng)改變。ZXAN#show running-configinterface smar

20、tgroup1 (顯示鏈路聚合負(fù)荷分擔(dān)方式)ZXAN(config-if)#smartgroup load-balancesrc-mac/dst-mac/src-dst-mac/src-i p/dst-ip/src-dst-ip(設(shè)鏈路聚合負(fù)荷分擔(dān)方式)ZXAN(config)#interfacegei_0/6/1(進(jìn)入上聯(lián)口)ZXAN(config-if)#no smartgroup (將上聯(lián)口從 trunk 組內(nèi)刪除)ZXAN(config)#no interfacesmartgro up1(刪除 trunk 組,前提是內(nèi)部的端口成員都 已經(jīng)被刪除)2618鏈路聚合配置交換機(jī)A和交換機(jī)B通

21、過聚合端口相連(將端口 15和16捆綁而成),交換機(jī)A的 端口 1與交換機(jī)B的端口 2是VLAN2的成員,交換機(jī)A的端口 2與交換機(jī)B的端口 4是 VLAN3的成員。2.6配置步驟2.6.1靜態(tài)聚合交換機(jī)A的具體配置如下:zte(cfg)#set lacp enable /使能 LACP 功能zte(cfg)#set lacp aggregator 3 add port 15-16 /在 LACP 3 中加入端口 15 和 16zte(cfg)#set lacp aggregator 3 mode static /設(shè)置 LACP 3 的聚合模式為靜態(tài)zte(cfg)#set vlan 2 ad

22、d trunk 3 tag /在 VLAN 2 中加入 trunk 3,并打 tagzte(cfg)#set vlan 2 add port 1 untag /在 VLAN 2 中加入端口 1,不打 tagzte(cfg)#set vlan 3 add trunk 3 tag /在 VLAN 3 中加入 trunk 3,并打 tagzte(cfg)#set vlan 3 add port 2 untag /在 VLAN 3 中加入端口 2,不打 tagzte(cfg)#set port 1 pvid 2 設(shè)置端口 1 的 PVID 為 2zte(cfg)#set port 2 pvid 3 設(shè)

23、置端口 3 的 PVID 為 3zte(cfg)#set vlan 2-3 enable /使能 VLAN 2 和 3交換機(jī)B的具體配置如下:zte(cfg)#set lacp enable /使能 LACP 功能zte(cfg)#set lacp aggregator 3 add port 15-16 /在 LACP 3 中加入端口 15 和 16zte(cfg)#set lacp aggregator 3 mode static /設(shè)置 LACP 3 的聚合模式為靜態(tài)zte(cfg)#set vlan 2 add trunk 3 tag /在 VLAN 2 中加入 trunk 3,并打 t

24、agzte(cfg)#set vlan 2 add port 2 untag /在 VLAN 2 中加入端口 2,不打 tagzte(cfg)#set vlan 3 add trunk 3 tag /在 VLAN 3 中加入 trunk 3,并打 tagzte(cfg)#set vlan 3 add port 4 untag /在 VLAN 3 中加入端口 4,不打 tagzte(cfg)#set port 2 pvid 2 設(shè)置端口 2 的 PVID 為 2zte(cfg)#set port 4 pvid 3 設(shè)置端口 4 的 PVID 為 3zte(cfg)#set vlan 2-3 en

25、able /使能 VLAN 2 和 32.6.2動態(tài)聚合交換機(jī)A的具體配置如下:zte(cfg)#set lacp enable /使能 LACP 功能zte(cfg)#set lacp aggregator 3 add port 15-16 /在 LACP 3 中加入端口 15 和 16 zte(cfg)#set lacp aggregator 3 mode dynamic /設(shè)置 LACP 3 的聚合模式為動態(tài) zte(cfg)#set vlan 2 add trunk 3 tag /在 VLAN 2 中加入 trunk 3,并打 tag zte(cfg)#set vlan 2 add port 1 untag /在 VLAN 2 中加入端口 1,不打 tag zte(cfg)#set vlan 3 add trunk 3 tag /在 VLAN 3 中加入 trunk 3,并打 tag zte(cfg)#set vlan 3 add port 2 untag /在 VLAN 3 中加入端口 2,不打 tag zte(cfg)#set port 1 pvid 2 設(shè)置端口 1 的 PVID 為 2 zte(cfg)#set port 2 pvid 3 設(shè)置端口 3 的 PVID 為 3zte(cfg)#set vlan 2-3 enable /使能 VL

溫馨提示

  • 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
  • 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負(fù)責(zé)。
  • 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。

評論

0/150

提交評論