Cisco hsrp Configuration

Source: Internet
Author: User

Configure HSRPHSRP

The configuration steps are as follows:
1. Select a virtual address as the HSRP address. This address must be located in the address space obtained from the LAN where HSRP is to be run. This address is usually called a backup address. Each vro in the backup group must use the following command to define the same virtual IP address.
Standby group_number ip a. B. c. d
The backup group number is a unique number. One to 255 backup groups can be identified on Ethernet or FDDI. If no group number is specified, the default group number is 0th.
If HSRP is configured on VLAN relay, each VLAN or port ID must be in a different backup group.
2. Determine the primary router and set its priority to at least 101. In addition, use the preempt command to make the router participate in the selection of the primary router. Run the following two commands:
Standby group_number preempt
Standby group_number priority 1-255
------- The preempt parameter makes the router with the highest priority in the group the master router.
------- The priority parameter assigns a priority to the router. The default value is 100. the router with the highest priority is the primary router or the active router.
3. Use the following command to configure the tracking, authentication, and timer of the master router.
------- Standby group_number track interface_name [cost]
------- If an interface stops working when tracking an interface, HSRP will deduct the priority of this interface by 10. Using this command, the HSRP group can switch between the primary router and the backup Router Based on the operation status of the interface. You can use this command to change the default value of 10.
------- Standby group_number authentication character_string
------- This command can create authentication information for HSRP group operations, so that only authorized routers can enter the HSRP group. The character string "character_string" must match all router items in the HSRP group.
-------- Standby group_number timers hello_interval_seconds holddown_timer_seconds
The timers parameter can be used to set the time length of the hello Message and the suppression timer. The suppression timer is the time that the router should wait before it is declared to be active. The default values are 3 seconds and 10 seconds respectively. These timer settings must match all vrouters in the group.
------- Standby group_number mac-address h.h.h
This command specifies a static entry for a MAC address, which helps you manage and filter HSRP addresses from downstream devices.
4. assign a vro with a priority of less than 99 to configure another vro in the backup group as a backup vro.
5. Configure the priority replacement function, tracking, authentication, and timer of the backup router.
Example:
Configuration of the HSRP main router:
Int e0
Standby 1 ip 172.16.1.1
Standby 1 priority 105
Standby 1 preempt
Standby 1 track s0
Standby 1 authentication cisco
HSRP backup router configuration
Int e0

Standby 1 ip 172.16.1.1
Standby 1 priority 101
Standby 1 preempt
Standby 1 track s0
Standby authentication cisco


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.