cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
439
Views
0
Helpful
2
Replies

HSRP configuration

narciso.lazo
Level 1
Level 1

Hello,

I have 2 seperate 4507R Switch running Sup VI-E, with the latest IOS on both of them. How do you configure HSRP on these 2 switches, to make the first switch ACTIVE and the other switch STANDBY. Can you please post a sample configuration for this scenario? Thank you.

-- Chie

2 Accepted Solutions

Accepted Solutions

Antonio Knox
Level 7
Level 7

You want to make the priority higher on the switch that you want as active.  Let's use an example vlan 10 (10.1.1.0/24):

Switch-1 (ACTIVE)

int vlan 10

ip address 10.1.1.2 255.255.255.0

!-----SET UP HSRP VIP-------

standby 10 ip 10.1.1.1

!-----SET UP HSRP PRIORITY, DEFAULT IS 100 SO WE'LL GIVE ACTIVE 105-------

standby 10 priority 105

!-----IF HE GOES DOWN, WE WANT HIM TO TAKE OVER WHEN HE COMES BACK UP (PREEMPT)-----

standby 10 preempt

Switch-2 (STANDBY)

int vlan 10

ip address 10.1.1.3 255.255.255.0

!-----SET UP HSRP VIP-------

standby 10 ip 10.1.1.1

!-----THIS IS STANDBY, WE'LL LEAVE HSRP PRIORITY ALONE, DEFAULT IS 100 (NO CONFIG NECESSARY)-------

!-----IF ACTIVE GOES DOWN, WE WANT STANDBY TO TAKE OVER-----

standby 10 preempt

Please rate if helpful.

View solution in original post

Ven Taylor
Level 4
Level 4

R1:

Interface vlan10

description primary vlan10 interface

ip address 10.100.10.2 255.255.255.0  <-- real ip

standby 10 ip 10.100.10.1  <-- default gateway provided to end-nodes

standby priority 105

standby preempt

no shut

!

( you can also use the "standby 10 track " command on R1.  It will track the router's default gateway.  If that interface goes down, the router will automatically lower it's priority, causing R2 to become active - example cli is "standby 10 track serial0" )

R2:

Interface vlan10

description secondary vlan10 interface

ip address 10.100.10.3 255.255.255.0  <-- real ip

standby 10 ip 10.100.10.1  <-- default gateway provided to end-nodes

standby priority 100

standby preempt

no shut

!

Once these configurations are made, do a " show ip interface brief " on both routers.  From here, you can check to see if each router is properly active/standby and what IP address they're both providing as the default gateway.

This also works for physical interfaces, but I hope you're using SVIs and trunking to L2 switches too.

Ven

Ven Taylor

View solution in original post

2 Replies 2

Antonio Knox
Level 7
Level 7

You want to make the priority higher on the switch that you want as active.  Let's use an example vlan 10 (10.1.1.0/24):

Switch-1 (ACTIVE)

int vlan 10

ip address 10.1.1.2 255.255.255.0

!-----SET UP HSRP VIP-------

standby 10 ip 10.1.1.1

!-----SET UP HSRP PRIORITY, DEFAULT IS 100 SO WE'LL GIVE ACTIVE 105-------

standby 10 priority 105

!-----IF HE GOES DOWN, WE WANT HIM TO TAKE OVER WHEN HE COMES BACK UP (PREEMPT)-----

standby 10 preempt

Switch-2 (STANDBY)

int vlan 10

ip address 10.1.1.3 255.255.255.0

!-----SET UP HSRP VIP-------

standby 10 ip 10.1.1.1

!-----THIS IS STANDBY, WE'LL LEAVE HSRP PRIORITY ALONE, DEFAULT IS 100 (NO CONFIG NECESSARY)-------

!-----IF ACTIVE GOES DOWN, WE WANT STANDBY TO TAKE OVER-----

standby 10 preempt

Please rate if helpful.

Ven Taylor
Level 4
Level 4

R1:

Interface vlan10

description primary vlan10 interface

ip address 10.100.10.2 255.255.255.0  <-- real ip

standby 10 ip 10.100.10.1  <-- default gateway provided to end-nodes

standby priority 105

standby preempt

no shut

!

( you can also use the "standby 10 track " command on R1.  It will track the router's default gateway.  If that interface goes down, the router will automatically lower it's priority, causing R2 to become active - example cli is "standby 10 track serial0" )

R2:

Interface vlan10

description secondary vlan10 interface

ip address 10.100.10.3 255.255.255.0  <-- real ip

standby 10 ip 10.100.10.1  <-- default gateway provided to end-nodes

standby priority 100

standby preempt

no shut

!

Once these configurations are made, do a " show ip interface brief " on both routers.  From here, you can check to see if each router is properly active/standby and what IP address they're both providing as the default gateway.

This also works for physical interfaces, but I hope you're using SVIs and trunking to L2 switches too.

Ven

Ven Taylor
Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Review Cisco Networking products for a $25 gift card