<EtherChannel>
將兩個交換器之間多條實體線路綑綁(bundle)成一條虛擬線路
優點:
備援、增加頻寬、Load Balancing、STP不會為了loop封鎖port

通道群組Channel-Group:
一個port只能被分配在一個通道群組中
產生一個邏輯port為port-channel
※一個port-channel不能傳送資料給兩台以上的交換器

EtherChannel設定:
手動設定(不建議)
動態協商:PAgP、LACP

每個port速度要一樣
每個port的Duplex要一致
每個port的Access模式或Trunk模式要一致
每個port的Native Vlan要一致
每個port允許通過的Vlan數資訊須一致

<EtherChannel設定方式>
cisco PAgP協商:
參數
on手動設定:兩邊為on才能建立
auto被動協商:兩邊為auto則無法建立
desirable主動協商:一邊為auto或desirable可建立

IEEE LACP協商:
IEEE 802.3ad
非cisco的設備會使用
參數
on手動設定:兩邊為on才能建立
passive被動協商:兩邊為passive則無法建立
active主動協商:一邊為active或passive可建立

※兩邊交換器協商要一樣,不可一邊使用LACP一邊使用PAgP

使用LACP建立channel-group 1指令:
S(config)#int range fa0/1-2
S(config-if-range)#channel-group 1 mode active

※channel-group中有任一個port執行etherchannel成功,則對應的port-channel介面狀態都為UP

查詢channel-group狀態:
S#show etherchannel summary

channel-group負載平衡:
不會將Frame切割後再平均送出,以frame為單位在port中傳送
修改負載平衡指令:
S(config)#port-channel load-balance src-mac(預設)
S(config)#port-channel load-balance dst-mac
S(config)#port-channel load-balance src-ip(需要L3交換器)

<EtherChannel運行DTP.CDP.STP>
EtherChannel設定trunk需在Port-Channel介面設定
設定後會記錄在屬於所有Channel-group的port中

指令:
S(config)#int port-channel 1
S(config-if)#switchport mode trunk

在Etherchannel關閉CDP:
S(config)#int port-channel 1
S(config-if)#no cdp enable

Etherchannel中STP運作:
Port-Channel介面的成本比Fa介面成本還低
因STP成本計算是根據Channel-group中所有port的頻寬總和,不管port是否有運作

修改Root Bridge及Etherchannel速度:
Root Bridge跟Etherchannel無關,只要修改BID
Etherchannel速度需在port-channel介面修改:
S(config)#int port-channel 1
S(config-if)#speed 10

<預設閘道GW備援機制>
GW備援機制可提供自動切換GW功能
兩台Router,R1.R2協調出一個虛擬路由器(Virtual Router)
虛擬路由器有自己的IP與MAC,由R1.R2共同負責
PC只須設定虛擬路由器的IP

GW備援協定:
HSRP:cisco開發
GLBP:cisco開發
VRRP:IEEE標準

<HSRP運作原理>
目前到version2
使用Hello封包溝通
使用群播.IP:224.0.0.102
運作流程:
決定誰主要負責虛擬路由器
負責的稱Active Router
備援的稱Standby Router
Standby使用Hello封包監視Active Router狀態
若Active Router出現問題,Standby Router就自己變成Active Router

Active Router的選擇:
HSRP.GLBP.VRRP都比較同一組路由器的優先權
優先權值最大者當Active Router

※VRRP中virtual IP若使用路由器的IP位址,則該路由器優先為Active Router
其他協定不可設路由器IP作為virtual IP

啟動HSRP
在fa0/0介面設定HSRP群組編號10及虛擬路由器IP為10.10.10.10
R1(config)#int fa0/0
R1(config-if)#standby 10 ip 10.10.10.10
R2(config)#int fa0/0
R2(config-if)#standby 10 ip 10.10.10.10

查看HSRP狀態:
R1#show standby
R1#show standby brief
Preempt可插隊功能:
當Preempt被關閉,Active Router取決於設定順序
Priority優先權:
預設為100,優先權最大當Active Router

指定Active Router為R2:
R2(config)#int fa0/0
R2(config-if)#standby 10 preempt(啟動可插隊功能)
R2(config-if)#standby 10 priority 150(優先權設為150)

<Virtual Router Redundacy Protocol,VRRP>
IEEE定義的標準GW備援協定
與HSRP功能都差不多
1台master,其他為backups
virtual IP可跟同組中的路由器IP位址一樣
※PT模擬器不支援

在fa0/0介面設定VRRP群組編號10及虛擬路由器IP為10.10.10.10指令:
R1(config)#int fa0/0
R1(config-if)#vrrp 10 ip 10.10.10.10
R1(config-if)#vrrp 10 preempt(插隊)
R1(config-if)#vrrp 10 priority 150(權限)
R1#show vrrp
R1#show vrrp brief

<Gateway Load Balancing Protocol,GLBP>
cisco針對GW負載平衡專門設計
有GW自動備援與GW負載平衡
兩種腳色:
AVG類似Active
AVF
※PT模擬器不支援

在fa0/0介面設定GLBP群組編號10及虛擬路由器IP為10.10.10.10指令:
R1(config)#int fa0/0
R1(config-if)#glbp 10 ip 10.10.10.10
R1(config-if)#glbp 10 preempt(插隊)
R1(config-if)#glbp 10 priority 150(權限)
R1#show glbp
R1#show glbp brief

 

文章標籤
全站熱搜
創作者介紹
創作者 motan 的頭像
motan

炭老弟家常菜

motan 發表在 痞客邦 留言(0) 人氣(9,863)