Difference between revisions of "3-tier design/HSRPConfig"
From Teknologisk videncenter
m (Created page with "{{Source cli}}") |
m |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
+ | Switch 1 as active | ||
+ | <source lang=cli> | ||
+ | HQD1D1(config)#<input>interface vlan 10</input> | ||
+ | HQD1D1(config-if)#<input>ip address 172.16.10.2 255.255.255.0</input> | ||
+ | HQD1D1(config-if)#<input>standby ip 172.16.10.1</input> | ||
+ | HQD1D1(config-if)#<input>standby priority 110</input> | ||
+ | HQD1D1(config-if)#<input>standby preempt</input> | ||
+ | HQD1D1(config-if)#<input>end</input> | ||
+ | <notice>%HSRP-6-STATECHANGE: Vlan10 Grp 0 state Speak -> Standby | ||
+ | |||
+ | %HSRP-6-STATECHANGE: Vlan10 Grp 0 state Standby -> Active</notice> | ||
+ | HQD1D1#<input>show standby brief</input> | ||
+ | P indicates configured to preempt. | ||
+ | | | ||
+ | Interface Grp Pri P State Active Standby Virtual IP | ||
+ | <notice>Vl10 0 110 P Active local 172.16.10.3 172.16.10.1</notice> | ||
+ | HQD1D1# | ||
+ | </source> | ||
+ | |||
+ | Switch 2 as standby | ||
+ | <source lang=cli> | ||
+ | HQD1D2(config)#<input>interface vlan 10</input> | ||
+ | HQD1D2(config-if)#<input>ip address 172.16.10.3 255.255.255.0</input> | ||
+ | HQD1D2(config-if)#<input>standby ip 172.16.10.1</input> | ||
+ | HQD1D2(config-if)#<input>standby preempt</input> | ||
+ | <notice>%HSRP-6-STATECHANGE: Vlan10 Grp 0 state Speak -> Standby</notice> | ||
+ | HQD1D2(config-if)#<input>end</input> | ||
+ | HQD1D2#<input>show standby brief</input> | ||
+ | P indicates configured to preempt. | ||
+ | | | ||
+ | Interface Grp Pri P State Active Standby Virtual IP | ||
+ | <notice>Vl10 0 100 P Standby 172.16.10.2 local 172.16.10.1</notice> | ||
+ | HQD1D2# | ||
+ | </source> | ||
{{Source cli}} | {{Source cli}} |
Latest revision as of 15:16, 2 June 2015
Switch 1 as active
HQD1D1(config)#<input>interface vlan 10</input>
HQD1D1(config-if)#<input>ip address 172.16.10.2 255.255.255.0</input>
HQD1D1(config-if)#<input>standby ip 172.16.10.1</input>
HQD1D1(config-if)#<input>standby priority 110</input>
HQD1D1(config-if)#<input>standby preempt</input>
HQD1D1(config-if)#<input>end</input>
<notice>%HSRP-6-STATECHANGE: Vlan10 Grp 0 state Speak -> Standby
%HSRP-6-STATECHANGE: Vlan10 Grp 0 state Standby -> Active</notice>
HQD1D1#<input>show standby brief</input>
P indicates configured to preempt.
|
Interface Grp Pri P State Active Standby Virtual IP
<notice>Vl10 0 110 P Active local 172.16.10.3 172.16.10.1</notice>
HQD1D1#
Switch 2 as standby
HQD1D2(config)#<input>interface vlan 10</input>
HQD1D2(config-if)#<input>ip address 172.16.10.3 255.255.255.0</input>
HQD1D2(config-if)#<input>standby ip 172.16.10.1</input>
HQD1D2(config-if)#<input>standby preempt</input>
<notice>%HSRP-6-STATECHANGE: Vlan10 Grp 0 state Speak -> Standby</notice>
HQD1D2(config-if)#<input>end</input>
HQD1D2#<input>show standby brief</input>
P indicates configured to preempt.
|
Interface Grp Pri P State Active Standby Virtual IP
<notice>Vl10 0 100 P Standby 172.16.10.2 local 172.16.10.1</notice>
HQD1D2#