欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

思科CISCO交換機(jī)間鏈路聚合端口聚合實(shí)現(xiàn)方法詳解

  發(fā)布時(shí)間:2020-03-05 15:35:24   作者:季文康   我要評(píng)論
這篇文章主要介紹了思科CISCO交換機(jī)間鏈路聚合端口聚合實(shí)現(xiàn)方法,結(jié)合實(shí)例形式詳細(xì)分析了思科CISCO交換機(jī)間鏈路聚合端口聚合具體原理、配置方法與相關(guān)操作注意事項(xiàng),需要的朋友可以參考下

本文講述了思科CISCO交換機(jī)間鏈路聚合端口聚合實(shí)現(xiàn)方法。分享給大家供大家參考,具體如下:

[CISCO] 交換機(jī)間鏈路聚合端口聚合

一、Introduction

端口通道( port channel ) 是一種聚合多個(gè)物理接口 ( that ) 創(chuàng)建一個(gè)邏輯接口。你可以捆扎( bundle ) 八個(gè)單獨(dú)的活動(dòng)鏈接到一個(gè)信道端口,以提供更高的帶寬冗余。端口通道也負(fù)載平衡這些物理接口上的通信量。只要端口通道中的至少一個(gè)物理接口可操作,端口通道就可以保持運(yùn)行。——摘自: Configuring a Port Channel

二、Prerequisites

CISCO PACKET Tracer Student 6.2

三、Configure channel-group

interface FastEthernet0/7
 channel-group 1 mode desirable
 switchport mode trunk
!
interface FastEthernet0/8
 channel-group 1 mode desirable
 switchport mode trunk

Info:上述內(nèi)容是使用 show running-config 查詢到的結(jié)果。下文將 Step By Step 講解。

First:Enter Into Interfaces

Switch#enable 
Switch#configure terminal
Enter configuration commands, one per line.  End with CNTL/Z.
Switch(config)#interface faste
Switch(config)#interface fastethernet 0/7-8
                                        ^
% Invalid input detected at '^' marker.
Switch(config)#interface range fastethernet 0/7-8

Notice:注意進(jìn)入接口時(shí),需要使用 range 選項(xiàng)配合 num-num 寫法。

Second:Setting VLAN Trunk

Switch(config-if-range)#switchport mode trunk 

Info:Trunk 的概念可以簡(jiǎn)單理解為一個(gè)平臺(tái),方便倆岸的商人們進(jìn)行交易。——推薦:VLAN、TRUNK 和 VTP 簡(jiǎn)介

Third:Setting channel-group Mode

Switch(config-if-range)#channel-group 1 mode desirable

Notice:以上指令需要在倆臺(tái)交換機(jī)間都完整執(zhí)行指令,而并非單臺(tái)完整(這不是服務(wù)?。?/p>

四、channel-group Model

以下為完整摘錄,EtherChannel (PAgP and LACP) 以太通道。

Port Aggregation Protocol (PAgP)

PAgP 是 Cisco 專有,只能在 Cisco Switch 上設(shè)定,PAgP 有兩個(gè)模式,分別是 Desirable 與 Auto,兩隻使用 PAgP 的 Switch 就像一對(duì)等待對(duì)方表白的男女,只要有其中一方開(kāi)口表白就可以走在一起。願(yuàn)意開(kāi)口表白的一方叫 Desirable,等待對(duì)方表白的一方叫 Auto,所以兩隻 Switch 只要最少有一方是 Desirable 就可成 EtherChannel。因?yàn)?Desirable 一方會(huì)主動(dòng)傳送出 PAgP Message,並要求對(duì)方回應(yīng)。但如果雙方也設(shè)成 Auto,則雙方都是被動(dòng),就不可能成 EtherChannel 了。當(dāng) PAgP 成功建立 EtherChannel 後,PAgP Message 會(huì)繼續(xù)定時(shí)傳送去維持 EtherChannel。

  Desirable Auto
Desirable
Auto

設(shè)定方法亦不難,只要用 channel-group 1 mode desirable 來(lái)設(shè) Desirable Mode 和用 channel-group 1 mode auto 來(lái)設(shè) Auto Mode 即可。

etherchannel

SW1(config)#interface range ethernet 0/0 - 1
 SW1(config-if-range)#channel-group 1 mode desirable
 Creating a port-channel interface Port-channel 1
 
 SW1(config-if-range)#
SW2(config)#interface range ethernet 0/0 - 1
 SW2(config-if-range)#channel-group 1 mode auto
 Creating a port-channel interface Port-channel 1
 
 SW2(config-if-range)#

至於 LACP 是 IEEE Standard,玩法與 PAgP 大致相同,只不過(guò)把兩個(gè) Mode 的名稱由 Desirable 改成 Active 以及由 Auto 改成 Passive。所以,只要最少有一邊是 Active,EtherChannel 就成立。

  Active Passive
Active
Passive
SW1(config)#interface range ethernet 0/0 - 1
 SW1(config-if-range)#channel-group 1 mode active
 Creating a port-channel interface Port-channel 1
 
 SW1(config-if-range)#
SW2(config)#interface range ethernet 0/0 - 1
 SW2(config-if-range)#channel-group 1 mode passive
 Creating a port-channel interface Port-channel 1
 
 SW2(config-if-range)#

不過(guò) LACP 多了一個(gè)叫 Hot Standby 的功能,就是除了 8 個(gè) Port 設(shè)成 EtherChannel 之外,還可以最多把 8 個(gè) Port 加進(jìn)去做 Hot Standby Port。Hot Standby Port 的意思是當(dāng)有 Active Port 因?yàn)槟承┰?Down 時(shí),Hot Standby Port 可以即時(shí)補(bǔ)上,所以,LACP 最多可以容納 16 port (8 個(gè) Active + 8 個(gè) Hot Standby) 在一個(gè) EtherChannel 之中。至於那個(gè) Port 會(huì)被選擇成為 Active 則會(huì)按 Port Priority 決定,LACP 會(huì)先選 Port Priority 較小的做 Active,如 Port Priority 相同則選 Port ID 較小的。請(qǐng)看以下例子:

假設(shè)現(xiàn)時(shí)有 16 個(gè) Port 在同一個(gè) EtherChannel,由於所有 Port Priority 預(yù)設(shè)都是 32768,因此系統(tǒng)選擇 Port ID 最小的 8 個(gè) Port 成為 Active Port,其他則成為 Hot Standby。

SW1#show etherchannel summary
 Flags:  D - down        P - bundled in port-channel
         I - stand-alone s - suspended
         H - Hot-standby (LACP only)
         R - Layer3      S - Layer2
         U - in use      N - not in use, no aggregation
         f - failed to allocate aggregator
 
         M - not in use, no aggregation due to minimum links not met
         m - not in use, port not aggregated due to minimum links not met
         u - unsuitable for bundling
         d - default port
 
         w - waiting to be aggregated
 Number of channel-groups in use: 1
 Number of aggregators:           1
 
 Group  Port-channel  Protocol    Ports
 ------+-------------+-----------+-----------------------------------------------
 1      Po1(SU)         LACP      Et0/0(P)       Et0/1(P)       Et0/2(P)
                                  Et0/3(P)       Et1/0(P)       Et1/1(P)
                                  Et1/2(P)       Et1/3(P)       Et2/0(H)
                                  Et2/1(H)       Et2/2(H)       Et2/3(H)
                                  Et3/0(H)       Et3/1(H)       Et3/2(H)

現(xiàn)在嘗試把一些 Port 的 LACP Port Priority 變小,Active Port 亦隨之改變。留意兩隻 Switch 相對(duì)的 Port 的狀態(tài)必需相同 (我這邊是 Active Port,對(duì)方也應(yīng)該是 Active Port),否則會(huì)造成不相容而出現(xiàn) Secondary Aggregator 的問(wèn)題。

SW1(config)#int range ethernet 2/0-1, ethernet 3/2-3
 SW1(config-if-range)#lacp port-priority 1000
 SW1(config-if-range)#end
 SW1#show etherchannel summary
 Flags:  D - down        P - bundled in port-channel
         I - stand-alone s - suspended
         H - Hot-standby (LACP only)
         R - Layer3      S - Layer2
         U - in use      N - not in use, no aggregation
         f - failed to allocate aggregator
 
         M - not in use, no aggregation due to minimum links not met
         m - not in use, port not aggregated due to minimum links not met
         u - unsuitable for bundling
         d - default port
 
         w - waiting to be aggregated
 Number of channel-groups in use: 1
 Number of aggregators:           1
 
 Group  Port-channel  Protocol    Ports
 ------+-------------+-----------+-----------------------------------------------
 1      Po1(SU)         LACP      Et0/0(P)       Et0/1(P)       Et0/2(P)
                                  Et0/3(P)       Et1/0(H)       Et1/1(H)
                                  Et1/2(H)       Et1/3(H)       Et2/0(P)
                                  Et2/1(P)       Et2/2(H)       Et2/3(H)
                                  Et3/0(H)       Et3/1(H)       Et3/2(P)
                                  Et3/3(P)

五、Connectivity testing

Switch#show etherchannel ?
  load-balance  Load-balance/frame-distribution scheme among ports in port-channel
  port-channel  Port-channel information
  summary       One-line summary per channel-group
  <cr>
Switch#show etherchannel port-channel 
.....
Ports in the Port-channel:

Index   Load   Port     EC state        No of bits
------+------+------+------------------+-----------
  0     00     Fa0/7    Desirable-Sl       0
  0     00     Fa0/8    Desirable-Sl       0
Time since last port bundled:    00d:03h:15m:36s    Fa0/8

相關(guān)文章

最新評(píng)論