version 12.0 service timestamps debug uptime service timestamps log uptime no service passWord-encryption ! hostname r1 ! enable password cisco ! ip subnet-zero ! ! ! ! interface Ethernet0 ip address 136.147.107.101 255.255.0.0 no ip redirects no ip directed-broadcast standby 150 timers 5 15 /* 定義150組5秒交換一次hello信息,15秒沒收到 hello信息就開始切換 */ standby 150 PRiority 110 /* 定義150組的主路由器權值,值越大,為主路由 器希望越大 */ standby 150 preempt /* enable 150組的hsrp搶占功能 */ standby 150 authentication cisco /* 設置150組的router身份驗證串 */ standby 150 ip 136.147.107.100 /* 定義150組的浮動地址,也是這臺router 連接的網絡的網關 */ standby 150 track Ethernet0 /* 定義監控的端口 */ ! interface Serial0 no ip address no ip directed-broadcast no ip mroute-cache shutdown no fair-queue ! ip classless ! ! line con 0 transport input none line 1 16 line aux 0 line vty 0 4 password cisco login ! end