Cisco HSRP Dual-machine configuration

Source: Internet
Author: User

Cisco HSRP Configuration

    • Network topology

650) this.width=650; "src=" http://s5.51cto.com/wyfs02/M00/80/77/wKiom1dClk6hrij9AAGYiQDg5i0740.jpg "title=" Network Topology " Style= "Float:none;" alt= "wkiom1dclk6hrij9aagyiqdg5i0740.jpg"/>

    • Configuration commands

ha-a Configuration Commands

Ha-a>enable

Ha-a#conf Terminal

Enter configuration commands, one per line. End withcntl/z.

Ha-a (config) #int gigabitethernet 0/2

Ha-a (config-if) #no switchport [Zhou Shuxuan 1]

Ha-a (config-if) #ip address 192.168.30.2 255.255.255.0[Zhou Shuxuan 2]

Ha-a (config-if) #exit

Ha-a (config) #int gigabitethernet 0/1

Ha-a (config-if) #no Switchport

Ha-a (config-if) #ip address 10.10.10.10 255.255.255.0

Ha-a (config-if) #exit

Ha-a (config) #ip routing[Zhou Shuxuan 3]

Ha-a (config) #router rip[Zhou Shuxuan 4]

Ha-a (config-router) #ver 2

Ha-a (config-router) #no auto-summary[Zhou Shuxuan 5]

Ha-a (config-router) #network 10.10.10.0[Zhou Shuxuan 6]

Ha-a (config-router) #network 192.168.30.0

Ha-a (Config-router) #exit

Ha-a (config) #interface gigabitethernet 0/2

Ha-a (config-if) #standby 1 IP 192.168.30.254[Zhou Shuxuan 7]

Ha-a (config-if) #standby priority[Zhou Shuxuan 8]

Ha-a (config-if) #standby 1 preempt[Zhou Shuxuan 9]

Ha-a (config-if) #standby 1 Timers 3[Zhou Shuxuan]

Ha-a (config-if) #standby 1 track gigabitethernet 0/2[Zhou Shuxuan]

Ha-b Switch Configuration

Ha-b>enable

Ha-b#conf Terminal

Enter configuration commands, one per line. End with cntl/z.

Ha-b (config) #int gigabitethernet 0/2

Ha-b (config-if) #no Switchport

Ha-b (config-if) #

Ha-b (config-if) #ip address 192.168.30.2 255.255.255.0

Ha-b (config-if) #exit

Ha-b (config) #int gigabitethernet 0/1

Ha-b (config-if) #no Switchport

Ha-b (config-if) #ip address 10.10.10.10 255.255.255.0

Ha-b (config-if) #exit

Ha-b (config) #ip routing

Ha-b (config) #router rip

Ha-b (config-router) #ver 2

Ha-b (config-router) #no auto-summary

Ha-b (config-router) #network 10.10.10.0

Ha-b (config-router) #network 192.168.30.0

Ha-b (Config-router) #exit

Ha-b (config) #interface gigabitethernet 0/2

Ha-b (config-if) #standby 1 IP 192.168.30.254

Ha-b (config-if) #standby 1 preempt

Ha-b (config-if) #standby 1 Timers 3 10

Ha-b (config-if) #standby 1 track gigabitethernet 0/2

third, querying the HSRP state

Query command: Show standby brief

650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M00/80/75/wKioL1dClz_BvNqzAAAX7Mj8524458.png "title=" View VRRP status "style=" Float:none; "alt=" Wkiol1dclz_bvnqzaaax7mj8524458.png "/>

Ports on: GIG0/2 GRP Group Id:1 active: Active routed locally

Standby: Backup route on 192.168.30.2

Virtual IP Gateway ip:192.168.30.254

Query command: Show standby

650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M01/80/77/wKiom1dClk6hm0fGAAA4nxwmlFs927.png "title=" View VRRP Information "style=" Float:none; "alt=" Wkiom1dclk6hm0fgaaa4nxwmlfs927.png "/>




[Zhou Shuxuan 1] switching mode for closed ports Enable routing mode

[Zhou Shuxuan 2] of the configuration port IP Address

[Zhou Shuxuan 3] to start the routing capability for layer three switches

[Zhou Shuxuan 4] Configuration RIP Dynamic Routing

[Zhou Shuxuan 5] Close RIP V2 Auto-summarize function

[Zhou Shuxuan 6] Configuring dynamic routing for Advertisement

[Zhou Shuxuan 7] enabled HSRP features, creating Standby Group 1 , and set up a virtual gateway IP Address

[Zhou Shuxuan 8] Set HSRP priority, the value of which is larger will preempt the Active router, default is -

[Zhou Shuxuan 9] setting allows preemption to be active when the router priority is highest

[Zhou Shuxuan] Set Hellotime to be 3 seconds, Holdtime to be Ten seconds, which is the default value

[Zhou Shuxuan] Configure Port Tracking


This article is from the "Ink Color Dust" blog, please make sure to keep this source http://qianer520.blog.51cto.com/10583764/1782095

Cisco HSRP Dual-machine configuration

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.