Your SlideShare is downloading. ×
Hsrp
Hsrp
Hsrp
Hsrp
Hsrp
Hsrp
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

Hsrp

1,401

Published on

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
1,401
On Slideshare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
244
Comments
0
Likes
0
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. Anuj Kumar ciscobulls@gmail.com CCNP SWITCH PORTABLE STUDY GUIDE & PRACTICE WORK BOOKANUJ KUMAR email:- ciscobulls@gmail.com anuj_dev007@yahoo.com networkbulls.com
  • 2. Anuj Kumar ciscobulls@gmail.com REDUNDANCY PROTOCOLSCisco IOS offers feature to provide a redundant default gateway to end devices. The following are the defaultgateway features supported by Cisco IOS and switches.Hot Standby Routing Protocol (HSRP)Virtual Router Redundancy Protocol (VRRP)Gateway Load Balancing Protocol (GLBP) HSRP (Hot Standby Routing Protocol)Feature:-It is Cisco proprietary protocol.It uses UDP Port no 1985It sends hello message on multicast address 224.0.0.2It sends out hello message every 3 sec (hold timer 10 sec)Priority by default 100It supports two types of authentication.It supports tracking.HSRP States: -Active State: - in this active state, the router is send packets that are sent to virtual MAC and IP address of theHSRP group. The active router also sends periodic hello message.Standby: - in this state, the HSRP router is the next active router and it send periodic hello message. There mustbe at least one standby router in the HSRP group.Note: - A router does not hear any higher priority that router assume itself, so promote itself standby router.A router does not hear an active router, so promote itself active router.When the preempt option is not configure, the first router to initialize HSRP becomes the active router. Configuration of HSRP on SwitchSwitch1(config)#interface vlan 10Switch1(config-if)#ip address 192.168.101.2 255.255.255.0Switch1(config-if)#standby 1 ip 192.168.101.1Switch1(config-if)#standby priority 150Switch1(config-if)#standby 1 preemptSwitch2(config)#interface vlan 10Switch2(config-if)#ip address 192.168.101.3 255.255.255.0Switch2(config-if)#standby 1 ip 192.168.101.1Switch2(config-if)#standby priority 200Switch2(config-if)#standby 1 preempt
  • 3. Anuj Kumar ciscobulls@gmail.com Load Balancing of HSRPWhile a router is actively forwarding traffic for one HSRP group, it can be in the standby or listen state for anothergroup.Router A & Router B should be members of group 1 & Group 2.Like as: -  Router A:  Active forwarding router for group 1  Standby router for group 2.  Router B:  Active forwarding router for group 2  Standby router for group 1.Example:Switch1(config)#interface vlan 10Switch1(config-if)#ip address 192.168.101.2 255.255.255.0Switch1(config-if)#standby 1 ip 192.168.101.1Switch1(config-if)#standby priority 150Switch1(config-if)#standby 1 preemptSwitch1(config)#interface vlan 20Switch1(config-if)#ip address 192.168.102.2 255.255.255.0Switch1(config-if)#standby 1 ip 192.168.102.1Switch1(config-if)#standby priority 200Switch1(config-if)#standby 1 preemptSwitch2(config)#interface vlan 10Switch2(config-if)#ip address 192.168.101.3 255.255.255.0Switch2(config-if)#standby 1 ip 192.168.101.1Switch2(config-if)#standby priority 200Switch2(config-if)#standby 1 preemptSwitch2(config)#interface vlan 20Switch2(config-if)#ip address 192.168.102.3 255.255.255.0Switch2(config-if)#standby 1 ip 192.168.102.1Switch2(config-if)#standby priority 150Switch2(config-if)#standby 1 preemptTimers:-  Both the hellotime and the holdtime parameters are configurable. Switch(config-if)#standby group-number timers hellotime holdtime  Hellotime  Default = 3 seconds  Value varies from 1 to 255.  Holdtime  Default = 10 seconds  Value varies from 1 to 255.
  • 4. Anuj Kumar ciscobulls@gmail.com  To reinstate the default standby timer values, enter the following command: Switch(config-if)#no standby group-number timers Configuring HSRP Interface TrackingThe f0/0 interfaces on router A tracks the S0/0 interface. If the link between the S0/0 interface and Core fails, therouter automatically decrements its priority (10) on that interface and stops transmitting hello messages outinterface f0/0. Router B assumes the active router role when no hello messages are detected for the specificholdtime period.Switch1(config)#interface vlan 10Switch1(config-if)#ip address 192.168.101.2 255.255.255.0Switch1(config-if)#standby 1 ip 192.168.101.1Switch1(config-if)#standby priority 150Switch1(config-if)#standby 1 preemptSwitch1(config-if)#standby 1 track serial0/0(self interface name)Switch2(config)#interface vlan 10Switch2(config-if)#ip address 192.168.101.3 255.255.255.0Switch2(config-if)#standby 1 ip 192.168.101.1Switch2(config-if)#standby priority 200Switch2(config-if)#standby 1 preemptSwitch2(config-if)#standby 1 track serial0/0 (self interface name) Practical
  • 5. Anuj Kumar ciscobulls@gmail.comRouter(config)#host CORECORE(config)#int f0/0CORE(config-if)#ip address 192.168.102.1 255.255.255.0CORE(config-if)#no shutdownCORE(config-if)int s0/0CORE(config-if)#ip address 10.1.1.1 255.255.255.0CORE(config-if)#no shutdownCORE(config-if)#int s0/1CORE(config-if)#ip address 11.1.1.1 255.255.255.0CORE(config-if)#no shutdownCORE(config-if)#router ei 100CORE(config-router)#network 192.168.102.0CORE(config-router)#network 10.1.1.0 0.0.0.255CORE(config-router)#network 11.1.1.0 0.0.0.255CORE(config-router)#no auto-summarySW1(config)#ho SW1SW1(config)#int s0/0SW1(config-if)#ip address 10.1.1.2 255.255.255.0SW1(config-if)#no shutdownSW1(config-if)# int f0/0SW1(config-if)# ip address 192.168.101.2 255.255.255.0SW1(config-if)# no shutdownSW1(config-if)# router eigrp 100SW1(config-router)# network 192.168.101.0SW1(config-router)# network 10.1.1.0 0.0.0.255SW1(config-router)# no auto-summarySW1(config-router)# exiSW1(config)# int f0/0SW1(config-if)# standby 1 ip 192.168.101.1*Mar 1 00:23:07.895: %HSRP-5-STATECHANGE: FastEthernet0/0 Grp 1 stateStandby -> ActiveSW1(config-if)#standby 1 priority 150SW1(config-if)#standby 1 preemptSW1(config-if)#standby 1 track serial 0/0SW2(config)#ho SW2SW2(config)#int f0/0SW2(config-if)#ip address 192.168.101.3 255.255.255.0SW2(config-if)#no shutdownSW2(config-if)#int s0/0SW2(config-if)#ip address 11.1.1.2 255.255.255.0SW2(config-if)#no shutdownSW2(config-if)#router ei 100SW2(config-router)#network 192.168.101.0SW2(config-router)#network 11.1.1.0 0.0.0.255SW2(config-router)#no auto-summary
  • 6. Anuj Kumar ciscobulls@gmail.comSW2(config-router)#int f0/0SW2(config-if)#standby 1 ip 192.168.101.1SW2(config-if)#standby 1 priority 200SW2(config-if)#standby 1 preempt*Mar 1 00:34:31.431: %HSRP-5-STATECHANGE: FastEthernet0/0 Grp 1 stateStandby -> ActiveSW2(config-if)#standby 1 track serial 0/0VerifyingSW1#sh standbyFastEthernet0/0 - Group 1 State is Standby 4 state changes, last state change 00:43:18 Virtual IP address is 192.168.101.1 Active virtual MAC address is 0000.0c07.ac01 Local virtual MAC address is 0000.0c07.ac01 (v1 default) Hello time 3 sec, hold time 10 sec Next hello sent in 0.000 secs Preemption enabled Active router is 192.168.101.3, priority 190 (expires in 6.912 sec) Standby router is local Priority 150 (configured 150) Track interface Serial0/0 state Up decrement 10 Group name is "hsrp-Fa0/0-1" (default)SW2#sh standbyFastEthernet0/0 - Group 1 State is Active 2 state changes, last state change 00:44:28 Virtual IP address is 192.168.101.1 Active virtual MAC address is 0000.0c07.ac01 Local virtual MAC address is 0000.0c07.ac01 (v1 default) Hello time 3 sec, hold time 10 sec Next hello sent in 1.296 secs Preemption enabled Active router is local Standby router is 192.168.101.2, priority 150 (expires in 8.436 sec) Priority 190 (configured 200) Track interface Serial0/0 state Down decrement 10 Group name is "hsrp-Fa0/0-1" (default)Thank you for giving me your precious time.Anuj Kumar

×