HSRP learning and Configuration

Source: Internet
Author: User


1. HSRP description:
1. HSRP backup group member 2-1
Active Router
Backup Router
Vro
Other Routers
2. Group members of HSRP 2-2
3. How HSRP works
4. HSRP virtual MAC address 2-1
5. HSRP virtual MAC address 2-2
 
6. HSRP Message 2-1
HSRP message: used to determine and maintain the vro role in the group
Encapsulated in a UDP packet, using the UDP port number 1985
The destination address of the Hello packet is the multicast address 224.0.0.2 (all routers). The ttl value is 1.
Message Type
Hello Message
Coup news
Resignation message
7. HSRP Message 2-2
 
8. HSRP status
Initial status, learning status, listener status, speech status, backup status, and active status
9. HSRP timer www.2cto.com
Hello interval (hello interval)
Interval of sending hello packets
Hold time)
The waiting time of the HSRP router in the HSRP group before declaring that the active router has a fault
10. HSRP Authentication
Implemented by inserting a shared plaintext password into an HSRP message
Prevent the router from being incorrectly configured in other HSRP groups
Only with certain security, plaintext Transmission
11. HSRP configuration process diagram 2. Specific steps of HSRP Configuration:
1. Lab background
With the development of business, BENET has higher and higher requirements for Internet access. Therefore, the company decided to adopt redundant routers and
To ensure uninterrupted access to www.2cto.com.
As a network manager, redundant backup of egress routing devices and egress links must be designed and implemented.
The two routers provide the egress for the two subnets to access the external network (the two subnets are the external networks of the other subnet respectively), and use
HSRP achieves device-level redundancy to Ensure network connectivity
2. HSRP configuration Topology 3. Experiment task
Basic configuration of Task 1 HSRP
After the standard command is completed, you can see that the configuration has taken effect.
Configure HSRP priority in Task 2
Use show standby on the two routers to check whether their priorities have been configured successfully.
Configure HSRP authorization in Task 3
Complete Standard 1. Use show standby on Both routers to see that the authorization has been configured.
Local state is Active, priority 120, may preempt
Configure the HSRP virtual IP address as the gateway for the PC in standard 2 LAN.
Continuous communication
Task 4 Configure port tracking for HSRP
Complete the out-of-office interface line of the standard interrupt active router. Use show standby to see that the original backup router is active.
Vro. The communication between two CIDR blocks is not interrupted.
4. Specific configuration steps:
Www.2cto.com
Step 1: configure the IP address and HSRP of the router interface
RA:
RA (config) # interface f0/0
RA (config) # no switchport
RA (config-if) # ip add 172.15.1.1 255.255.255.0
RA (config-if) # no shut
Add to backup group 10, virtual IP: 172.15.1.3
RA (config) # interface f0/0
RA (config-if) # standby 10 ip 172.15.1.3
RA (config) # interface f0/1
RA (config-if) # ip add 172.16.1.1 255.255.255.0
Disable port redirection:
RA (config) # interface f0/0
RA (config) # no ip redirects
RB:
The configuration process of RB is the same as that of RA.
In this case, because the f0/0 of RA has the same priority as the f0/0 of RA, the f0/0 ip address of RB is greater than the f0/0 ip address of RA,
Therefore, RB is specified as an active vro.
 
Step 2: Configure priority and preemption to change the active vro
RA (config) # interface f0/0
RA (config-if) # standby 10 priority 120
RA (config-if) # exit
At this time, because the priority of RA is changed, RA becomes an active router.
RB (config) # interface f0/0
RB (config-if) # standby 40 priority 150
RB (config-if) # standby 40 preempt
In this case, the f0/0 of RA is down.
RA (config) # interface f0/0
RA (config-if) # shut down
In this case, RB becomes an active vro.
Www.2cto.com
Step 3: Configure port tracking for HSRP
RA (config) # interface f0/0
Configure port tracking for f0/1 in group 10. The priority is 50 if the port fails.
RA (config-if) # standby 10 track 50
RB (config) # interface f0/0
RB (config-if) # standby 10 preempt
In this case, the f0/1 of RA is down.
RA (config) # interface f0/1
RA (config-if) # shut down
In this case, RB becomes an active vro.
 
-- The experiment is complete.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.