Cisco Cisco routers HSRP configuration and troubleshooting those things ~ ~

Source: Internet
Author: User
Tags switches

First highlight the required commands to:

To configure the members of HSRP:

Router (config-if) #standby Backup Group number IP Backup Group Virtual IP Address

Configuration HSRP Priority:

Router (config-if) #standby Backup Group number Priority Priority Level

Configure Port Tracking: Configure on the active router

Router (config-if) #standby Backup Group number Track Trace Interface

Configuration HSRP preemptive right: Configure on the backup router

Router (config-if) #standby Backup Group number preempt

To view the HSRP information:

Switch#show Standby Brief


Here is an explanation of the experiment:

650) this.width=650; "Src=" https://s4.51cto.com/wyfs02/M01/97/05/wKiom1kn4szycqCaAABcH42vkJQ345.png-wh_500x0-wm_ 3-wmp_4-s_3151788239.png "title=" 009.png "alt=" Wkiom1kn4szycqcaaabch42vkjq345.png-wh_50 "/>

Three layer switch 0 Configuration Fast Ethernet interface F0/2:

Switch (config) #interface fastethernet 0/2

Switch (config-if) #no Switchport

Switch (config-if) #ip address 192.168.2.1 255.255.255.0

Switch (config-if) #no shutdown

Switch (config-if) #exit

Yes, of course. Three Layer switch 1 Configure the Ethernet interface F0/2 the same.

Switch (config) #interface fastethernet 0/2

Switch (config-if) #no Switchport

Switch (config-if) #ip address 192.168.3.1 255.255.255.0

Switch (config-if) #no shutdown

Switch (config-if) #exit

Since the configuration of HSRP must be configured on the gateway, the IP address is configured on the VLAN1 of the two three-layer switches respectively, which is the address of the gateways for the two hosts below.

The configuration commands are as follows:

Switch (config) #interface vlan 1

Switch (config-if) #ip address 192.168.1.252 255.255.255.0

Switch (config-if) #no shutdown

Switch (config-if) #exit

Similarly, the three layer switch is configured as follows:

Switch (config) #interface vlan 1

Switch (config-if) #ip address 192.168.1.253 255.255.255.0

Switch (config-if) #no shutdown

Switch (config-if) #exit

Why is there no configuration 192.168.1.254 here, because 192.168.1.254 is the virtual gateway address of HSRP. The routing feature is turned on for layer three switches below.

Switch (config) #ip routing

Here are the detailed configuration steps for configuring the router: Configure the IP address and enable the port for the router's three interfaces, as a simple one:

Router (config) #interface fastethernet 0/0

Router (config-if) #ip address 192.168.2.254 255.255.255.0

Router (config-if) #no shutdown

Router (config-if) #exit


Router (config) #interface fastethernet 0/1

Router (config-if) #ip address 192.168.3.254 255.255.255.0

Router (config-if) #no shutdown

Router (config-if) #exit


Router (config) #interface fastethernet 1/0

Router (config-if) #ip address 192.168.4.254 255.255.255.0

Router (config-if) #no shutdown

Router (config-if) #exit

After configuring RIP for layer three switches and routers, the command is as follows:

(1) Three-layer switch 0 configuration:

Switch (config) #do sh ip rou

CODES:C-connected, s-static, I-igrp, R-rip, M-mobile, B-BGP

D-EIGRP, Ex-eigrp External, O-OSPF, IA-OSPF Inter area

N1-OSPF NSSA External Type 1, N2-OSPF NSSA external type 2

E1-OSPF external Type 1, E2-OSPF external type 2, E-EGP

I-is-is, L1-is-is level-1, L2-is-is level-2, ia-is-is Inter area

*-Candidate default, U-per-user static route, O-ODR

P-periodic downloaded static route


Gateway of last resort are not set


C 192.168.1.0/24 is directly connected, Vlan1

C 192.168.2.0/24 is directly connected, FASTETHERNET0/2

Switch (config) #router rip

Switch (config-router) #version 2

Switch (config-router) #no auto-summary

Switch (config-router) #network 192.168.1.0

Switch (config-router) #network 192.168.2.0

(2) Three-layer switch 1 configuration:

Switch (config) #do sh ip rou

CODES:C-connected, s-static, I-igrp, R-rip, M-mobile, B-BGP

D-EIGRP, Ex-eigrp External, O-OSPF, IA-OSPF Inter area

N1-OSPF NSSA External Type 1, N2-OSPF NSSA external type 2

E1-OSPF external Type 1, E2-OSPF external type 2, E-EGP

I-is-is, L1-is-is level-1, L2-is-is level-2, ia-is-is Inter area

*-Candidate default, U-per-user static route, O-ODR

P-periodic downloaded static route


Gateway of last resort are not set


C 192.168.1.0/24 is directly connected, Vlan1

C 192.168.3.0/24 is directly connected, FASTETHERNET0/2

Switch (config) #router rip

Switch (config-router) #version 2

Switch (config-router) #no auto-summary

Switch (config-router) #network 192.168.1.0

Switch (config-router) #network 192.168.3.0

Switch (Config-router) #exit

If this is all configured, then use the ping command to test it!

Here is a start-up-configuring HSRP Hot Spares:

Configure on the active three-layer switch:

Switch (config) #interface vlan 1

Switch (config-if) #standby 1 IP 192.168.1.254

Switch (config-if) #standby 1 priority 200

Switch (config-if) #standby 1 track fastethernet 0/2

Switch (config-if) #standby 1 preempt

Configure on the backup layer three switch:

Switch (config) #interface vlan 1

Switch (config-if) #standby 1 IP 192.168.1.254

Switch (config-if) #standby 1 priority 195

Switch (config-if) #standby 1 preempt

This article is from the "Handsome Little Brother" blog, please be sure to keep this source http://xvjunjie.blog.51cto.com/12360960/1955102

Cisco Cisco routers HSRP configuration and troubleshooting those things ~ ~

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.