Table of Contents

GLBP Gateway Load Balancing Protocol

(Cisco)

AVG Active Virtual Gateway

Switch(config-if)# glbp group(0-1023) priority level(1-255, def.100)
Switch(config-if)# glbp group preempt [delay minimum seconds]
Switch(config-if)# glbp group timers [msec] hellotime [msec] holdtime

AVF Active Virtual Forwarder

>Switch(config-if)# glbp group timers redirect redirect timeout

Switch(config)# track object-number(1-500) interface type mod/num {line-protocol | ip routing}
Switch(config-if)# glbp group weighting maximum [lower lower] [upper upper]
Switch(config-if)# glbp group weighting track object-number [decrement value]

GLBP Load Balancing

SW_AVG(config-if)# glbp group load-balancing [round-robin | weighted | host-dependent]

Aktivace GLBP

Switch(config-if)# glbp group ip [ip-address [secondary]]
Switch# show glbp [group] [brief]

Na obrázku je vidět funkce algorytmu Round-robin, hosti posílali ARP requesty postupně zleva do prava:

Příklad konfigurace sítě na obrázcích:

CatalystA(config)# interface vlan 50
CatalystA(config-if)# ip address 192.168.1.10 255.255.255.0
CatalystA(config-if)# glbp 1 priority 200
CatalystA(config-if)# glbp 1 preempt
CatalystA(config-if)# glbp 1 ip 192.168.1.1

CatalystB(config)# interface vlan 50
CatalystB(config-if)# ip address 192.168.1.11 255.255.255.0
CatalystB(config-if)# glbp 1 priority 150
CatalystB(config-if)# glbp 1 preempt
CatalystB(config-if)# glbp 1 ip 192.168.1.1

CatalystC(config)# interface vlan 50
CatalystC(config-if)# ip address 192.168.1.12 255.255.255.0
CatalystC(config-if)# glbp 1 priority 100
CatalystC(config-if)# glbp 1 ip 192.168.1.1
CatalystA# show glbp brief
Interface   Grp  Fwd  Pri	State	Address		Active router	Standby router
Vl50 	     1    -   200 	Active 	192.168.1.1 	local 		192.168.1.11
Vl50 	     1    1   7 	Active 	0007.b400.0101 	local 		-
Vl50 	     1    2   7 	Listen 	0007.b400.0102 	192.168.1.11 	-
Vl50 	     1    3   7 	Listen 	0007.b400.0103 	192.168.1.12 	-
CatalystA#

CatalystB# show glbp brief
Interface   Grp  Fwd  Pri	State	Address		Active router	Standby router
Vl50 	     1    -   150 	Standby	192.168.1.1 	192.168.1.10	local
Vl50 	     1    1   7 	Listen 	0007.b400.0101 	192.168.1.10	-
Vl50 	     1    2   7 	Active 	0007.b400.0102 	local 		-
Vl50 	     1    3   7 	Listen 	0007.b400.0103 	192.168.1.12 	-
CatalystB#

CatalystC# show glbp brief
Interface   Grp  Fwd  Pri	State	Address		Active router	Standby router
Vl50 	     1    -   100	Listen	192.168.1.1 	192.168.1.10	192.168.1.11
Vl50 	     1    1   7 	Listen 	0007.b400.0101 	192.168.1.10	-
Vl50 	     1    2   7 	Listen 	0007.b400.0102 	192.168.1.11	-
Vl50 	     1    3   7 	Active 	0007.b400.0103 	local	 	-
CatalystC#
CatalystA# show glbp
Vlan50 - Group 1
   State is Active
      7 state changes, last state change 03:28:05
   Virtual IP address is 192.168.1.1
   Hello time 3 sec, hold time 10 sec
      Next hello sent in 1.672 secs
   Redirect time 600 sec, forwarder time-out 14400 sec
   Preemption enabled, min delay 0 sec
   Active is local
   Standby is 192.168.1.11, priority 150 (expires in 9.632 sec)
   Priority 200 (configured)
   Weighting 100 (default 100), thresholds: lower 1, upper 100
   Load balancing: round-robin
   There are 3 forwarders (1 active)
   Forwarder 1
      State is Active
         3 state changes, last state change 03:27:37
      MAC address is 0007.b400.0101 (default)
      Owner ID is 00d0.0229.b80a
      Redirection enabled
      Preemption enabled, min delay 30 sec
      Active is local, weighting 100
   Forwarder 2
      State is Listen 
      MAC address is 0007.b400.0102 (learnt)
      Owner ID is 0007.b372.dc4a
      Redirection enabled, 598.308 sec remaining (maximum 600 sec)
      Time to live: 14398.308 sec (maximum 14400 sec)
      Preemption enabled, min delay 30 sec
      Active is 192.168.1.11 (primary), weighting 100 (expires in 8.308 sec)
   Forwarder 3
      State is Listen
      MAC address is 0007.b400.0103 (learnt)
      Owner ID is 00d0.ff8a.2c0a
      Redirection enabled, 599.892 sec remaining (maximum 600 sec)
      Time to live: 14399.892 sec (maximum 14400 sec)
      Preemption enabled, min delay 30 sec
      Active is 192.168.1.12 (primary), weighting 100 (expires in 9.892 sec)
CatalystA#