Config HSRP protocol directory

Configure HSRP Protocol

Enable HSRP Protocol

Configure HSRP Group Property

Configure HSRP Protocol

   HSRP is a standard method of providing high network availability by providing first-hop
redundancy for IP hosts on an IEEE 802 LAN configured with a default gateway IP address. HSRP routes IP traffic without relying on the availability of any single router. It enables a set of router interfaces to work together to present the appearance of a single virtual router or default gateway to the hosts on a LAN. When HSRP is configured on a network or segment, it provides a virtual Media Access Control (MAC) address and an IP address that is shared among a group of configured routers. HSRP allows two or more HSRP-configured routers to use the MAC address and IP network address of a virtual router.The virtual router does not exist; it represents the common target for routers that are configured to provide backup to each other. One of the routers is selected to be the active router and another to be the standby router, which assumes control of the group MAC address and IP address should the designated active router fail.

   HSRP detects when the designated active router fails, and a selected standby router assumes control of the Hot Standby group’s MAC and IP addresses. A new standby router is also selected at that time.Devices running HSRP send and receive multicast UDP-based hello packets to detect router failure and to designate active and standby routers. When HSRP is configured on an interface, Internet Control Message Protocol (ICMP) redirect messages are disabled by default for the interface.

   HSRP can be configured in Ethernet/Fast Ethernet/VLAN network without supporting token ring,token bus, FDDI and ATM LAN network.

 

Enable HSRP Protocol

  To enable hsrp protocol in interface ,you should configure the below command in interface configure model :

command

function

standby [group-number] ip [ip-address [secondary]]

enable hsrp protocol 

 

Configure HSRP Group Property

 To configure HSRP group property ,you should configure one or more command list below in interface configure model: 

命令

用途

standby [group-number] timers hellotime holdtime

configure HSRP  timer parameter

Hello timer :hello packet sending interval(seconds)

Hold timer:presumption timer that the sending router has failed

standby [group-number] mac-address mac-address

configure HSRP group virtual mac address

mac-address: hsrp group virtual mac address

standby [group-number] priority priority

 

standby [group-number] preempt [delay delay]

configure hsrp priority level.(To vote in active/standby router)

configure hsrp preempt. If local router's priority is larger than active router, local router should try to replace the active router.

configure hsrp preempt delay timer.Local router should replace active router after preempt delay timer.

standby [group-number] track type number [interface-priority]

configure hsrp group tracking interface list.

If the tracking interface is failed ,HSRP priority value decreased . Otherwise add .

standby [group-number] authentication string

configure hsrp group authentication string to authenticate hsrp packet valid .