Difference between revisions of "3-tier design/HSRPConfig"
From Teknologisk videncenter
m |
m |
||
Line 1: | Line 1: | ||
Switch 1 as active | Switch 1 as active | ||
<source lang=cli> | <source lang=cli> | ||
− | HQD1D1(config)#<input> | + | HQD1D1(config)#<input>interface vlan 10</input> |
− | HQD1D1(config-if)#<input>ip | + | 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 ip 172.16.10.1</input> | ||
− | HQD1D1(config-if)#<input>standby | + | HQD1D1(config-if)#<input>standby priority 110</input> |
HQD1D1(config-if)#<input>standby preempt</input> | HQD1D1(config-if)#<input>standby preempt</input> | ||
HQD1D1(config-if)#<input>end</input> | HQD1D1(config-if)#<input>end</input> | ||
Line 20: | Line 20: | ||
Switch 2 as standby | Switch 2 as standby | ||
<source lang=cli> | <source lang=cli> | ||
− | HQD1D2(config)#<input> | + | HQD1D2(config)#<input>interface vlan 10</input> |
− | HQD1D2(config-if)#<input>ip | + | 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 ip 172.16.10.1</input> | ||
HQD1D2(config-if)#<input>standby preempt</input> | HQD1D2(config-if)#<input>standby preempt</input> | ||
<notice>%HSRP-6-STATECHANGE: Vlan10 Grp 0 state Speak -> Standby</notice> | <notice>%HSRP-6-STATECHANGE: Vlan10 Grp 0 state Speak -> Standby</notice> | ||
HQD1D2(config-if)#<input>end</input> | HQD1D2(config-if)#<input>end</input> | ||
− | HQD1D2#<input>show standby | + | HQD1D2#<input>show standby brief</input> |
P indicates configured to preempt. | P indicates configured to preempt. | ||
| | | |
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#