xyCruiseryx
Technical User
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
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