R1
interface Ethernet0/0
ip address 192.168.1.2 255.255.255.0
half-duplex
!
interface Ethernet0/1
ip address 172.16.1.1 255.255.255.0
shutdown
half-duplex
standby 1 ip 172.16.1.100
standby 1 timers 5 15 //設置holle包超時時間,5 為五秒無hello包為超時,15為再等待15秒,15秒內無hello包則認為該端口down
standby 1 preempt //開啟搶占機制
standby 1 track Ethernet0/1 20 //跟蹤E0/1接口,如果該接口down掉,則將優先級減20
R2
interface Ethernet0/0
ip address 10.0.0.2 255.255.255.0
half-duplex
!
interface Ethernet0/1
ip address 172.16.1.2 255.255.255.0
half-duplex
standby 1 ip 172.16.1.100
standby 1 timers 5 15
standby 1 priority 80
standby 1 preempt
standby 1 track Ethernet0/1 20
新聞熱點
疑難解答