网络冗余技术HSRP07

合集下载
  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

The Virtual Router MAC Address
The Standby Router
The standby router listens for periodic hello messages on 224.0.0.2.
Active and Standby Router Interaction
HSRP: HSRP: HSRP: HSRP: HSRP: HSRP: HSRP: HSRP: HSRP: HSRP: HSRP: HSRP: HSRP: HSRP: HSRP:
Vl1 Vl1 Vl1 Vl1 Vl1 Vl1 Vl1 Vl1 Vl1 Vl1 Vl1 Vl1 Vl1 Vl1 Vl1
Grp Grp API API Grp Grp API API Grp Grp API API Grp Grp API
• Example of HSRP debug showing standby group number mismatch
Group addr 172.16.11.115
多组HSRP
HSRP Optimization Options
• These options can be configured to optimize HSRP:
– HSRP standby priority – HSRP standby preempt 抢占 – Hello message timers – HSRP interface tracking 跟踪
第七部分
路由冗余技术
教学目标
学习完本部分内容后,学员能够:
• 描述HSRP的操作 • 理解HSRP 的作用和基本原理 • 查看交换机HSRP的配置和操作
Routing Issues: Using Default Gateways
Routing Issues: Using Proxy ARP
Router Redundancy
• Configure
– standby 1 ip 10.1.1.1
• Verify
– show running-config – show standby
Configuring an HSRP Standby Interface
Enabling HSRP on a CiHale Waihona Puke Baiduco router interface automatically disables ICMP redirects.
• Assumes the active forwarding of packets for the virtual router • Sends hello messages • Knows the virtual router IP address
HSRP Configuration Commands
Configuring HSRP Standby Preempt
Preempt enables a router to resume the forwarding router role.
Configuring the Hello Message Timers
The holdtime parameter value should be at least three times the value of the hellotime parameter.
Displaying the Standby Brief Status
Switch#show standby brief P indicates configured to preempt. | Interface Grp Prio P State Active addr Standby addr Vl11 11 110 Active local 172.16.11.114
Router Redundancy (Cont.)
HSRP
Standby group: The set of routers participating in HSRP that jointly emulate a virtual router
The Active Router
The active router responds to ARP requests with the MAC address of the virtual router.
About the HSRP Debug Command
– debug standby events – debug standby terse
Debugging HSRP
DSW111#debug standby *Mar 4 19:08:08.918: *Mar 4 19:08:09.287: *Mar 4 19:08:09.287: *Mar 4 19:08:09.891: *Mar 4 19:08:09.891: *Mar 4 19:08:10.294: *Mar 4 19:08:10.294: *Mar 4 19:08:10.294: *Mar 4 19:08:10.294: *Mar 4 19:08:10.294: *Mar 4 19:08:10.294: *Mar 4 19:08:10.898: *Mar 4 19:08:10.898: *Mar 4 19:08:10.965: *Mar 4 19:08:11.300:
• Configures HSRP tracking
Switch(config)#interface vlan 10 Switch(config-if)#standby 1 track GigabitEthernet 0/7 50 Switch(config-if)#standby 1 track GigabitEthernet 0/8 60
Speak
Standby Active Listen
Speak
Router B hears that router A has a higher priority, so router B returns to the listen state.
Speak Standby
HSRP Standby State
Router A Priority 100 Initial Listen Initial Listen Router B Priority 50
Router A does not hear any higher priority than itself, so promotes itself to standby. Router A does not hear an active router, so promotes itself to active.
HSRP States
• An HSRP router can be in one of six different states:
• • • • • • Initial Learn Listen Speak Standby Active
HSRP State Transition
HSRP Standby Group 1
Configuring HSRP Standby Priority
• The router with the highest priority in an HSRP group becomes the active router.
• The default priority is 100.
• In the case of a tie, the router with the highest configured IP address will become active.
HSRP Interface Tracking
HSRP Interface Tracking (Cont.)
Configuring HSRP Tracking
Switch(config-if)#standby [group-number] track type number [interface-priority]
• Example of HSRP tracking
Note: Preempt must be configured on all participating devices within the HSRP group.
Tuning HSRP
– Configure hellotime and holdtime to millisecond values. – Configure preempt delay timer so that preempt occurs only after the distribution switch has fully rebooted and established full connectivity to the rest of the network.
A router in the standby state:
• Is a candidate for active router • Sends hello messages • Knows the virtual router IP address
HSRP Active State
A router in the active state:
1 Hello out 172.16.1.111 Active pri 150 vIP 172.16.1.113 2 Hello in 172.16.1.112 Active pri 50 vIP 172.16.1.113 active virtual address 172.16.1.113 found Duplicate ARP entry detected for 172.16.1.113 1 Hello out 172.16.1.111 Active pri 150 vIP 172.16.1.113 2 Hello in 172.16.1.112 Active pri 50 vIP 172.16.1.113 active virtual address 172.16.1.113 found Duplicate ARP entry detected for 172.16.1.113 1 Hello out 172.16.1.111 Active pri 150 vIP 172.16.1.113 2 Hello in 172.16.1.112 Active pri 50 vIP 172.16.1.113 active virtual address 172.16.1.113 found Duplicate ARP entry detected for 172.16.1.113 1 Hello out 172.16.1.111 Active pri 150 vIP 172.16.1.113 2 Hello in 172.16.1.112 Active pri 50 vIP 172.16.1.113 active virtual address 172.16.1.113 found
Multiple HSRP Groups
To load balance routers, assign them to multiple groups on the same subnet.
Addressing HSRP Groups Across Trunk Links
– To load balance routers and links: • Per VLAN, configure the HSRP active router and the spanning tree root to be the same multilayer
相关文档
最新文档