05-24-2011 11:55 AM - edited 03-07-2019 12:39 AM
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
Solved! Go to Solution.
05-24-2011 12:28 PM
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.
05-24-2011 12:30 PM
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
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
05-24-2011 12:28 PM
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.
05-24-2011 12:30 PM
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
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
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: