Hot Standby Router Protocol (HSRP)-Detail and Configuration

Hot Standby Router Protocol (HSRP)

Hot Standby Router Protocol (HSRP) is cisco routing protocol which allows host on internet to use more than one routers which act as single virtual router, it maintains the connectivity still if first hop count stops working because all other routers are on "hot standby". CISCO Routers working on IP (Internet Protocol) using Ethernet, FDDI (Fiber Distributed Data Interface) and Token Ring LAN's (Local Area Networks), Hot Standby Router Protocol (HSRP) provides automatic backup to the router. Hot Standby Router Protocol (HSRP) is compatible with IPX (Internetwork Packet Exchange), Apple Talk and Bayan VINES, some configuration of HSRP can be configured on XNS (Xerox Network System) and DECnet. HSRP ensure that active router forwards the packets on the behalf of virtual router. Standby router is kept on standby to become active if the active router stops working.

Configuration

HSRP

IP Address Table

Scenario

In this scenario of LAN Spanning tree provides loop-free redundancy between switches. Where as, this does not provide any redundant default gateways for end-user devices within your network in case of  one of your routers fails to perform routing. First Hop Redundancy Protocols (FHRPs) provide redundant default gateways for end devices with no end-user configuration necessary in the network.

Note: The routers used with CCNA hands-on labs are Cisco 1941 Integrated Services Routers (ISRs) with Cisco IOS Release 15.2(4)M3 (universalk9 image). The switches used are Cisco Catalyst 2960s with Cisco IOS Release 15.0(2) (lanbasek9 image). Other routers, switches, and Cisco IOS versions can be used. Depending on the model and Cisco IOS version, the commands available and output produced might vary from what is shown in the labs. Refer to the Router Interface Summary Table at the end of this lab for the correct interface identifiers.

Note: Make sure that the routers and switches have been erased and have no startup configurations.

Router1

Router>enable
Router#configure terminal
Router(Config)#hostname R1
R1(Config)#enable password cisco (Plain Text Password)
R1(config)#enable secret class (Encrypted Password)
R1(Config)#line console 0
R1(Config-line)#password cisco
R1(Config-line)#login
R1(Config-line)#exit
R1(Config)#line vty 0 4
R1(Config-line)#password cisco
R1(Config-line)#login
R1(Config-line)#exit
R1(config)#interface gigabiteathernet 0/1
R1(config-if)#ip address 192.168.1.1 255.255.255.0
R1(config-if)#no shutdown
R1(config-if)# standby 1 ip 192.168.1.254
R1(config-if)# standby 1 priority 150
R1(config-if)# standby 1 preempt
R1(config-if)#exit
R1(config)#interface serial 0/0/0
R1(config-if)#ip address 10.1.1.1 255.255.255.252
R1(config-if)#no shutdown
R1(config-if)#exit
R1(config)#router eigrp 1
R1(config-router)#network 192.168.1.0 0.0.0.255
R1(config-router)#network 10.1.1.0 0.0.0.3
R1(config-router)#exit
R1(config)#exit
R1#copy running-config startup-config

Router2

Router>enable
Router#configure terminal
Router(Config)#hostname R2
R2(Config)#enable password cisco (Plain Text Password)
R2(config)#enable secret class (Encrypted Password)
R2(Config)#line console 0
R2(Config-line)#password cisco
R2(Config-line)#login
R2(Config-line)#exit
R2(Config)#line vty 0 4
R2(Config-line)#password cisco
R2(Config-line)#login
R2(Config-line)#exit
R2(config)#interface serial 0/0/0
R2(config-if)#ip address 10.1.1.2 255.255.255.252
R2(config-if)#no shutdown
R2(config-if)#exit
R2(config)#interface serial 0/0/1
R2(config-if)#ip address 10.2.2.2 255.255.255.252
R2(config-if)#no shutdown
R2(config-if)#exit
R2(config)#interface loopback 0
R2(config-if)#ip address 209.165.200.225 255.255.255.224
R2(config-if)#no shutdown
R2(config-if)#exit
R2(config)#router eigrp 1
R2(config-router)#network 10.1.1.0 0.0.0.3
R2(config-router)#network 10.2.2.0 0.0.0.3
R2(config-router)#network 209.165.200.224 0.0.0.3
R2(config-router)#exit
R2(config)#exit
R2#copy running-config startup-config

Router3

Router>enable
Router#configure terminal
Router(Config)#hostname R3
R3(Config)#enable password cisco (Plain Text Password)
R3(config)#enable secret class (Encrypted Password)
R3(Config)#line console 0
R3(Config-line)#password cisco
R3(Config-line)#login
R3(Config-line)#exit
R3(Config)#line vty 0 4
R3(Config-line)#password cisco
R3(Config-line)#login
R3(Config-line)#exit
R3(config)#interface gigabiteathernet 0/1
R3(config-if)#ip address 192.168.1.3 255.255.255.0
R3(config-if)#no shutdown
R3(config-if)#exit
R3(config)#interface serial 0/0/1
R3(config-if)#ip address 10.2.2.1 255.255.255.252
R3(config-if)#no shutdown
R3(config-if)#exit
R3(config)#router eigrp 1
R3(config-router)#network 192.168.1.0 0.0.0.255
R3(config-router)#network 10.2.2.0 0.0.0.3
R3(config-router)#exit
R3(config)#exit
R3#copy running-config startup-config

No comments:

Post a Comment