THE SCHOOL OF CISCO NETWORKING (SCN): HSRP STEP BY STEP CONFIGURATION GUIDELINE:
Contact No:   ### / ###/ ###
Welcome To The IT Knowledge Base Sharing Freeway "Study With The Zero Fees / Zero Money" Web - If We Believe, That If We Have Knowledge, Let Others Light Their Candles With It. - Our Motivation Has Brought Us Together To Offer Our Helping Hands To The Needy Ones Please. "Student Expectations And Satisfaction Is Always Our Highest Priority")

'Love All, Serve All, Help Ever Hurt Never'

Please Welcome To The "Zero Fees And Zero Money SCN Community Study Page"

We Like To Share Our Stuff With Everyone And Hope You Will Find Something Useful Here. Enjoy Our Collection And Come Back Again And Again, We'll Do Our Best To Make It Always Interesting For You. All Our Stuff Always Available May Be 100% Totally Freely. Use Only For Non-Commercial Purposes Only!

THE SCHOOL OF CISCO NETWORKING (SCN) Is A IT Support Community – Based, Non - Profit Volunteer Organizations, Offering Our Assistance And Support To Developmental Our Services Dedicated To All.

Because Large Section Of Our Students In This World, Especially In Villages, Who Are Under Privileged Expecting For Equal Opportunity In Terms Of Money And Education. We Feel The Sufferings Of Talented Students Losing Their Opportunity To Shine Because Of Their Poor Financial Status. So We Thought That Professional Education Will Be Providing Them Freely.

Our Web Site Is To Give An Easy Way To Understand Each And Every Student Who Are Going To Start CISCO Lab Practice Without Any Doubts And Our ARTICLES STUFF Are Always 100% Totally Free For Everyone, Which Is Belongings To THE SCHOOL OF CISCO NETWORKING (SCN).

Also This Guide Provides Technical Guidance Intended To Help All Network Students, Network Administrators And Security Officers Improve Of Their Demonstrated Ability To Achieve Specific objectives Within Set Timeframes.

Hands - On Experience Is An Invaluable Part Of Preparing For The Lab Exam And Never Pass Up An Opportunity To Configure Or Troubleshoot A Router ( If You Have Access To Lab Facilities, Take Full Advantage Of Them) There Is No Replacement For The Experience You Can Gain From Working In A Lab, Where You Can Configure Whatever You Want To Configure And Introduce Whatever Problems You Want To Introduce, Without Risk Of Disrupting A Production Network.

For Better View Of Our Web Page - Please Use Any Latest Web Browser, Such As (Mozilla Firefox, Google Chrome, Opera, Safari, Internet Explorer, Torch, Maxthon, Sea Monkey, Avant Browser, Deepnet Explorer, And Etc ), Because Some Elements Or Scripts Are Not Work In The Old Web Browser (It Might Not Be Displayed Properly Or Are Not Appearing properly!). Thank You For Your Time And Best Of Luck!

Your Sincerely – Premakumar Thevathasan.
"Our Motivation Has Brought Us Together To Offer Our Helping Hands To The Needy Once Please,Thank You."

HSRP STEP BY STEP CONFIGURATION GUIDELINE:

HOT STANDBY ROUTER PROTOCOL (HSRP) CONFIGURATION EXAMPLES:

Dear Web User:

For Better View Of This Web Page, Please Use Any Latest Web Browser, Because Some Elements Are Not Work In The Old Web Browser (Might Not Be Displayed Properly Or Are Not Appearing properly!).

Plz Note:

Some Topics That You Might Want To Pursue On Your Own That We Did Not Cover In This Article Are Listed Here. This Page Discusses “HOT STANDBY ROUTER PROTOCOL (HSRP) CONFIGURATION EXAMPLES”, And Also We Request To The Students, Please Go Through All The Articles That Are We Posted In This Web Site And Also Identify All The CISCO IOS Commands In The Lab Practice Before Going To Access This Page. And Also We Hope All These Configurations Can Help You To Prepare For The CCNP TSHOOT (642-832) Exam. Thank You!


HSRP, VRRP AND GLBP PROTOCOLS COMPARISON NOTES


HOT STANDBY ROUTER PROTOCOL (HSRP):

◙ - ➤  For More About - > HOT STANDBY ROUTER PROTOCOL (HSRP):


VIRTUAL ROUTER REDUNDANCY PROTOCOL (VRRP)


  VIRTUAL REDUNDANT ROUTING PROTOCOL (VRRP):

◙ - ➤  For More About - > VRRP CONFIGURATION EXAMPLES:


HSRP STEP BY STEP CONFIGURATION GUIDELINE


BASIC HSRP CONFIGURATION EXAMPLES

◙ - ➤  WE WANT ROUTER1 TO HANDLE ALL OF THE TRAFFIC USING THE VIRTUAL IP:

There Are Two Routers Called ROUTER1 And ROUTER2, Which Have The IP Addresses 172.22.1.3 And 172.22.1.2, Respectively. When Both Routers Are Available, We Want Router1 To Handle All Of The Traffic Using The Virtual IP Address 172.22.1.1.

CONFIGURE THE FIRST ROUTER AS FOLLOWS:

Router1#Configure Terminal
Enter Configuration Commands, One Per Line. End With CNTL/Z.
Router1(Config)#Interface Fastethernet 0/1
Router1(Config-If)#IP Address 172.22.1.3 255.255.255.0
Router1(Config-If)#Standby 1 IP 172.22.1.1
Router1(Config-If)#Standby 1 Priority 120
Router1(Config-If)#End
Router1#

THE SECOND ROUTER'S CONFIGURATION IS SIMILAR:, Except That The Interface Has A Different Real IP Address And A Lower HSRP Priority Level:

Router2#Configure Terminal
Enter Configuration Commands, One Per Line. End With CNTL/Z.
Router2(Config)#Interface Fastethernet 1/0
Router2(Config-If)#Ip Address 172.22.1.2 255.255.255.0
Router2(Config-If)#Standby 1 IP 172.22.1.1
Router2(Config-If)#Standby 1 Priority 110
Router2(Config-If)#End
Router2#

The Recipe Example Shows Two Routers For Simplicity. YOU COULD ADD MORE ROUTERS TO THE SAME HSRP GROUP BY SIMPLY SPECIFYING ANOTHER UNIQUE REAL IP ADDRESS AND A LOWER HSRP PRIORITY:

Router3#Configure Terminal
Enter Configuration Commands, One Per Line. End With CNTL/Z.
Router3(Config)#Interface Fastethernet 1/0
Router3(Config-If)#IP Address 172.22.1.4 255.255.255.0
Router3(Config-If)#Standby 1 IP 172.22.1.1
Router3(Config-If)#Standby 1 Priority 100
Router3(Config-If)#End
Router3#

However, There Is Questionable Benefit To Using More Than Two Routers In A Full Redundancy Configuration. The Reason Has To Do With Simple Probability. If You Have A Backup Router That Uses HSRP To Automatically And Transparently Take Over All Routing Functions For This Segment, Then You Will Only Have A Critical Outage If Both Routers Fail Simultaneously.


USING HSRP “PREEMPT” COMMAND EXAMPLES


◙ - ➤  USING HSRP “PREEMPT” COMMAND:

You Want To Ensure That A Particular Router Is Always Selected As The "Active" HSRP Router Whenever It Is Up And Functioning And You Can Ensure That A Particular Router Is Always Selected As The HSRP Active Router If It Is Available. On The Router That You Wish To Make Your Primary Active HSRP Router, You Need To Set A Higher Priority Level And Use The Standby Preempt Command:

Router1#Configure Terminal
Enter Configuration Commands, One Per Line. End With CNTL/Z.
Router1(Config)#Interface Fastethernet 0/1
Router1(Config-If)#Standby 1 IP 172.22.1.1
Router1(Config-If)#Standby 1 Priority 120
Router1(Config-If)#Standby 1 Preempt
Router1(Config-If)#End
Router1#

The Only Difference On The Second Router Is The HSRP Priority Level. The Lower Priority In Conjunction With The Standby Preempt Command Forces The Second HSRP Router To Remain In A Standby State Unless The Primary Router Becomes Unreachable. Then, When The Primary Router Becomes Available Again, The Secondary Router Will Relinquish Its Role And Allow The Primary Router To Take Over As The Active HSRP Router:

Router2#Configure Terminal
Enter Configuration Commands, One Per Line. End With CNTL/Z.
Router2(Config)#Interface Fastethernet 1/0
Router2(Config-If)#Standby 1 IP 172.22.1.1
Router2(Config-If)#Standby 1 Priority 110
Router2(Config-If)#Standby 1 Preempt
Router2(Config-If)#End
Router2#

YOU CAN ALSO CONFIGURE THIS FEATURE BY SPECIFYING THE PREEMPT KEYWORD ON THE STANDBY PRIORITY CONFIGURATION COMMAND. BOTH METHODS PRODUCE EXACTLY THE SAME RESULTS:

Router2#Configure Terminal
Enter Configuration Commands, One Per Line. End With CNTL/Z.
Router2(Config)#Interface Fastethernet 1/0
Router2(Config-If)#Standby 1 IP 172.22.1.1
Router2(Config-If)#Standby 1 Priority 110 Preempt
Router2(Config-If)#End
Router2#

NOTE: The Standby Preempt Feature Means That The Router With The Higher Priority Is Always The Active Router If It Is Available. If Two Routers Have The Same Priority, The Interface With The Highest Physical IP Address Becomes Active.

THE FOLLOWING COMMAND WILL MAKE A ROUTER WAIT 60 SECONDS BEFORE BECOMING THE ACTIVE HSRP ROUTER:

Router2(Config-If)#Standby 1 Preempt Delay 60

YOU CAN SET THIS DELAY TO ANY VALUE BETWEEN 0 AND 3600 SECONDS. YOU CAN ALSO COMBINE THIS COMMAND WITH THE PRIORITY COMMAND:

Router2(Config-If)#Standby 1 Priority 110 Preempt Delay 60

THE SHOW STANDBY COMMAND SHOWS ADDITIONAL INFORMATION WHEN THE PREEMPT OPTION IS CONFIGURED:

Router1#Show Standby


USING HSRP “TRACKING” COMMAND EXAMPLES


◙ - ➤  USING HSRP “TRACKING” COMMAND:

The Standby Track Configuration Command Reduces The Priority Of An Active HSRP Router Into A Standby Mode When One Of Its Interfaces Becomes Unavailable. If The Priority Drops Far Enough, Another Router Will Take Over.

Router1#Configure Terminal
Enter Configuration Commands, One Per Line. End With CNTL/Z.
Router1(Config)#Interface Fastethernet0/1
Router1(Config-If)#Standby 1 IP 172.22.1.1
Router1(Config-If)#Standby 1 Priority 120
Router1(Config-If)#Standby 1 Preempt
Router1(Config-If)#Standby 1 Track Serial0/0 20
Router1(Config-If)#End
Router1#

This Configuration Option Is Particularly Useful When You Have Two Identically Configured WAN Access Routers Using HSRP On Their LAN Ports. In This Case, If You Are Using A Dynamic Routing Protocol, Then Losing The WAN Connection To One Of The Routers Isn't Actually A Disaster.

The Routing Protocol Will Tell The Active Router To Forward All Of Its Outbound Traffic To The Standby Router, Which Will Still Have A Good Connection. However, This Is Obviously Inefficient. It Would Be Better If The Active Router Simply Resigned Its Active Status And Let The Standby Router Take Over.

HSRP Does This By Decreasing The Priority For The Active Router. It Decreases The Priority By 10 Points By Default, But You Can Configure This Amount. In The Example, The Router Drops Its HSRP Priority By 20 Points When The Interface Serial0/0 Becomes Unavailable.

Router1(Config-If)#Standby 1 Track Serial0/0 20

In All Of Our Examples So Far, We Have Configured The Priorities Of The Two HSRP Routers To Have A Difference Of 10 Priority Points. If We Used The Default Priority Drop In This Standby Track Command, A Failure Of The Tracked Interface Would Give The Two Routers Equal Priority. The Router With The Higher IP Address Will Then Become The Active Router When This Interface Fails, But This Might Not Be The Right Choice. We Have Specified A Value Of 20 Priority Points In This Command To Ensure That The Other Router Will Take Over Appropriately.

You Can Use The Standby Track Command To Track Any Router Interface, Or Even Multiple Interfaces. TO TRACK SEVERAL INTERFACES, YOU JUST SPECIFY ALL OF THE INTERFACES IN SEPARATE STANDBY TRACK COMMANDS:

Router1#Configure Terminal
Enter Configuration Commands, One Per Line. End With CNTL/Z.
Router1(Config)#Interface Fastethernet0/1
Router1(Config-If)#Standby 1 IP 172.22.1.1
Router1(Config-If)#Standby 1 Priority 120
Router1(Config-If)#Standby 1 Preempt
Router1(Config-If)#Standby 1 Track Serial0/0 20
Router1(Config-If)#Standby 1 Track Serial0/1 20
Router1(Config-If)#End
Router1#

Router1#Show Standby


HSRP CONFIGURATION USING “LOAD BALANCING” EXAMPLES


◙ - ➤  LOAD BALANCING WITH HSRP:

Load Balance Traffic Between Two (Or More) HSRP Routers. You Can Configure HSRP So That Both Routers Are Always In Use If They Are Available. This Allows You To Use Your Network Resources More Efficiently, But It Is Slightly More Complicated To Configure.

CONFIGURE THE FIRST ROUTER AS FOLLOWS, WITH TWO HSRP GROUPS:

Router1#Configure Terminal
Enter Configuration Commands, One Per Line. End With CNTL/Z.
Router1(Config)#Interface Fastethernet0/1
Router1(Config-If)#IP Address 172.22.1.3 255.255.255.0
Router1(Config-If)#Standby 1 IP 172.22.1.1
Router1(Config-If)#Standby 1 Priority 120
Router1(Config-If)#Standby 1 Preempt
Router1(Config-If)#Standby 2 IP 172.22.1.2
Router1(Config-If)#Standby 2 Priority 110
Router1(Config-If)#Standby 2 Preempt
Router1(Config-If)#End
Router1#

CREATE THE SAME TWO HSRP GROUPS ON THE SECOND ROUTER, BUT CHANGE THE PRIORITY LEVELS FROM THOSE OF THE FIRST ROUTER SO THAT ROUTER1 IS ACTIVE FOR GROUP 1 AND ROUTER2 IS ACTIVE FOR GROUP 2:

Router2#Configure Terminal
Enter Configuration Commands, One Per Line. End With CNTL/Z.
Router2(Config)#Interface Fastethernet1/0
Router2(Config-If)#IP Address 172.22.1.4 255.255.255.0
Router2(Config-If)#Standby 1 IP 172.22.1.1
Router2(Config-If)#Standby 1 Priority 110
Router2(Config-If)#Standby 1 Preempt
Router2(Config-If)#Standby 2 IP 172.22.1.2
Router2(Config-If)#Standby 2 Priority 120
Router2(Config-If)#Standby 2 Preempt
Router2(Config-If)#End
Router2#

This Ensures That Both Routers Back Up One Another Simultaneously. You Must Then Configure Half Of Your End Devices On This Segment To Use The Address 172.22.1.1 For Their Default Gateway, While The Other Half Would Use 172.22.1.2.

Router1#Show Standby


HSRP CONFIGURATION USING “REDIRECTING” ICMP EXAMPLES


◙ - ➤  REDIRECTING ICMP WITH HSRP:

In Older IOS Releases, When You Enable HSRP On An Interface, The Router Will Automatically Disable ICMP Redirection. However, Starting With IOS Version 12.1(3)T, Cisco Has Changed How ICMP Redirection Works With HSRP, And It Is Now Enabled By Default.

YOU CAN EXPLICITLY ENABLE ICMP REDIRECTS ON HSRP-ENABLED INTERFACES WITH THE FOLLOWING COMMANDS: Router2#Configure Terminal
Enter Configuration Commands, One Per Line. End With CNTL/Z.
Router2(Config)#Interface Fastethernet 1/0
Router2(Config-If)#Standby Redirects Enable
Router2(Config-If)#End
Router2#

THE FOLLOWING COMMANDS PREVENT THE ROUTER FROM THE SENDING ICMP REDIRECTS ON HSRP-ENABLED INTERFACES:

Router2#Configure Terminal
Enter Configuration Commands, One Per Line. End With CNTL/Z.
Router2(Config)#Interface Fastethernet 1/0
Router2(Config-If)#No IP Redirects
Router2(Config-If)#Standby Redirects Disable
Router2(Config-If)#End
Router2#

THE “UNKNOWN” KEYWORD ALLOWS YOU TO USE ICMP REDIRECTION TO NON-HSRP ROUTERS:

Router2#Configure Terminal
Enter Configuration Commands, One Per Line. End With CNTL/Z.
Router2(Config)#Interface Fastethernet 1/0
Router2(Config-If)#Standby Redirects Unknown
Router2(Config-If)#End
Router2#

When A Router Receives A Packet From A LAN Interface, But The Route To The Destination Points To Another Router On The Same LAN Segment, The Router Will Send An ICMP Redirect Message. This Is A Single Packet That Includes Information About The Better Route For This Destination.

The Router Will Also Forward The Original Packet Over To The Other Router. When The End Device Receives The ICMP Redirect Packet, It Updates Its Own Internal Routing Table So That All Future Packets For This Destination Use The Better Router.

But ICMP Redirection Is Not Usually A Good Idea With HSRP Because It Will Cause The End Device To Update Its Internal Routing Table To Use The Real IP Address And MAC Address Of One Of The Routers When It Tries To Communicate With A Particular Remote Segment.


HSRP VERSION 2 CONFIGURING EXAMPLES


◙ - ➤  HSRP CONFIGURATION USING “VERSION 2” COMMAND:

Example Shows How To Configure HSRP Version 2 On An Interface With A Group Number Of 350:

Router(Config)# Interface VLAN 350
Router(Config-If)# Standby Version 2
Router(Config-If)# Standby 350 Priority 110
Router(Config-If)# Standby 350 Preempt
Router(Config-If)# Standby 350 Timers 5 15
Router(Config-If)# Standby 350 IP 172.20.100.10

You Must Also Configure Every Router That Participates In The Same HSRP Group With The Same Version Number.

HSRP VERSION 2 CONFIGURATION ON ROUTER 1:

Router1#Configure Terminal
Enter Configuration Commands, One Per Line. End With CNTL/Z.
Router1(Config)#Interface Fastethernet0/1
Router1(Config-If)#Standby Version 2
Router1(Config-If)#Standby 4095 Ip 10.1.1.1
Router1(Config-If)#Standby 4095 Timers Msec 15 Msec 50
Router1(Config-If)#Standby 4095 Priority 200
Router1(Config-If)#Standby 4095 Preempt
Router1(Config-If)#End
Router1#

HSRP VERSION 2 CONFIGURATION ON ROUTER 2:

Router2#Configure Terminal
Enter Configuration Commands, One Per Line. End With CNTL/Z.
Router2(Config)#Interface Fastethernet0/0
Router2(Config-If)#Standby Version 2
Router2(Config-If)#Standby 4095 Ip 10.1.1.1
Router2(Config-If)#Standby 4095 Timers Msec 15 Msec 50
Router2(Config-If)#Standby 4095 Priority 150
Router2(Config-If)#Standby 4095 Preempt
Router2(Config-If)#End
Router2#

TO VIEW THE CURRENT HSRP CONFIGURATION, USE THE “SHOW STANDBY” COMMAND:

Router1#Show Standby

NOTE: Since Version 1 Only Supports Up To Group Number 255, The Router Will Not Permit You To Change The Version Number If The Group Number Exceeds 255.


HSRP CONFIGURATION USING “AUTHENTICATION” EXAMPLES


◙ - ➤  CONFIGURING HSRP MD5 AUTHENTICATION USING “KEY STRINGS”:

Router(Config)# Interface Gigabitethernet 0/0/0
Router(Config-If)# Standby 1 Priority 110
Router(Config-If)# Standby 1 Preempt
Router(Config-If)# Standby 1 Authentication Md5 Key-String 54321098452103ab Timeout 30
Router(Config-If)# Standby 1 IP 10.21.0.10

◙ - ➤  CONFIGURING HSRP MD5 AUTHENTICATION USING “KEY CHAINS”:

In The Following Example, HSRP Queries The Key Chain “Prem1” To Obtain The Current Live Key And Key ID For The Specified Key Chain:

Router(Config)# Key Chain Prem1
Router(Config-Keychain)# Key 1
Router(Config-Keychain-Key)# Key-String 54321098452103ab
Router(Config-Keychain-Key)# Exit

Router(Config)# Interface Gigabitethernet 0/0/0
Router(Config-If)# Standby 1 Priority 110
Router(Config-If)# Standby 1 Preempt
Router(Config-If)# Standby 1 Authentication Md5 Key-Chain Prem1
Router(Config-If)# Standby 1 IP 10.21.0.10

◙ - ➤  CONFIGURING HSRP MD5 AUTHENTICATION USING “KEY STRINGS AND KEY CHAINS”:

The Key ID For Key-String Authentication Is Always Zero. If A Key Chain Is Configured With A Key ID Of Zero,Then The Following Configuration Will Work:

ROUTER 1:

Router(Config)# Key Chain Prem1
Router(Config-Keychain)# Key 0
Router(Config-Keychain-Key)# Key-String 54321098452103ab
Router(Config-Keychain-Key)# Exit

Router(Config)# Interface Gigabitethernet 0/0/0
Router(Config-If)# Standby 1 Authentication Md5 Key-Chain Prem1
Router(Config-If)# Standby 1 IP 10.21.0.10

ROUTER 2:

Router(Config)# Interface Gigabitethernet 0/0/0
Router(Config-If)# Standby 1 Authentication Md5 Key-String 54321098452103ab
Router(Config-If)# Standby 1 IP 10.21.0.10

◙ - ➤  CONFIGURING HSRP USING “TEXT AUTHENTICATION”:

Router(Config)# Interface Gigabitethernet 0/0/0
Router(Config-If)# Standby 1 Priority 110
Router(Config-If)# Standby 1 Preempt
Router(Config-If)# Standby 1 Authentication Text Company2
Router(Config-If)# Standby 1 IP 10.21.0.10


MHSRP CONFIGURING EXAMPLES


◙ - ➤  MHSRP CONFIGURING:

Router A Is Configured As The Active Router For Group 1, And Router B Is Configured As The Active Router For Group 2.

The HSRP Interface For Router A Has An IP Address Of 10.0.0.1 With A Group 1 Standby Priority Of 110 (The Default Is 100). The HSRP Interface For Router B Has An IP Address Of 10.0.0.2 With A Group 2 Standby Priority Of 110. Group 1 Uses A Virtual IP Address Of 10.0.0.3 And Group 2 Uses A Virtual IP Address Of 10.0.0.4

ROUTER A CONFIGURATION:

Switch# Configure Terminal
Switch(Config)# Interface Gigabitethernet0/1
Switch(Config-If)# No Switchport
Switch(Config-If)# IP Address 10.0.0.1 255.255.255.0
Switch(Config-If)# Standby 1 IP 10.0.0.3
Switch(Config-If)# Standby 1 Priority 110
Switch(Config-If)# Standby 1 Preempt
Switch(Config-If)# Standby 2 IP 10.0.0.4
Switch(Config-If)# Standby 2 Preempt
Switch(Config-If)# End

ROUTER B CONFIGURATION:

Switch# Configure Terminal
Switch(Config)# Interface Gigabitethernet0/1
Switch(Config-If)# No Switchport
Switch(Config-If)# IP Address 10.0.0.2 255.255.255.0
Switch(Config-If)# Standby 1 IP 10.0.0.3
Switch(Config-If)# Standby 1 Preempt
Switch(Config-If)# Standby 2 IP 10.0.0.4
Switch(Config-If)# Standby 2 Priority 110
Switch(Config-If)# Standby 2 Preempt
Switch(Config-If)# End


HSRP GROUP SHUTDOWN


◙ - ➤  CONFIGURING HSRP GROUP SHUTDOWN:

If The IP State On Gigabit Ethernet Interface 0/0/0 Goes Down, The HSRP Group Is Disabled. If Both Gigabit Ethernet Interfaces Are Operational, Router A Will Be The HSRP Active Router Because It Has The Higher Priority. However, If IP Routing On Gigabit Ethernet Interface 0/0/0 In Router A Fails, The HSRP Group Will Be Disabled And Router B Will Take Over As The Active Router, Thus Maintaining A Default Virtual Gateway Service To Hosts On The 10.1.0.0 Subnet.

ROUTER A CONFIGURATION:

Router(Config)# Track 100 Interface Gigabitethernet 0/0/0 IP Routing
Router(Config)# Interface Gigabitethernet 0/0/1
Router(Config-If)# IP Address 10.1.0.21 255.255.0.0
Router(Config-If)# Standby 1 IP 10.1.0.1
Router(Config-If)# Standby 1 Preempt
Router(Config-If)# Standby 1 Priority 110
Router(Config-If)# Standby 1 Track 100 Shutdown

ROUTER B CONFIGURATION:

Router(Config)# Track 100 Interface Gigabitethernet 0/0/0 Ip Routing
Router(Config)# Interface Gigabitethernet 0/0/1
Router(Config-If)# IP Address 10.1.0.22 255.255.0.0
Router(Config-If)# Standby 1 IP 10.1.0.1
Router(Config-If)# Standby 1 Preempt
Router(Config-If)# Standby 1 Priority 105
Router(Config-If)# Standby 1 Track 100 Shutdown

If An Object Is Already Being Tracked By An HSRP Group, You Cannot Change The Configuration To Use The HSRP Group Shutdown Feature. You Must First Remove The Tracking Configuration Using The No Standby Track Command And Then Reconfigure It Using The Standby Track Command With The Shutdown Keyword.

Router(Config)# No Standby 1 Track 100 Decrement 10
Router(Config)# Standby 1 Track 100 Shutdown



SHARED MAC ADDRESS CONFIGURATION EXAMPLES


◙ - ➤  YOU CAN ALSO CONFIGURE A PARTICULAR SHARED MAC ADDRESS IF YOU DON'T WANT TO USE THE DEFAULT OR THE BIA:

Router1(Config-If)#Standby 1 Mac-Address 0000.0c07.Ad01

When You Use This Option, You Should Configure The Same MAC Address On Both Routers. By Default, When You Configure A Particular Standby Group, The Router Will Always Select The Same MAC Address. This Is Useful Because It Means That Two Routers Will Always Agree On The MAC Address That They Will Be Sharing.

But It Can Also Cause Confusion For A LAN Switch That Sees The Same MAC Address On Two Different VLANs. This Could Happen, For Example, If You Have Two Routers Using HSRP Group Number 1 On One VLAN And Two Different Routers Using The Same Group Number On A Different VLAN. If You Encounter Problems, You Can Use The Standby Mac-Address Command To Ensure That The HSRP MAC Addresses Are Globally Unique.

NOTE: You Cannot Use The Standby Use-Bia Command And The Standby Mac-Address Command In The Same Configuration.

Router(Config)# Interface Token 3/0
Router(Config-If)# Standby Use-Bia



HSRP TIMERS CONFIGURATION EXAMPLES


◙ - ➤  HSRP TIMERS:

There Are Two Routers Called Router1 And Router2, Which Have The IP Addresses 172.22.1.3 And 172.22.1.2, Respectively. When Both Routers Are Available, We Want Router1 To Handle All Of The Traffic Using The Virtual IP Address 172.22.1.1

YOU CAN CONFIGURE HSRP-ENABLED ROUTERS TO RECOVER MORE QUICKLY AFTER THE PRIMARY HRSP ROUTER BECOMES UNAVAILABLE WITH THE “STANDBY TIMERS” CONFIGURATION COMMAND:

ON ROUTER 1:

Router1#Configure Terminal
Enter Configuration Commands, One Per Line. End With CNTL/Z.
Router1(Config)#Interface Fastethernet0/1
Router1(Config-If)#Standby 1 IP 172.22.1.1
Router1(Config-If)#Standby 1 Priority 120
Router1(Config-If)#Standby 1 Preempt
Router1(Config-If)#Standby 1 Timers 1 3
Router1(Config-If)#End
Router1#

If You Change The Hsrp Timers On One Router, You Must Change The Timers On All Of The Other Routers In The Same Group:

ON ROUTER 2:

Router2#Configure Terminal
Enter Configuration Commands, One Per Line. End With CNTL/Z.
Router2(Config)#Interface Fastethernet1/0
Router2(Config-If)#Standby 1 Ip 172.22.1.1
Router2(Config-If)#Standby 1 Priority 110
Router2(Config-If)#Standby 1 Preempt
Router2(Config-If)#Standby 1 Timers 1 3
Router2(Config-If)#End
Router2#

By Default, A Router Will Send HSRP Hello Packets Every 3 Seconds, And A Standby Router Will Declare Itself Active If It Doesn't Hear Any Hello Packets From The Active Router For 10 Seconds.

THE COMMAND IN THE EXAMPLE CHANGES THE TIMERS FROM THESE DEFAULT VALUES TO A 1-SECOND HELLO PERIOD AND 3-SECOND FAILOVER:

Router1(Config-If)#Standby 1 Timers 1 3

With This Command, The Standby Router Can Reduce The Amount Of Outage Time By 7 Seconds. This Might Be Useful In Some Highly Mission-Critical Networks. The “Show Standby” Command Output Includes The Timer Settings So You Can See What Values The Router Is Using:

Router1#Show Standby

IF YOU NEED THE TIMERS TO BE EVEN FASTER, YOU CAN CONFIGURE MILLISECOND INTERVALS:

Router1(Config-If)#Standby 1 Timers Msec 100 Msec 300

With The Msec Keyword, Cisco Routers Will Accept A Range Of 50 To 999 Milliseconds For The Hello Interval And 200 To 3000 Milliseconds For The Hold Timer. Without This Keyword, The Hello Interval Must Be Between 1 And 254 Seconds, And The Hold Timer Must Be Between 2 And 255 Seconds.


HSRP FOR IPV6 CONFIGURATION EXAMPLES


HSRP FOR IPv6 OPERATION: The HSRP Global IPv6 Address Feature Allows Users To Configure Multiple Nonlink Local Addresses As Virtual Addresses, And It Allows For The Storage And Management Of Multiple Global IPv6 Virtual Addresses In Addition To The Existing Primary Link-Local Address. If An Ipv6 Address Is Used, It Must Include An IPv6 Prefix Length. If A Link-Local Address Is Used, It Must Not Have A Prefix.

TO ENABLE HSRP FOR IPv6 OPERATION: When You Enter The Standby IPv6 Command, A Link-Local Address Is Generated From The Link-Local Prefix, And A Modified EUI-64 Format Interface Identifier Is Generated In Which The EUI-64 Interface Identifier Is Created From The Relevant HSRP Virtual MAC Address. A Link-Local Address Is An IPv6 Unicast Address That Can Be Automatically Configured On Any Interface Using The Link-Local Prefix FE80::/10 (1111 1110 10) And The Interface Identifier In The Modified EUI-64Format.

Link-Local Addresses Are Used In The Stateless Autoconfiguration Process. Nodes On A Local Link Can Use Link-Local Addresses To Communicate; The Nodes Do Not Need Site-Local Or Globally Unique Addresses To Communicate. In IPv6, A Router On The Link Advertises In RA Messages Any Site-Local And Global Prefixes, And Its Willingness To Function As A Default Router For The Link. RA Messages Are Sent Periodically And In Response To Router Solicitation Messages, Which Are Sent By Hosts At System Startup.

A Node On The Link Can Automatically Configure Site-Local And Global IPv6 Addresses By Appending Its Interface Identifier (64 Bits) To The Prefixes (64 Bits) Included In The RA Messages. The Resulting 128-Bit IPv6 Addresses Configured By The Node Are Then Subjected To Duplicate Address Detection To Ensure Their Uniqueness On The Link. If The Prefixes Advertised In The RA Messages Are Globally Unique, Then The IPv6 Addresses Configured By The Node Are Also Guaranteed To Be Globally Unique.

Router Solicitation Messages, Which Have A Value Of 133 In The Type Field Of The ICMP Packet Header, Are Sent By Hosts At System Startup So That The Host Can Immediately Autoconfigure Without Needing To Wait For The Next Scheduled RA Message.

NOTE: HSRP Version 2 Must Be Enabled On An Interface Before HSRP IPv6 Can Be Configured.

TO ENABLE HSRP VERSION 2 SUMMARY STEPS:

1. Enable
2. Configure Terminal
3. Interface Type Number
4. Standby Version {1 | 2}


THE FOLLOWING TASK DESCRIBES HOW TO ENABLE AN HSRP GROUP FOR IPV6:

STEP 1: Router> Enable - > Enables Privileged EXEC Mode (Enable ).
STEP 2: Router# Configure Terminal - > Enters Global Configuration Mode (Configure Terminal).
STEP 3: Router(Config)# Interface Ethernet 0/0 - > Specifies An Interface Type And Number, And Places The Router In Interface Configuration Mode (Interface Type Number).
STEP 4: Router (Config-If)# Standby Version 2 - > Changes The Version Of The HSRP. Version 1 Is The Default (Standby Version {1 | 2}).

SUMMARY STEPS AN HSRP GROUP FOR IPV6:

1. Enable
2. Configure Terminal
3. Interface Type Number
4. Standby [Group-Number] Ipv6 {Link-Local-Address | Autoconfig}
5. Standby [Group-Number] Preempt [Delay {Minimum Seconds | Reload Seconds | Sync Seconds}]
6. Standby [Group-Number] Priority Priority
7. End

DISPLAYS HSRP INFORMATION:

8. Show Standby [Type Number [Group]] [All | Brief]
9. Show Ipv6 Interface [Brief] [Interface-Type Interface-Number] [Prefix]

CONFIGURATION HSRP IPv6 STEPS:

Router> Enable -> Enables Privileged EXEC Mode. Router# Configure Terminal - > Enters Global Configuration Mode. Router(Config)# Interface Ethernet 0/0 - > Specifies An Interface Type And Number, And Places The Router In Interface Configuration Mode.
Router(Config-If)# Standby 1 Ipv6 Autoconfig - > Activates The HSRP In Ipv6 (Standby [Group-Number] Ipv6 {Link-Local-Address Autoconfig}).
Router(Config-If)# Standby 1 Preempt - > Configures HSRP Preemption And Preemption Delay (Standby [Group-Number] Preempt [Delay {Minimum Seconds | Reload Seconds | Sync Seconds}]).
Router(Config-If)# Standby 1 Priority 110 - > Configures HSRP Priority(Standby [Group-Number] Priority Priority).
Router(Config-If)# Exit - > Returns The Router To Privileged EXEC Mode.

DISPLAYS HSRP INFORMATION:

Router# Show Standby - > Show Standby [Type Number [Group]] [All | Brief]
Router# Show Ipv6 Interface Ethernet 0/0 - > Displays The Usability Status Of Interfaces Configured For Ipv6 (Show Ipv6 Interface [Brief] [Interface-Type Interface-Number] [Prefix]).


HSRP IPV6 CONFIGURATION EXAMPLE


◙ - ➤  HSRP EXAMPLE FOR IPV6:

The Following Example Shows Configuration For An HSRP Group For IPv6 That Consists Of Router1 And Router2. The “Show Standby” Command Is Issued For Each Router To Verify The Router’s Configuration:

ROUTER 1 CONFIGURATION:

Interface Fastethernet0/0.100
Description DATA VLAN For Pcs
Encapsulation Dot1q 100
Ipv6 Address 2001:DB8:CAFE:2100::BAD1:1010/64
Standby Version 2
Standby 101 Priority 120
Standby 101 Preempt Delay Minimum 30
Standby 101 Authentication Prem
Standby 101 Track Serial0/1/0.17 90
Standby 201 Ipv6 Autoconfig
Standby 201 Priority 120
Standby 201 Preempt Delay Minimum 30
Standby 201 Authentication Prem Standby 201 Track Serial0/1/0.17 90

Router1# Show Standby

ROUTER 2 CONFIGURATION:

Interface Fastethernet0/0.100
Description DATA VLAN For Computers
Encapsulation Dot1q 100
Ipv6 Address 2001:DB8:CAFE:2100::BAD1:1020/64
Standby Version 2
Standby 101 Preempt
Standby 101 Authentication Prem
Standby 201 Ipv6 Autoconfig
Standby 201 Preempt
Standby 201 Authentication Prem

Router2# Show Standby

◙ - ➤  For More About - > CISCO – HSRP FOR IPv6:


HSRP VLAN CONFIGURATION EXAMPLES


◙ - ➤  VLAN CONFIGURE HSRP INTERFACES AND ENABLE ROUTING:

HSRP Provides Redundancy In The Network. The VLANs Can Be Load-Balanced By Using The Standby Group Priority Priority Command. The IP Routing Command Is Used On SCN1 And SCN2 To Activate Routing Capabilities On These Layer 3 Switches.

Each Route Processor Can Route Between The Various Svis Configured On Its Switch. In Addition To The Real IP Address Assigned To Each Distribution Switch SVI, Assign A Third IP Address In Each Subnet To Be Used As A Virtual Gateway Address. HSRP Negotiates And Determines Which Switch Accepts Information Forwarded To The Virtual Gateway IP Address.

The Standby Command Configures The IP Address Of The Virtual Gateway, Sets The Priority For Each VLAN, And Configures The Router For Preempt. Preemption Allows The Router With The Higher Priority To Become The Active Router After A Network Failure Has Been Resolved.

In The Following Configurations, The Priority For VLANs 1, 10, And 20 Is 150 On SCN1, Making It The Active Router For Those VLANs. VLANs 30 And 40 Have A Priority Of 100 On SCN1, Making SCN1 The Standby Router For These VLANs.

SCN2 Is Configured To Be The Active Router For VLANs 30 And 40 With A Priority Of 150, And The Standby Router For VLANs 1, 10, And 20 With A Priority Of 100.


◙ - ➤  CONFIGURE THE BASIC SWITCH PARAMETERS AND TRUNKING:

Set Up The IP Addressing For VLAN 1 On SCN1 And SCN2. Because 172.16.1.1 Will Be The Virtual Default Gateway For VLAN 1, Use .3 And .4 For The IP Addresses On SCN1 And SCN2, Respectively.

Switch(Config)# Hostname SCN1
SCN1(Config)# Enable Secret Class
SCN1(Config)# Line Vty 0 15
SCN1(Config-Line)# Password Cisco
SCN1(Config-Line)# Login
SCN1(Config-Line)# Exit

SCN1(Config)# Interface Vlan 1
SCN1(Config-If)# IP Address 172.16.1.3 255.255.255.0
SCN1(Config-If)# No Shutdown
SCN1(Config-If)# Exit

SCN1(Config)# Interface Range Fastethernet 0/7 - 12
SCN1(Config-If-Range)# Switchport Trunk Encapsulation Dot1q
SCN1(Config-If-Range)# Switchport Mode Trunk

Switch(Config)# Hostname SCN2
SCN2(Config)# Enable Secret Class
SCN2(Config)# Line Vty 0 15
SCN2(Config-Line)# Password Cisco
SCN2(Config-Line)# Login
SCN2(Config-Line)# Exit

SCN2(Config)# Interface Vlan 1
SCN2(Config-If)# IP Address 172.16.1.4 255.255.255.0
SCN2(Config-If)# No Shutdown
SCN2(Config-If)# Exit

SCN2(Config)# Interface Range Fastethernet 0/7 - 12
SCN2(Config-If-Range)# Switchport Trunk Encapsulation Dot1q
SCN2(Config-If-Range)# Switchport Mode Trunk

SCN1(Config)# Ip Routing
SCN1(Config)# Interface Vlan 1
SCN1(Config-If)# Standby 1 IP 172.16.1.1
SCN1(Config-If)# Standby 1 Preempt
SCN1(Config-If)# Standby 1 Priority 150
SCN1(Config-If)# Exit

SCN1(Config)# Interface Vlan 10
SCN1(Config-If)# IP Address 172.16.10.3 255.255.255.0
SCN1(Config-If)# Standby 1 IP 172.16.10.1
SCN1(Config-If)# Standby 1 Preempt
SCN1(Config-If)# Standby 1 Priority 150
SCN1(Config-If)# Exit

SCN1(Config)# Interface Vlan 20
SCN1(Config-If)# IP Address 172.16.20.3 255.255.255.0
SCN1(Config-If)# Standby 1 IP 172.16.20.1
SCN1(Config-If)# Standby 1 Preempt
SCN1(Config-If)# Standby 1 Priority 150
SCN1(Config-If)# Exit

SCN1(Config)# Interface Vlan 30
SCN1(Config-If)# IP Address 172.16.30.3 255.255.255.0
SCN1(Config-If)# Standby 1 IP 172.16.30.1
SCN1(Config-If)# Standby 1 Priority 100
SCN1(Config-If)# Exit

SCN1(Config)# Interface Vlan 40
SCN1(Config-If)# IP Address 172.16.40.3 255.255.255.0
SCN1(Config-If)# Standby 1 IP 172.16.40.1
SCN1(Config-If)# Standby 1 Preempt
SCN1(Config-If)# Standby 1 Priority 100
SCN2(Config)# IP Routing

SCN2(Config)# Interface Vlan 1
SCN2(Config-If)# Standby 1 IP 172.16.1.1
SCN2(Config-If)# Standby 1 Preempt
SCN2(Config-If)# Standby 1 Priority 100
SCN2(Config-If)# Exit

SCN2(Config)# Interface Vlan 10
SCN2(Config-If)# IP Address 172.16.10.4 255.255.255.0
SCN2(Config-If)# Standby 1 IP 172.16.10.1
SCN2(Config-If)# Standby 1 Preempt
SCN2(Config-If)# Standby 1 Priority 100
SCN2(Config-If)# Exit

SCN2(Config)# Interface Vlan 20
SCN2(Config-If)# IP Address 172.16.20.4 255.255.255.0
SCN2(Config-If)# Standby 1 IP 172.16.20.1
SCN2(Config-If)# Standby 1 Preempt
SCN2(Config-If)# Standby 1 Priority 100
SCN2(Config-If)# Exit

SCN2(Config)# Interface Vlan 30
SCN2(Config-If)# IP Address 172.16.30.4 255.255.255.0
SCN2(Config-If)# Standby 1 IP 172.16.30.1
SCN2(Config-If)# Standby 1 Preempt
SCN2(Config-If)# Standby 1 Priority 150
SCN2(Config-If)# Exit

SCN2(Config)# Interface Vlan 40
SCN2(Config-If)# IP Address 172.16.40.4 255.255.255.0
SCN2(Config-If)# Standby 1 IP 172.16.40.1
SCN2(Config-If)# Standby 1 Preempt
SCN2(Config-If)# Standby 1 Priority 150

◙ - ➤  VERIFY THE HSRP CONFIGURATION:

Issue The Show Standby Command On Both SCN1 And SCN2
Issue The Show Standby Brief Command On Both SCN1 And SCN2.

SCN1# Show Standby Brief
SCN2# Show Standby Brief




CONCLUSION:

The Goal Of This Article Is To Give An Easy Way To Understand The “HOT STANDBY ROUTER PROTOCOL (HSRP) CONFIGURATION EXAMPLES" And Also We Hope This Guide Will Help Every Beginner Who Are Going To Start Cisco Lab Practice Without Any Doubts. Some Topics That You Might Want To Pursue On Your Own That We Did Not Cover In This Article Are Listed Here!

Hands - On Experience Is An Invaluable Part Of Preparing For The Lab Exam And Never Pass Up An Opportunity To Configure Or Troubleshoot A Router ( If You Have Access To Lab Facilities, Take Full Advantage Of Them) There Is No Replacement For The Experience You Can Gain From Working In A Lab, Where You Can Configure Whatever You Want To Configure And Introduce Whatever Problems You Want To Introduce, Without Risk Of Disrupting A Production Network. Thank You And Best Of Luck

This Article Written Author By: Mr. Premakumar Thevathasan - CCNA And CCNP (Routing & Switching), MCSE, MCSA, MCSA - MSG, CIW Security Analyst, CompTIA Certified A+ And Etc.

WARNING AND DISCLAIMER:

Routers Direct And Control Much Of The Data Flowing Across Computer Networks. This Guide Provides Technical Guidance Intended To Help All Network Students, Network Administrators And Security Officers Improve Of Their Demonstrated Ability To Achieve Specific objectives Within Set Timeframes.

This Document Carries No Explicit Or Implied Warranty. Nor Is There Any Guarantee That The Information Contained In This Document Is Accurate. Every Effort Has Been Made To Make All Articles As Complete And As Accurate As Possible, But No Warranty Or Fitness Is Implied.

It Is Offered In The Hopes Of Helping Others, But You Use It At Your Own Risk. The Author Will Not Be Liable For Any Special, Incidental, Consequential Or Indirect Any Damages Due To Loss Of Data Or Any Other Reason That Occur As A Result Of Using This Document. But No Warranty Or Fitness Is Implied. The Information Provided Is On An "As Is" Basic. All Use Is Completely At Your Own Risk.

Home Page Of - > The School Of Cisco Networking (SCN)

Page Of - > SCN InF4 TECH

Contact Details / About Us Page

To Send Email


Window Minimize / Window Maximize

No comments: