3-tier design/HSRPConfig
From Teknologisk videncenter
Switch 1 as active
HQD1D1(config)#<input>int vlan 10</input>
HQD1D1(config-if)#<input>ip add 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 pri 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>int vlan 10</input>
HQD1D2(config-if)#<input>ip add 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 brie</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#