CCIE R&S Configuration Part1 4.2 GLBP

4.2.GLBP

  • SW3、SW4でVL34に対してGLBPによるゲートウェイの負荷分散を行います。SW3をAVGとしてください。また、仮想ルータのIPアドレスは168.128.196とします。
  • 負荷分散アルゴリズムは、Weightedを利用します。SW3はSW4の2倍のトラフィックをルーティングします。
  • SW3、SW4でGLBPのMD5認証を行ってください。
  • SW3ではSW2の168.128.161への接続性がなくなれば、AVFとしての動作を停止してください。

 

【設定】

SW3

---------------------------------------------------------------------------------
ip sla monitor 1
 type echo protocol ipIcmpEcho 192.168.128.161
 timeout 3000
 frequency 3
!
ip sla monitor schedule 1 life forever start-time now
!
track 1 rtr 1 reachability
!
interface Vlan34
 glbp 1 ip 192.168.128.196
 glbp 1 priority 255
 glbp 1 weighting 200 lower 195
 glbp 1 load-balancing weighted
 glbp 1 authentication md5 key-string cisco
 glbp 1 weighting track 1 decrement 10
---------------------------------------------------------------------------------

 

SW4

---------------------------------------------------------------------------------
interface Vlan34
 glbp 1 ip 192.168.128.196
 glbp 1 weighting 100 lower 95
 glbp 1 load-balancing weighted
 glbp 1 authentication md5 key-string cisco
---------------------------------------------------------------------------------

【確認のポイント】

  • show glbp
    GLBPが正常に動作していることを確認します。

 

【解説】

VL34上のSW3とSW4でGLBPを有効化します。SW3をAVGとするために、SW3のプライオリティを高く設定します。また、SW3がSW4の2倍のトラフィックをルーティングできるようにするために、負荷分散アルゴリズムをWeightedとして、SW3のWeighting値を200、SW4のWeighting値を100としています。

また、SW3ではSW2の192.168.128.161への接続性をIP SLAで確認しています。192.168.128.161への接続性がなくなれば、Weighting値を下げてAVFとして機能しないように設定します。

次の図は、SW3とSW4でのGLBPに関する設定についてまとめたものです。

 

CCIE_CFG_Part1_20

図 GLBPの設定

 

show glbpコマンドでGLBPの動作を確認することができます。SW3でのshow glbpコマンドの出力は次のようになります。

SW3

---------------------------------------------------------------------------------
SW3#show glbp
Vlan34 - Group 1
State is Active
2 state changes, last state change 22:53:57
Virtual IP address is 192.168.128.196
Hello time 3 sec, hold time 10 sec
Next hello sent in 2.608 secs
Redirect time 600 sec, forwarder time-out 14400 sec
Authentication MD5, key-string
Preemption disabled
Active is local
Standby is 192.168.128.195, priority 100 (expires in 8.348 sec)
Priority 255 (configured)
Weighting 200 (configured 200), thresholds: lower 195, upper 200
Track object 1 state Up decrement 10
Load balancing: weighted
Group members:
cc07.1a78.0000 (192.168.128.194) local
cc08.1a44.0000 (192.168.128.195) authenticated
There are 2 forwarders (1 active)
Forwarder 1
State is Active
3 state changes, last state change 00:18:44
MAC address is 0007.b400.0101 (default)
Owner ID is cc07.1a78.0000
Redirection enabled
Preemption enabled, min delay 30 sec
Active is local, weighting 200
Forwarder 2
State is Listen
2 state changes, last state change 03:42:27
MAC address is 0007.b400.0102 (learnt)
Owner ID is cc08.1a44.0000
Redirection enabled, 597.844 sec remaining (maximum 600 sec)
Time to live: 14397.840 sec (maximum 14400 sec)
Preemption enabled, min delay 30 sec
Active is 192.168.128.195 (primary), weighting 100 (expires in 7.836 sec)
---------------------------------------------------------------------------------