Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Cisco HSRP several Questions

Status
Not open for further replies.

xyCruiseryx

Technical User
Oct 18, 2004
94
0
0
DE
In this Example :

HSRP configuration for DLS1:
DLS1# config t
Enter configuration commands, one per line. End with CNTL/Z.
DLS1(config)# ip routing
DLS1(config)# interface vlan 1
DLS1(config-if)# standby 1 ip 172.16.1.1
DLS1(config-if)# standby 1 preempt
DLS1(config-if)# standby 1 priority 150
DLS1(config-if)# exit
DLS1(config)# interface vlan 10
DLS1(config-if)# ip address 172.16.10.3 255.255.255.0
DLS1(config-if)# standby 1 ip 172.16.10.1
DLS1(config-if)# standby 1 preempt
DLS1(config-if)# standby 1 priority 150
DLS1(config-if)# no shutdown
DLS1(config-if)# exit
DLS1(config)# interface vlan 20
DLS1(config-if)# ip address 172.16.20.3 255.255.255.0
DLS1(config-if)# standby 1 ip 172.16.20.1
DLS1(config-if)# standby 1 preempt
DLS1(config-if)# standby 1 priority 150
DLS1(config-if)# exit
DLS1(config)# interface vlan 30
DLS1(config-if)# ip address 172.16.30.3 255.255.255.0
DLS1(config-if)# standby 1 ip 172.16.30.1
DLS1(config-if)# standby 1 preempt
DLS1(config-if)# standby 1 priority 100
DLS1(config-if)# exit
DLS1(config)# interface vlan 40
DLS1(config-if)# ip address 172.16.40.3 255.255.255.0
DLS1(config-if)# standby 1 ip 172.16.40.1
DLS1(config-if)# standby 1 preempt
DLS1(config-if)# standby 1 priority 100
DLS1(config-if)# end


HSRP configuration for DLS2:
DLS2# config t
Enter configuration commands, one per line. End with CNTL/Z.
DLS2(config)# ip routing
DLS2(config)# interface vlan 1
DLS2(config-if)# standby 1 ip 172.16.1.1
DLS2(config-if)# standby 1 preempt
DLS2(config-if)# standby 1 priority 150
DLS2(config-if)# exit
DLS2(config)# interface vlan 10
DLS2(config-if)# ip address 172.16.10.4 255.255.255.0
DLS2(config-if)# standby 1 ip 172.16.10.1
DLS2(config-if)# standby 1 preempt
DLS2(config-if)# standby 1 priority 150
DLS2(config-if)# no shutdown
DLS2(config-if)# exit
DLS2(config)# interface vlan 20
DLS2(config-if)# ip address 172.16.20.4 255.255.255.0
DLS2(config-if)# standby 1 ip 172.16.20.1
DLS2(config-if)# standby 1 preempt
DLS2(config-if)# standby 1 priority 150
DLS2(config-if)# exit
DLS2(config)# interface vlan 30
DLS2(config-if)# ip address 172.16.30.4 255.255.255.0
DLS2(config-if)# standby 1 ip 172.16.30.1
DLS2(config-if)# standby 1 preempt
DLS2(config-if)# standby 1 priority 100
DLS2(config-if)# exit
DLS2(config)# interface vlan 40
DLS2(config-if)# ip address 172.16.40.4 255.255.255.0
DLS2(config-if)# standby 1 ip 172.16.40.1
DLS2(config-if)# standby 1 preempt
DLS2(config-if)# standby 1 priority 100
DLS2(config-if)# end


Step 8
Issue the show standby command on both DLS1 and DLS2.
DLS1# show standby
Vlan1 - Group 1
State is Active
5 state changes, last state change 00:02:48
Virtual IP address is 172.16.1.1
Active virtual MAC address is 0000.0c07.ac01
Local virtual MAC address is 0000.0c07.ac01 (v1 default)
Hello time 3 sec, hold time 10 sec
Next hello sent in 2.228 secs
Preemption enabled
Active router is local
Standby router is 172.16.1.4, priority 100 (expires in 7.207 sec)
Priority 150 (configured 150)
IP redundancy name is "hsrp-Vl1-1" (default)

Vlan10 - Group 1
State is Active
5 state changes, last state change 00:02:50
Virtual IP address is 172.16.10.1
Active virtual MAC address is 0000.0c07.ac01
Local virtual MAC address is 0000.0c07.ac01 (v1 default)
Hello time 3 sec, hold time 10 sec
Next hello sent in 1.113 secs
Preemption enabled
Active router is local
Standby router is 172.16.10.4, priority 100 (expires in 9.807 sec)
Priority 150 (configured 150)
IP redundancy name is "hsrp-Vl10-1" (default)

Vlan20 - Group 1
State is Active
5 state changes, last state change 00:02:55
Virtual IP address is 172.16.20.1
Active virtual MAC address is 0000.0c07.ac01
Local virtual MAC address is 0000.0c07.ac01 (v1 default)
Hello time 3 sec, hold time 10 sec
Next hello sent in 1.884 secs
Preemption enabled
Active router is local
Standby router is 172.16.20.4, priority 100 (expires in 9.220 sec)
Priority 150 (configured 150)
IP redundancy name is "hsrp-Vl20-1" (default)

Vlan30 - Group 1
State is Standby
4 state changes, last state change 00:02:45
Virtual IP address is 172.16.30.1
Active virtual MAC address is 0000.0c07.ac01
Local virtual MAC address is 0000.0c07.ac01 (v1 default)
Hello time 3 sec, hold time 10 sec
Next hello sent in 2.413 secs
Preemption enabled
Active router is 172.16.30.4, priority 150 (expires in 8.415 sec)
Standby router is local
Priority 100 (default 100)
IP redundancy name is "hsrp-Vl30-1" (default)

Vlan40 - Group 1
State is Standby
11 - 18 CCNP: Building Multilayer Switched Networks v5.0 - Lab 5-1 Copyright © 2006, Cisco Systems, Inc
4 state changes, last state change 00:02:51
Virtual IP address is 172.16.40.1
Active virtual MAC address is 0000.0c07.ac01
Local virtual MAC address is 0000.0c07.ac01 (v1 default)
Hello time 3 sec, hold time 10 sec
Next hello sent in 1.826 secs
Preemption enabled
Active router is 172.16.40.4, priority 150 (expires in 7.828 sec)
Standby router is local
Priority 100 (default 100)
IP redundancy name is "hsrp-Vl40-1" (default)


DLS2# show standby
Vlan1 - Group 1
State is Standby
3 state changes, last state change 00:02:33
Virtual IP address is 172.16.1.1
Active virtual MAC address is 0000.0c07.ac01
Local virtual MAC address is 0000.0c07.ac01 (v1 default)
Hello time 3 sec, hold time 10 sec
Next hello sent in 2.950 secs
Preemption enabled
Active router is 172.16.1.3, priority 150 (expires in 8.960 sec)
Standby router is local
Priority 100 (default 100)
IP redundancy name is "hsrp-Vl1-1" (default)

Vlan10 - Group 1
State is Standby
3 state changes, last state change 00:02:34
Virtual IP address is 172.16.10.1
Active virtual MAC address is 0000.0c07.ac01
Local virtual MAC address is 0000.0c07.ac01 (v1 default)
Hello time 3 sec, hold time 10 sec
Next hello sent in 1.759 secs
Preemption enabled
Active router is 172.16.10.3, priority 150 (expires in 7.844 sec)
Standby router is local
Priority 100 (default 100)
IP redundancy name is "hsrp-Vl10-1" (default)

Vlan20 - Group 1
State is Standby
3 state changes, last state change 00:02:42
Virtual IP address is 172.16.20.1
Active virtual MAC address is 0000.0c07.ac01
Local virtual MAC address is 0000.0c07.ac01 (v1 default)
Hello time 3 sec, hold time 10 sec
Next hello sent in 2.790 secs
Preemption enabled
Active router is 172.16.20.3, priority 150 (expires in 8.289 sec)
Standby router is local
Priority 100 (default 100)
IP redundancy name is "hsrp-Vl20-1" (default)

Vlan30 - Group 1
State is Active
2 state changes, last state change 00:02:52
Virtual IP address is 172.16.30.1
Active virtual MAC address is 0000.0c07.ac01
Local virtual MAC address is 0000.0c07.ac01 (v1 default)
Hello time 3 sec, hold time 10 sec
Next hello sent in 1.549 secs
Preemption enabled
12 - 18 CCNP: Building Multilayer Switched Networks v5.0 - Lab 5-1 Copyright © 2006, Cisco Systems, Inc
Active router is local
Standby router is 172.16.30.3, priority 100 (expires in 9.538 sec)
Priority 150 (configured 150)
IP redundancy name is "hsrp-Vl30-1" (default)

Vlan40 - Group 1
State is Active
2 state changes, last state change 00:02:58
Virtual IP address is 172.16.40.1
Active virtual MAC address is 0000.0c07.ac01
Local virtual MAC address is 0000.0c07.ac01 (v1 default)
Hello time 3 sec, hold time 10 sec
Next hello sent in 0.962 secs
Preemption enabled
Active router is local
Standby router is 172.16.40.3, priority 100 (expires in 8.960 sec)
Priority 150 (configured 150)
IP redundancy name is "hsrp-Vl40-1" (default)





Question:Why are not all VLans fro, DLS2 in active Mode? Vlan 30 and 40 are Active because they got the highest IP-Adress by same Prio with DLS1. But why has DLS1 the other Vlans active.

Thx
 
I am confused why you are using the same priority on both devices.
 
brian just answered your question I believe. I'd set the priorities to control which switch is going to be active and which is to be standby.
 
This is a ccnp lab they may be asking why one side would be active with the same priority I don't know . Otherwise the answer has been stated , the make the hsrp active side a higher priority .
 
One point. If the priorities are the same, then the router with the highest IP address on the VLAN becomes active.

EB
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top