CCNP Certification  BCMSN Exam Tutorial:  Getting Started With HSRP
CCNP Certification BCMSN Exam Tutorial: Getting Started With HSRP

Defined In RFC 2281, HSRP Is A Cisco-proprietary Protocol In Which Routers Are Put Into An HSRP Router Group. Along With Dynamic Routing Protocols And STP, HSRP Is Considered A High-availability Network Service, Since All Three Have An Almost Immediate Cutover To A Secondary Path When The Primary Path Is Unavailable.One Of The Routers Will Be Selected As The Primary ("Active", In HSRP Terminology), And That Primary Will Handle The Routing While The Other Routers Are In Standby, Ready To Handle The Load If The Primary Router Becomes Unavailable. In This Fashion, HSRP Ensures A High Network Uptime, Since It Routes IP Traffic Without Relying On A Single Router. The Hosts Using HSRP As A Gateway Don't Know The Actual IP Or MAC Addresses Of The Routers In The Group. They're Communicating With A Pseudorouter, A "virtual Router" Created By The HSRP Configuration. This Virtual Router Will Have A Virtual MAC And IP Adddress As Well.The Standby Routers Aren't Just Going To Be Sitting There, Though! By Configuring Multiple HSRP Groups On A Single Interface, HSRP Load Balancing Can Be Achieved. Before We Get To The More Advanced HSRP Configuration, We Better Get A Basic One Started! We'll Be Using A Two-router Topology Here, And Keep In Mind That One Or Both Of These Routers Could Be Multilayer Switches As Well. For Ease Of Reading, I'm Going To Refer To Them Only As Routers.R2 And R3 Will Both Be Configured To Be In Standby Group 5. The Virtual Router Will Have An IP Address Of 172.12.23.10 24. All Hosts In VLAN 100 Should Use This Address As Their Default Gateway.R2(config)interface Ethernet0R2(config-if)standby 5 Ip 172.12.23.10R3(config)interface Ethernet0R3(config-if)standby 5 Ip 172.12.23.10The Show Command For HSRP Is Show Standby, And It's The First Command You Should Run While Configuring And Troubleshooting HSRP. Let's Run It On Both Routers And Compare Results.R2show StandbyEthernet0 - Group 5Local State Is Standby, Priority 100Hellotime 3 Sec, Holdtime 10 SecNext Hello Sent In 0.776Virtual IP Address Is 172.12.23.10 ConfiguredActive Router Is 172.12.23.3, Priority 100 Expires In 9.568Standby Router Is Local1 State Changes, Last State Change 00:00:22R3show StandbyEthernet0 - Group 5Local State Is Active, Priority 100Hellotime 3 Sec, Holdtime 10 SecNext Hello Sent In 2.592Virtual IP Address Is 172.12.23.10 ConfiguredActive Router Is LocalStandby Router Is 172.12.23.2 Expires In 8.020Virtual Mac Address Is 0000.0c07.ac052 State Changes, Last State Change 00:02:08We Can See That R3 Has Been Selected As The Active Router ("local State Is Active"), The Virtual Router's IP Is 172.12.23.10, And R2 Is The Standby Router.There Are Some HSRP Values That You'll Need To Change From Time To Time. What If We Want R2 To Be The Active Router Instead? Can We Change The MAC Address Of The Virtual Router? I'll Answer Those Questions In The Next Part Of This HSRP Tutorial!