3-redundancy protocol-hsrp Configuration on Cisco IOS

Source: Internet
Author: User

In this section we'll do a HSRP configuration to understand the issue better. To does this we'll use the below the topology [t ' PLD]. At the end ofthis article, you'll find the GNS3 Configuration Lab of this lesson.


650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/73/AB/wKiom1YDmTbjLqBUAADHgMkUhS8598.jpg "title=" Hsrp1.png "alt=" Wkiom1ydmtbjlqbuaadhgmkuhs8598.jpg "/>



  [' d () l] .

After interface configuration, we'll configure a static route on each Site 1 and Site2. In this static route we'll use the virtual IP address that we'll explain in this article. This virtual address would be 10.10.10.10 and 10.10.20.20.


Site1 (config) #ip Route 10.10.20.0 255.255.255.0 10.10.10.10

Site2 (config) #ip Route 10.10.10.0 255.255.255.0 10.10.20.20


Now the configuration is a ready to HSRP configuration. Let's start on side (left) on GW1 and GW2 and after that we'll configure a second HSRP configuration for the other side (right)

GW1

GW1 (config) #interface fa0/0

GW1 (config-if) #standby 1 IP 10.10.10.10

GW1 (config-if) #standby 1 preempt

GW1 (config-if) #standby 1 priority 110

GW1 (config-if) #standby 1 track FA0/1

GW1 (config-if) #exit

GW1 (config) #interface FA0/1

GW1 (config-if) #standby 1 IP 10.10.20.20

GW1 (config-if) #standby 1 preempt

GW1 (config-if) #exit

GW2

GW2 (config) #interface fa0/0

GW2 (config-if) #standby 1 IP 10.10.10.10

GW2 (config-if) #standby 1 preempt

GW2 (config-if) #standby 1 priority 100

GW2 (config-if) #standby 1 track FA0/1

GW2 (config-if) #exit

GW2 (config) #interface FA0/1

GW2 (config-if) #standby 1 IP 10.10.20.20

GW2 (config-if) #standby 1 preempt

GW2 (config-if) #exit

You don't need to does this is the configuration for both sides, but the this configuration, we did it for both sites. After this you can check the configuration with"show standby"command on GW1 and GW2. As you see below, for both redundancy configuration GW1 are the active router and the GW2 is the standby


650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/73/AB/wKiom1YDmkDzbgemAAIXEGJ92do442.jpg "style=" float: none; "title=" Hspr2.png "alt=" Wkiom1ydmkdzbgemaaixegj92do442.jpg "/>

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/73/A8/wKioL1YDmkPjYQv1AAHuxBKPQCg549.jpg "style=" float: none; "title=" Hsrp3.png "alt=" Wkiol1ydmkpjyqv1aahuxbkpqcg549.jpg "/>

To check this traffic from Site 1 to Site2 are preferring the GW1 while it's active, do traceroute from Site1. As can see below the nexthop would be GW1.

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/73/A8/wKioL1YDmoXgiKQRAACTTSW9hIc744.jpg "title=" Hsrp4.png "alt=" Wkiol1ydmoxgikqraacttsw9hic744.jpg "/>

And like the same if you start Traceroute from Site 2 to Site1, the traffic would choose the GW1 again, because for this Redundancy session, the active router is GW1 again.

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/73/A9/wKioL1YDmyewEHXIAACdK0tmKy0895.jpg "title=" Hsrp5.png "alt=" Wkiol1ydmyewehxiaacdk0tmky0895.jpg "/>

When we administratively shoutdown the fa0/0 interface of GW1 for test, we see this GW2 become active become active by a C Onsole message and after the if we check the status, we see that it was active like below.

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/73/AC/wKiom1YDm1WCWJHaAAJBAqtm2Rg662.jpg "title=" Hsrp6.png "alt=" Wkiom1ydm1wcwjhaaajbaqtm2rg662.jpg "/>

Lastly, when we start traceroute from site1 to Site2 and we realize that the traffic are no longer go through GW1, but it is going through GW2.

Beside this basic configuration commands, we can also use the below command while configuring the redundancy with HSRP.

We use the "preempt" command above but it's necessary to tell about something the This command.

This command was used to force a router that had higher priority become active router. by default if a higher priority router come online, it does not become active if the preempt command isnot US Ed on it.

Another important point is "delay" command, it's used to mention the waiting time before becoming active router.

Router (config-if) Standby 1 preempt delay 10

You canalso change Hello and holder time with the below command.

Router (config-if) Standby 1 Timers 4 12

By default HSRP Hello packets is sent to the multicast address 224.0.0.2 over UDP Port 1985

There can be multiple HSRP virtual IP addresses.

Router (config-if) standby 1 IP 192.168.1.5

Router (config-if) Standby 1 IP 192.168.1.6 Secondary

HSRP Group is also assigned a "virtual MAC address". For HSRP Group 1, the value is 0000.0C07.AC08

Router (config-if) standby 1 mac-address 0000.0c07.ac08

Forauthentication, all the HSRP Group must is configured with the same password.

Router (CONFIG-IF) Standby 1 authentication CISCO

Lastly I want to refer one point, "tracking". During Hsrpusage, there can be a problem in an interface that it's critical for the connection. This interface can is than the interface that provide standby-active routers ' connection. So, a link under this interface cannot is realized by standby router. To overcome this issues, HSRP use ' track ' command that provide decreasing the ' priority ' of the router even if a specified I Nterface become down. With this decrease, the active router is changed.

Router (config-if) standby track FA0/1 50


I hope this article'll be helpful. Let's continue with VRRP, the standard base redundancy protocol.

Thank you,

Arrow Yang


This article is from the "keepmoving" blog, make sure to keep this source http://arrowyang.blog.51cto.com/10696835/1697845

3-redundancy protocol-hsrp Configuration on Cisco IOS

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.