Showing posts with label HSRP. Show all posts
Showing posts with label HSRP. Show all posts

Sunday, 27 February 2022

HSRP for SVI






AGG_L3_SW1#

*Feb 27 13:41:54.080: HSRP: Vl20 Grp 20 Hello  in  20.1.1.3 Active  pri 100 vIP 20.1.1.1

*Feb 27 13:41:54.090: HSRP: Vl10 Grp 10 Hello  out 10.1.1.2 Active  pri 120 vIP 10.1.1.1

*Feb 27 13:41:54.390: HSRP: Vl10 Grp 10 Hello  in  10.1.1.3 Standby pri 100 vIP 10.1.1.1

*Feb 27 13:41:54.881: HSRP: Vl20 Grp 20 Hello  out 20.1.1.2 Standby pri 100 vIP 20.1.1.1

AGG_L3_SW1#

*Feb 27 13:41:56.648: HSRP: Vl20 Grp 20 Hello  in  20.1.1.3 Active  pri 100 vIP 20.1.1.1

*Feb 27 13:41:56.681: HSRP: Vl10 Grp 10 Hello  out 10.1.1.2 Active  pri 120 vIP 10.1.1.1

*Feb 27 13:41:56.921: HSRP: Vl10 Grp 10 Hello  in  10.1.1.3 Standby pri 100 vIP 10.1.1.1

AGG_L3_SW1#sh standby brief

                     P indicates configured to preempt.

                     |

Interface   Grp  Pri P State   Active          Standby         Virtual IP

Vl10        10   120   Active  local           10.1.1.3        10.1.1.1

Vl20        20   100 P Standby 20.1.1.3        local           20.1.1.1

AGG_L3_SW1#

 

 

AGG_L3_SW2#

AGG_L3_SW2#sh standby brief

                     P indicates configured to preempt.

                     |

Interface   Grp  Pri P State   Active          Standby         Virtual IP

Vl10        10   100   Standby 10.1.1.2        local           10.1.1.1

Vl20        20   100   Active  local           20.1.1.2        20.1.1.1

AGG_L3_SW2#

AGG_L3_SW2#

AGG_L3_SW2#

 

In the above cmd we have P option for preempt to view the status of same - whether configured or not !!!!

AGG_L3_SW1#config t

AGG_L3_SW1(config)#int vlan20

*Feb 27 13:43:42.810: HSRP: Vl20 Grp 20 Hello  out 20.1.1.2 Standby pri 100 vIP 20.1.1.1

AGG_L3_SW1(config-if)#standby 20 priority 110

AGG_L3_SW1(config-if)#

AGG_L3_SW1(config-if)#

*Feb 27 13:43:54.651: HSRP: Vl20 Grp 20 Priority 100 -> 110

*Feb 27 13:43:54.977: HSRP: Vl10 Grp 10 Hello  out 10.1.1.2 Active  pri 120 vIP 10.1.1.1

*Feb 27 13:43:55.231: HSRP: Vl10 Grp 10 Hello  in  10.1.1.3 Standby pri 100 vIP 10.1.1.1

*Feb 27 13:43:55.630: HSRP: Vl20 Grp 20 Hello  in  20.1.1.3 Active  pri 100 vIP 20.1.1.1

*Feb 27 13:43:55.630: HSRP: Vl20 Grp 20 Standby: h/Hello rcvd from lower pri Active router (100/20.1.1.3)

*Feb 27 13:43:55.630: HSRP: Vl20 Grp 20 Active router is local, was 20.1.1.3

*Feb 27 13:43:55.630: HSRP: Vl20 Nbr 20.1.1.3 no longer active for group 20 (Standby)

*Feb 27 13:43:55.630: HSRP: Vl20 Nbr 20.1.1.3 Was active or standby - start passive holddown

*Feb 27 13:43:55.630: HSRP: Vl20 Grp 20 Standby router is unknown, was local

*Feb 27 13:43:55.630: HSRP: Vl20 Interface adv out, Active, active 1 passive 1

*Feb 27 13:43:55.630: HSRP: Vl20 Grp 20 Coup   out 20.1.1.2 Standby pri 110 vIP 20.1.1.1

*Feb 27 13:43:55.631: HSRP: Vl20 Grp 20 Standby -> Active

*Feb 27 13:43:55.631: %HSRP-5-STATECHANGE: Vlan20 Grp 20 state Standby -> Active

*Feb 27 13:43:55.631: HSRP: Vl20 Interface adv out, Active, active 1 passive 0

*Feb 27 13:43:55.631: HSRP: Vl20 Grp 20 Redundancy "hsrp-Vl20-20" state Standby -> Active

*Feb 27 13:43:55.631: HSRP: Vl20 Grp 20 Hello  out 20.1.1.2 Active  pri 110 vIP 20.1.1.1

*Feb 27 13:43:55.632: HSRP: Vl20 Grp 20 Added 20.1.1.1 to ARP (0000.0c07.ac14)

*Feb 27 13:43:55.632: HSRP: Vl20 Grp 20 Activating MAC 0000.0c07.ac14

*Feb 27 13:43:55.632: HSRP: Vl20 Grp 20 Adding 0000.0c07.ac14 to MAC address filter - resetting the interface

*Feb 27 13:43:55.632: HSRP: Vl20 IP Redundancy "hsrp-Vl20-20" standby, local -> unknown

AGG_L3_SW1(config-if)#

*Feb 27 13:43:55.632: HSRP: Vl20 IP Redundancy "hsrp-Vl20-20" update, Standby -> Active

*Feb 27 13:43:55.634: HSRP: Vl20 Interface adv in, Passive, active 0, passive 1, from 20.1.1.3

*Feb 27 13:43:55.634: HSRP: Vl20 Grp 20 Hello  in  20.1.1.3 Speak   pri 100 vIP 20.1.1.1

AGG_L3_SW1(config-if)#

*Feb 27 13:43:57.701: HSRP: Vl10 Grp 10 Hello  in  10.1.1.3 Standby pri 100 vIP 10.1.1.1

*Feb 27 13:43:57.710: HSRP: Vl10 Grp 10 Hello  out 10.1.1.2 Active  pri 120 vIP 10.1.1.1

*Feb 27 13:43:58.541: HSRP: Vl20 Grp 20 Hello  out 20.1.1.2 Active  pri 110 vIP 20.1.1.1

*Feb 27 13:43:58.608: HSRP: Vl20 Grp 20 Hello  in  20.1.1.3 Speak   pri 100 vIP 20.1.1.1

*Feb 27 13:43:58.650: HSRP: Vl20 IP Redundancy "hsrp-Vl20-20" update, Active -> Active

AGG_L3_SW1(config-if)#

*Feb 27 13:44:00.349: HSRP: Vl10 Grp 10 Hello  in  10.1.1.3 Standby pri 100 vIP 10.1.1.1

*Feb 27 13:44:00.578: HSRP: Vl10 Grp 10 Hello  out 10.1.1.2 Active  pri 120 vIP 10.1.1.1

*Feb 27 13:44:01.301: HSRP: Vl20 Grp 20 Hello  out 20.1.1.2 Active  pri 110 vIP 20.1.1.1

*Feb 27 13:44:01.321: HSRP: Vl20 Grp 20 Hello  in  20.1.1.3 Speak   pri 100 vIP 20.1.1.1

AGG_L3_SW1(config-if)#

*Feb 27 13:44:02.992: HSRP: Vl10 Interface adv in, Passive, active 0, passive 1, from 10.1.1.3

*Feb 27 13:44:03.098: HSRP: Vl10 Grp 10 Hello  in  10.1.1.3 Standby pri 100 vIP 10.1.1.1

*Feb 27 13:44:03.463: HSRP: Vl10 Grp 10 Hello  out 10.1.1.2 Active  pri 120 vIP 10.1.1.1

AGG_L3_SW1(config-if)#

*Feb 27 13:44:04.215: HSRP: Vl20 Grp 20 Hello  in  20.1.1.3 Speak   pri 100 vIP 20.1.1.1

*Feb 27 13:44:04.301: HSRP: Vl20 Grp 20 Hello  out 20.1.1.2 Active  pri 110 vIP 20.1.1.1

AGG_L3_SW1(config-if)#

*Feb 27 13:44:05.748: HSRP: Vl10 Grp 10 Hello  in  10.1.1.3 Standby pri 100 vIP 10.1.1.1

*Feb 27 13:44:05.940: HSRP: Vl10 Grp 10 Hello  out 10.1.1.2 Active  pri 120 vIP 10.1.1.1

*Feb 27 13:44:06.252: HSRP: Vl20 Grp 20 Hello  in  20.1.1.3 Standby pri 100 vIP 20.1.1.1

*Feb 27 13:44:06.252: HSRP: Vl20 Grp 20 Standby router is 20.1.1.3

*Feb 27 13:44:06.252: HSRP: Vl20 Nbr 20.1.1.3 is no longer passive

*Feb 27 13:44:06.252: HSRP: Vl20 Nbr 20.1.1.3 standby for group 20

AGG_L3_SW1(config-if)#

*Feb 27 13:44:07.010: HSRP: Vl20 Grp 20 Hello  out 20.1.1.2 Active  pri 110 vIP 20.1.1.1

AGG_L3_SW1(config-if)#

*Feb 27 13:44:08.573: HSRP: Vl10 Grp 10 Hello  out 10.1.1.2 Active  pri 120 vIP 10.1.1.1

*Feb 27 13:44:08.638: HSRP: Vl10 Grp 10 Hello  in  10.1.1.3 Standby pri 100 vIP 10.1.1.1

*Feb 27 13:44:09.155: HSRP: Vl20 Grp 20 Hello  in  20.1.1.3 Standby pri 100 vIP 20.1.1.1

*Feb 27 13:44:09.577: HSRP: Vl20 Grp 20 Hello  out 20.1.1.2 Active  pri 110 vIP 20.1.1.1

AGG_L3_SW1(config-if)#exit

AGG_L3_SW1(config)#

*Feb 27 13:44:11.069: HSRP: Vl10 Grp 10 Hello  out 10.1.1.2 Active  pri 120 vIP 10.1.1.1

*Feb 27 13:44:11.216: HSRP: Vl10 Grp 10 Hello  in  10.1.1.3 Standby pri 100 vIP 10.1.1.1

*Feb 27 13:44:11.594: HSRP: Vl20 Grp 20 Hello  in  20.1.1.3 Standby pri 100 vIP 20.1.1.1

AGG_L3_SW1(config)#

AGG_L3_SW1(config)#un

*Feb 27 13:44:12.571: HSRP: Vl20 Grp 20 Hello  out 20.1.1.2 Active  pri 110 vIP 20.1.1.1

*Feb 27 13:44:13.561: HSRP: Vl10 Grp 10 Hello  out 10.1.1.2 Active  pri 120 vIP 10.1.1.1

AGG_L3_SW1(config)#end

AGG_L3_SW1#

AGG_L3_SW1#

AGG_L3_SW1#un

*Feb 27 13:44:14.104: HSRP: Vl10 Grp 10 Hello  in  10.1.1.3 Standby pri 100 vIP 10.1.1.1

*Feb 27 13:44:14.339: HSRP: Vl20 Grp 20 Hello  in  20.1.1.3 Standby pri 100 vIP 20.1.1.1

*Feb 27 13:44:14.858: %SYS-5-CONFIG_I: Configured from console by console

AGG_L3_SW1#un al

*Feb 27 13:44:15.484: HSRP: Vl20 Grp 20 Hello  out 20.1.1.2 Active  pri 110 vIP 20.1.1.1

*Feb 27 13:44:16.080: HSRP: Vl10 Grp 10 Hello  out 10.1.1.2 Active  pri 120 vIP 10.1.1.1

AGG_L3_SW1#un all

All possible debugging has been turned off

AGG_L3_SW1#

*Feb 27 13:44:16.937: HSRP: Vl10 Grp 10 Hello  in  10.1.1.3 Standby pri 100 vIP 10.1.1.1

*Feb 27 13:44:16.954: HSRP: Vl20 Grp 20 Hello  in  20.1.1.3 Standby pri 100 vIP 20.1.1.1

AGG_L3_SW1#sh standby brief

                     P indicates configured to preempt.

                     |

Interface   Grp  Pri P State   Active          Standby         Virtual IP

Vl10        10   120   Active  local           10.1.1.3        10.1.1.1

Vl20        20   110 P Active  local           20.1.1.3        20.1.1.1

 

 

AGG_L3_SW2(config-if)#standby 20 preempt delay minimum 10

AGG_L3_SW2#config t

Enter configuration commands, one per line.  End with CNTL/Z.

AGG_L3_SW2(config)#int vlan20

AGG_L3_SW2(config-if)#standby 20 priority 115

AGG_L3_SW2(config-if)#end

AGG_L3_SW2#

*Feb 27 13:55:51.524: HSRP: Vl20 Grp 20 Hello  out 20.1.1.3 Standby pri 100 vIP 20.1.1.1

*Feb 27 13:55:51.591: HSRP: Vl20 Grp 20 Hello  in  20.1.1.2 Active  pri 110 vIP 20.1.1.1

*Feb 27 13:55:52.069: HSRP: Vl10 Grp 10 Hello  out 10.1.1.3 Standby pri 100 vIP 10.1.1.1

AGG_L3_SW2#

*Feb 27 13:55:52.615: HSRP: Vl20 Grp 20 Priority 100 -> 115

*Feb 27 13:55:52.628: %SYS-5-CONFIG_I: Configured from console by console

AGG_L3_SW2#

*Feb 27 13:55:52.703: HSRP: Vl10 Grp 10 Hello  in  10.1.1.2 Active  pri 120 vIP 10.1.1.1

AGG_L3_SW2#

*Feb 27 13:55:53.970: HSRP: Vl20 Grp 20 Hello  out 20.1.1.3 Standby pri 115 vIP 20.1.1.1

*Feb 27 13:55:54.365: HSRP: Vl20 Grp 20 Hello  in  20.1.1.2 Active  pri 110 vIP 20.1.1.1

*Feb 27 13:55:54.365: HSRP: Vl20 Grp 20 Standby: h/Hello rcvd from lower pri Active router (110/20.1.1.2)

*Feb 27 13:55:54.365: HSRP: Vl20 Grp 20 Starting minimum preempt delay (10 secs)

*Feb 27 13:55:54.601: HSRP: Vl10 Grp 10 Hello  out 10.1.1.3 Standby pri 100 vIP 10.1.1.1

AGG_L3_SW2#

*Feb 27 13:55:55.491: HSRP: Vl10 Grp 10 Hello  in  10.1.1.2 Active  pri 120 vIP 10.1.1.1

*Feb 27 13:55:56.429: HSRP: Vl20 Grp 20 Hello  out 20.1.1.3 Standby pri 115 vIP 20.1.1.1

AGG_L3_SW2#

*Feb 27 13:55:57.248: HSRP: Vl20 Grp 20 Hello  in  20.1.1.2 Active  pri 110 vIP 20.1.1.1

*Feb 27 13:55:57.529: HSRP: Vl10 Grp 10 Hello  out 10.1.1.3 Standby pri 100 vIP 10.1.1.1

*Feb 27 13:55:58.285: HSRP: Vl10 Grp 10 Hello  in  10.1.1.2 Active  pri 120 vIP 10.1.1.1

AGG_L3_SW2#

*Feb 27 13:55:59.174: HSRP: Vl20 Grp 20 Hello  out 20.1.1.3 Standby pri 115 vIP 20.1.1.1

*Feb 27 13:55:59.662: HSRP: Vl20 Grp 20 Hello  in  20.1.1.2 Active  pri 110 vIP 20.1.1.1

*Feb 27 13:56:00.134: HSRP: Vl10 Grp 10 Hello  out 10.1.1.3 Standby pri 100 vIP 10.1.1.1

AGG_L3_SW2#un all

*Feb 27 13:56:01.000: HSRP: Vl10 Grp 10 Hello  in  10.1.1.2 Active  pri 120 vIP 10.1.1.1

*Feb 27 13:56:01.952: HSRP: Vl20 Grp 20 Hello  out 20.1.1.3 Standby pri 115 vIP 20.1.1.1

AGG_L3_SW2#un all

*Feb 27 13:56:02.489: HSRP: Vl20 Grp 20 Hello  in  20.1.1.2 Active  pri 110 vIP 20.1.1.1

*Feb 27 13:56:02.768: HSRP: Vl10 Grp 10 Hello  out 10.1.1.3 Standby pri 100 vIP 10.1.1.1

*Feb 27 13:56:03.513: HSRP: Vl10 Interface adv out, Passive, active 0 passive 1

AGG_L3_SW2#un all

*Feb 27 13:56:03.567: HSRP: Vl10 Grp 10 Hello  in  10.1.1.2 Active  pri 120 vIP 10.1.1.1

*Feb 27 13:56:04.412: HSRP: Vl20 Grp 20 Hello  out 20.1.1.3 Standby pri 115 vIP 20.1.1.1

AGG_L3_SW2#un all

*Feb 27 13:56:05.263: HSRP: Vl20 Grp 20 Hello  in  20.1.1.2 Active  pri 110 vIP 20.1.1.1

*Feb 27 13:56:05.263: HSRP: Vl20 Grp 20 Minimum preempt delay expired

*Feb 27 13:56:05.263: HSRP: Vl20 Grp 20 Active router is local, was 20.1.1.2

*Feb 27 13:56:05.263: HSRP: Vl20 Nbr 20.1.1.2 no longer active for group 20 (Standby)

*Feb 27 13:56:05.263: HSRP: Vl20 Nbr 20.1.1.2 Was active or standby - start passive holddown

*Feb 27 13:56:05.263: HSRP: Vl20 Grp 20 Standby router is unknown, was local

*Feb 27 13:56:05.263: HSRP: Vl20 Interface adv out, Active, active 1 passive 1

*Feb 27 13:56:05.263: HSRP: Vl20 Grp 20 Coup   out 20.1.1.3 Standby pri 115 vIP 20.1.1.1

*Feb 27 13:56:05.263: HSRP: Vl20 Grp 20 Standby -> Active

*Feb 27 13:56:05.263: %HSRP-5-STATECHANGE: Vlan20 Grp 20 state Standby -> Active

*Feb 27 13:56:05.263: HSRP: Vl20 Interface adv out, Active, active 1 passive 0

*Feb 27 13:56:05.263: HSRP: Vl20 Grp 20 Redundancy "hsrp-Vl20-20" state Standby -> Active

*Feb 27 13:56:05.263: HSRP: Vl20 Grp 20 Hello  out 20.1.1.3 Active  pri 115 vIP 20.1.1.1

*Feb 27 13:56:05.263: HSRP: Vl20 Grp 20 Added 20.1.1.1 to ARP (0000.0c07.ac14)

*Feb 27 13:56:05.263: HSRP: Vl20 Grp 20 Activating MAC 0000.0c07.ac14

*Feb 27 13:56:05.263: HSRP: Vl20 Grp 20 Adding 0000.0c07.ac14 to MAC address filter - resetting the interface

*Feb 27 13:56:05.264: HSRP: Vl20 IP Redundancy "hsrp-Vl20-20" standby, local -> unknown

AGG_L3_SW2#un all

All possible debugging has been turned off

AGG_L3_SW2#

*Feb 27 13:56:05.264: HSRP: Vl20 IP Redundancy "hsrp-Vl20-20" update, Standby -> Active

*Feb 27 13:56:05.267: HSRP: Vl20 Interface adv in, Passive, active 0, passive 1, from 20.1.1.2

*Feb 27 13:56:05.267: HSRP: Vl20 Grp 20 Hello  in  20.1.1.2 Speak   pri 110 vIP 20.1.1.1

*Feb 27 13:56:05.786: HSRP: Vl10 Grp 10 Hello  out 10.1.1.3 Standby pri 100 vIP 10.1.1.1

*Feb 27 13:56:06.130: HSRP: Vl10 Grp 10 Hello  in  10.1.1.2 Active  pri 120 vIP 10.1.1.1

AGG_L3_SW2#sh stand

AGG_L3_SW2#sh standby br

AGG_L3_SW2#sh standby brief

                     P indicates configured to preempt.

                     |

Interface   Grp  Pri P State   Active          Standby         Virtual IP

Vl10        10   100   Standby 10.1.1.2        local           10.1.1.1

Vl20        20   115 P Active  local           unknown         20.1.1.1

AGG_L3_SW2#sh standby brief

                     P indicates configured to preempt.

                     |

Interface   Grp  Pri P State   Active          Standby         Virtual IP

Vl10        10   100   Standby 10.1.1.2        local           10.1.1.1

Vl20        20   115 P Active  local           20.1.1.2        20.1.1.1

AGG_L3_SW2#


Thanks for Reading!!!!

Network Engineer Stuff

Monday, 24 May 2021

HSRP Vs VRRP Vs GLBP

 

Routing Protocols gives redundancy at layer 3

Redundancy between 2 switches, you connect 2 or more links between them.

Similarly to allow redundancy for your clients, you might want to connect 2 routers as the gateway to exit from the network.

FHRP  First Hop Redundancy Protocol

Gives redundancy at First Hop level gives redundancy at the gateway level

On PC I can configure only one IP address as default gateway. If that device (router) goes down then I would need to configure manually on my PCs the new default gateway.

So from the perspective of PC needs --> First Hop Redundancy

FHRP technology allows the 2 routers to share a single IP address. Or we can say a shared ip address between the 2 routers which is called as the VIP – Virtual IP .where you have the rights to prefer a specific router as forwarding router and another routers as Backup router.

Along with VIP the routers will also share mac address.

Forwarding router is the router which will be answering for the VIP and will forward the traffic .

FHRP establish the relationship between the 2 routers, hellos are exchanges between those routers and incase the forwarding/active/master router goes down then the standby router will become active and will now be answering for the VIP and will forward traffic for the clients.

We have the rights which router to be preferred as forwarding/active/master and backup/standby by manipulating the priority values.

Remember FHRP is the technology it is not the actual implementation.

There are 3 main FHRP Implementations HSRP VRRP AND GLBP

Protocol Features

HSRP -
Hot Standby Protocol

VRRP -
Virtual Redudancy Protocol

GLBP -
Gateway Load
Balancing Protocol

Scope

Cisco Proprietary

IEEE standard

Cisco proprietary

Standard

RFC2281

RFC3768

none

OSI Layer

Layer-3

Layer-3

Layer-2

Load Balancing

No

No

Yes

Multicast Group IP address

224.0.0.2 in version 1 
 224.0.0.102 in version 2

224.0.0.18

224.0.0.102

Transport Port Number

UDP 1985

UDP 112

UDP 3222

Timers

Hello – 3 sec

Advertisement – 1 sec

Hello – 3sec

Hold – 10 sec

Master down time = 3*Advertisement Time
+ Skew TimeSkew
Time = (256- Priority)/256

Hold – 10sec

Election

Active Router:1.Highest Priority2. Highest IP address (Tiebreaker)

Master Router: (*)

Active Virtual Gateway:

1-Highest Priority

1-Highest Priority

2-Highest IP (Tiebreaker)

2-Highest IP (Tiebreaker)

Router Role

One Active Router, One Standby Router , One or more listening Router/s

– One Active Router- One or
 More Backup Routers

One AVG (Active Virtual Gateway)- up to 4 AVF
 Routers on the group
 (Active Virtual Forwarder) passing traffic.
- up to 1024 virtual Routers (GLBP groups)
 per physical interface.

Preempt

If Active Router(Highest Priority) is down and up again, Preempt should be configured to become a Active Router again

 By default Preempt is ON in VRRP,
 If Active Router is down and
up again, It will
automatically become a MasterRouter

If Active Router(Highest Priority) is down
 and up again, Preempt should be configured
 to become a Active Router again.

Group Virtual Mac Address

0000.0c07.acxx

0000.5e00.01xx

0007.b4xx.xxxx

IPv6 support

Yes

No

Yes