Notes on Networking

A blog to share my study notes on Cisco networking and more

First Hop Redundancy Protocols

Apr
01
HSRP VRRP GLBP
Cisco Proprietary IETF Standard Cisco Proprietary
Active / Standby Master / Backup Active Virtual Gateway (AVG)
Active Virtual Forwarders (AVF)
·         AVG assigns virtual MAC addresses to each AVF and answers ARP requests.
·         AVFs forward the traffic. 
Active router selection by priority. The higher, the better.

Default=100 (0~255)

Master router selection by priority. The higher, the better.

Default=100 (1~254)

Active Virtual Gateway selection by Priority/IP Address in group. The higher, the better.

Default=100 (1~255)

Group number (0~255) but usually 16 groups are supported.

HSRP group number is locally significant on interfaces.

Group number (1~255) Group number (0~1023)
HSRP Hello packets        

MC: 224.0.0.2 / UDP: 1945
Hello/Dead time= 3/10 s Default

VRRP Hello packets

MC: 224.0.0.18
Hello/Dead time= 1/3.2 s Default

GLBP Hello packets        

MC: 224.0.0.102 / UDP:3222

Hello/Dead  time= 3/10 s Default

No preemption by default. Preemption by default. No preemption by default.
Interface/object tracking;
HSRP decreases the priority (default=10)
Interface/object tracking;
VRRP decreases the priority
Interface/object tracking;
GLBP decreases the weighting
(default=10)
MAC: 000.0c07.acXX
XX= HSRP group in hex
MAC: 000.5e00.01XX

XX= VRRP group in hex

MAC: 0007.b4XX.XXYY

XXXX=000000xxxxxxxxxx

x…x= Group number in bin

YY= GLBP Forwarder Number in hex

Authentication: MD5/Text Authentication: MD5/Text Authentication: MD5/Text
No load balancing No load balancing Load balancing

HSRP
R3#sh run

!

key chain KCHN-R3

 key 1              

  key-string salam

!

interface FastEthernet1/0

 ip address 172.16.12.13 255.255.255.240

standby 0 ip 172.16.12.11

 standby 0 priority 200

 standby 0 preempt

 standby 0 authentication md5 key-chain KCHN-R3

 standby 0 track FastEthernet1/1 50

R2#sh run

!

key chain KCHN-R2

 key 1

  key-string salam

!

Interface FastEthernet1/0

 ip address 172.16.12.12 255.255.255.240

 standby 0 ip 172.16.12.11

 standby 0 priority 200

 standby 0 preempt

 standby 0 authentication md5 key-chain KCHN-R2

 standby 0 track FastEthernet1/1 50

R2#sh standby

FastEthernet1/0 – Group 0

  State is Active

    8 state changes, last state change 00:08:17

  Virtual IP address is 172.16.12.11

  Active virtual MAC address is 0000.0c07.ac00

    Local virtual MAC address is 0000.0c07.ac00 (v1 default)

  Hello time 3 sec, hold time 10 sec

    Next hello sent in 1.168 secs

  Authentication MD5, key-chain “KCHN-R2”

  Preemption enabled

  Active router is local

  Standby router is 172.16.12.13, priority 200 (expires in 8.900 sec)

  Priority 200 (configured 200)

    Track interface FastEthernet1/1 state Up decrement 50

  IP redundancy name is “hsrp-Fa1/0-0” (default)

 

R3#sh standby

FastEthernet1/0 – Group 0

  State is Standby

    4 state changes, last state change 00:08:00

  Virtual IP address is 172.16.12.11

  Active virtual MAC address is 0000.0c07.ac00

    Local virtual MAC address is 0000.0c07.ac00 (v1 default)

  Hello time 3 sec, hold time 10 sec

    Next hello sent in 2.804 secs

  Authentication MD5, key-chain “KCHN-R3”

  Preemption enabled

  Active router is 172.16.12.12, priority 200 (expires in 9.080 sec)

  Standby router is local

  Priority 200 (configured 200)

    Track interface FastEthernet1/1 state Up decrement 50

  IP redundancy name is “hsrp-Fa1/0-0” (default)

 

VRRP
R3# sh run

 

key chain KCHN-R3

 key 1              

  key-string salam

 

track 1 interface fastEthernet 1/1 line-protocol

 

interface FastEthernet1/0

 ip address 172.16.12.13 255.255.255.240

vrrp 1 ip 172.16.12.10

 vrrp 1 priority 200

 vrrp 1 authentication md5 key-chain KCHN-R3

 vrrp 1 track 1 decrement 50           

R2# sh run

 

key chain KCHN-R2

 key 1              

  key-string salam

 

track 1 interface fastEthernet 1/1 line-protocol

 

interface FastEthernet1/0

 ip address 172.16.12.12 255.255.255.240

 vrrp 1 ip 172.16.12.10

 vrrp 1 priority 200

 vrrp 1 authentication md5 key-chain KCHN-R2

 vrrp 1 track 1 decrement 50

R2#sh vrrp

FastEthernet1/0 – Group 1

  State is Backup

  Virtual IP address is 172.16.12.10

  Virtual MAC address is 0000.5e00.0101

  Advertisement interval is 1.000 sec

  Preemption enabled

  Priority is 200

    Track object 1 state Up decrement 50

  Authentication MD5, key-chain “KCHN-R2”

  Master Router is 172.16.12.13, priority is 200

  Master Advertisement interval is 1.000 sec

  Master Down interval is 3.218 sec (expires in 2.762 sec)

 

FastEthernet1/0 – Group 1

  State is Master

  Virtual IP address is 172.16.12.10

  Virtual MAC address is 0000.5e00.0101

  Advertisement interval is 1.000 sec

  Preemption enabled

  Priority is 200

    Track object 1 state Up decrement 50

  Authentication MD5, key-chain “KCHN-R3”

  Master Router is 172.16.12.13 (local), priority is 200

  Master Advertisement interval is 1.000 sec

  Master Down interval is 3.218 sec

 

 

GLBP
R3# sh run

 

key chain KCHN-R3

 key 1              

  key-string salam

 

track 1 interface fastEthernet 1/1 line-protocol

 

interface FastEthernet1/0

 ip address 172.16.12.13 255.255.255.240

 glbp 0 ip 172.16.12.11

 glbp 0 priority 200

 glbp 0 preempt

 glbp 0 weighting 10

 glbp 0 authentication md5 key-chain KCHN-R3

 glbp 0 weighting track 1

R2# sh run

 

key chain KCHN-R2

 key 1              

  key-string salam

 

track 1 interface fastEthernet 1/1 line-protocol

 

interface FastEthernet1/0

 ip address 172.16.12.13 255.255.255.240

 glbp 0 ip 172.16.12.11

 glbp 0 priority 200

 glbp 0 preempt

 glbp 0 weighting 20

 glbp 0 authentication md5 key-chain KCHN-R2

 glbp 0 weighting track 1

 

R2#sh glbp

FastEthernet1/0 – Group 0

  State is Active

    2 state changes, last state change 00:12:02

  Virtual IP address is 172.16.12.11

  Hello time 3 sec, hold time 10 sec

    Next hello sent in 0.932 secs

  Redirect time 600 sec, forwarder time-out 14400 sec

  Authentication MD5, key-chain “KCHN-R2”

  Preemption enabled, min delay 0 sec

  Active is local

  Standby is 172.16.12.13, priority 200 (expires in 7.312 sec)

  Priority 200 (configured)

  Weighting 10 (configured 10), thresholds: lower 1, upper 10

    Track object 1 state Up decrement 10

  Load balancing: round-robin

  Group members:

    ca00.6375.001c (172.16.12.12) local

    ca01.6375.001c (172.16.12.13) authenticated

  There are 2 forwarders (1 active)

  Forwarder 1

    State is Active

      1 state change, last state change 00:11:52

    MAC address is 0007.b400.0001 (default)

    Owner ID is ca00.6375.001c

    Redirection enabled

    Preemption enabled, min delay 30 sec

    Active is local, weighting 10

  Forwarder 2

    State is Listen

    MAC address is 0007.b400.0002 (learnt)

    Owner ID is ca01.6375.001c

    Redirection enabled, 597.308 sec remaining (maximum 600 sec)

    Time to live: 14397.308 sec (maximum 14400 sec)

    Preemption enabled, min delay 30 sec

    Active is 172.16.12.13 (primary), weighting 20 (expires in 7.308 sec)

 

R3#sh glbp

FastEthernet1/0 – Group 0

  State is Standby

    1 state change, last state change 00:09:55

  Virtual IP address is 172.16.12.11

  Hello time 3 sec, hold time 10 sec

    Next hello sent in 1.428 secs

  Redirect time 600 sec, forwarder time-out 14400 sec

  Authentication MD5, key-chain “KCHN-R3”

  Preemption enabled, min delay 0 sec

  Active is 172.16.12.12, priority 200 (expires in 9.084 sec)

  Standby is local

  Priority 200 (configured)

  Weighting 20 (configured 20), thresholds: lower 1, upper 20

    Track object 1 state Up decrement 10

  Load balancing: round-robin

  Group members:

    ca00.6375.001c (172.16.12.12) authenticated

    ca01.6375.001c (172.16.12.13) local

  There are 2 forwarders (1 active)

  Forwarder 1

    State is Listen

    MAC address is 0007.b400.0001 (learnt)

    Owner ID is ca00.6375.001c

    Time to live: 14399.084 sec (maximum 14400 sec)

    Preemption enabled, min delay 30 sec

    Active is 172.16.12.12 (primary), weighting 10 (expires in 9.084 sec)

  Forwarder 2

    State is Active

      1 state change, last state change 00:09:59

    MAC address is 0007.b400.0002 (default)

    Owner ID is ca01.6375.001c

    Preemption enabled, min delay 30 sec

    Active is local, weighting 20

Share

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: