Difference between revisions of "3-tier design/HSRPConfig"

From Teknologisk videncenter
Jump to: navigation, search
m (Created page with "{{Source cli}}")
 
m
Line 1: Line 1:
 +
Switch 1 as active
 +
<source lang=cli>
 +
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#
 +
</source>
 +
 +
Switch 2 as standby
 +
<source lang=cli>
 +
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#
 +
</source>
 
{{Source cli}}
 
{{Source cli}}

Revision as of 10:49, 12 November 2014

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#