!
track 90 ip sla 20
!
interface FastEthernet1/0/1
switchport access vlan 100
switchport mode access
!
interface FastEthernet1/0/2
switchport access vlan 200
switchport mode access
!
interface Vlan100
ip address 10.10.10.10 255.255.255.0
standby version 2
standby 1 ip 10.10.10.254
standby 1 priority 105
standby 1 preempt
standby 1 track 90 decrement 10
!
interface Vlan200
ip address 172.16.16.10 255.255.255.0
standby 2 ip 172.16.16.254
standby 2 priority 105
standby 2 preempt
standby 2 track 90 decrement 10
!
ip sla 20
icmp-echo 10.10.10.20
ip sla schedule 20 life forever start-time now
!
!
interface FastEthernet1/0/1
switchport access vlan 100
switchport mode access
!
interface FastEthernet1/0/2
switchport access vlan 200
switchport mode access
!
interface Vlan100
ip address 10.10.10.10 255.255.255.0
standby 1 ip 10.10.10.254
standby 1 priority 100 (Eef100省略可)
standby 1 preempt
!
interface Vlan200
ip address 172.16.16.10 255.255.255.0
standby 2 ip 172.16.16.254
standby 2 priority 100 (Eef100省略可)
standby 2 preempt
!
Version2にすると認証が可能だが、一度も認証しないとINITになる。
Switch(config-if)#standby version 2 Switch(config-if)#standby 1 authentication text cisco
Switch#show standby
Vlan100 - Group 1
State is Active
8 state changes, last state change 00:01:33
Virtual IP address is 10.10.10.254
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.000 secs
Preemption enabled
Active router is local
Standby router is unknown
Priority 105 (configured 105)
Track object 90 state Up decrement 12
Group name is "hsrp-Vl100-1" (default)