router1
r1#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
r1(config)#interface Ethernet2/0
r1(config-if)# ip address 192.168.1.11 255.255.255.0
r1(config-if)# standby ip 192.168.1.10 ←仮想IP
r1(config-if)# standby priority 95 ←優先度低

router2
r2#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
r2(config)#interface Ethernet2/0
r2(config-if)# ip address 192.168.1.12 255.255.255.0
r2(config-if)# standby ip 192.168.1.10 ←仮想IP
r2(config-if)# standby priority 100 ←優先度高
r2(config-if)# standby preempt ←優先度高が復旧した場合Activeに戻る

状態確認
r1#sh standby
Ethernet2/0 - Group 0
 Local state is Standby, priority 95←スタンバイ
 Hellotime 3 sec, holdtime 10 sec
 Next hello sent in 1.668
 Virtual IP address is 192.168.1.10 configured
 Active router is 192.168.1.12, priority 100 expires in 8.272
 Standby router is local
 18 state changes, last state change 00:25:25

r2#sh standby
Ethernet2/0 - Group 0
 Local state is Active, priority 100, may preempt←アクティブ
 Hellotime 3 sec, holdtime 10 sec
 Next hello sent in 0.752
 Virtual IP address is 192.168.1.10 configured
 Active router is local
 Standby router is 192.168.1.11 expires in 8.212
 Virtual mac address is 0000.0c07.ac00
 6 state changes, last state change 00:24:52
最終更新:2009年04月06日 01:08