Sie sind auf Seite 1von 3

1.

Hostname
2. IP Address
3. VTY Access
4. PAT:192.168.Y.0/24 BY S0/0/0
Rx(config) # ip route 0.0.0.0 0.0.0.0 100.140.x.1
Rx(config) # access-list 10 permit 192.168.Y.0 0.0.0.255
Rx(config) # ip nat inside source list 10 interface Serial0/0/0 overload
Rx(conifg) # interface fastEthernet 0/1
Rx(config-if) # ip nat in
Rx(config) # interface Series 0/0/0
Rx(config-if) # ip nat out

5. HSRP
 設定 HSRP Group No.Y IP Address:192.168.Y.254
Active Router R1, Standby Router R2
 設定 HSRP Group No.Y+1 IP Address:192.168.Y.253
Active Router R2, Standby Router R1
 Active Router Priority 200
Standby Router Priority 150
 Priority 大的要設定 Preempt
 R1(config) # interface fastEthernet 0/1
 R1(config-if) # standby Y ip 192.168.Y.254
 R1(config-if) # standby Y priority 150
 R1(config-if) # standby Y+1 ip 192.168.Y.253
 R1(config-if) # standby Y+1 priority 200
 R1(config-if) # standby Y+1 preempt
 R2(config) # interface fastEthernet 0/1
 R2(config-if) # standby Y ip 192.168.Y.254
 R2(config-if) # standby Y priority 200
 R2(config-if) # standby Y preempt
 R2(config-if) # standby Y+1 ip 192.168.Y.253
 R2(config-if) # standby Y+1 priority 150

6. HSRP Interface Tracking


設定 Router 當 Serial 0/0/0 介面 Fail 時,把 Active 角色切換出去
R1(config) # interface fastEthernet 0/1
R1(config-if) # standby Y track Serial0/0/0 60
R2(config) # interface fastEthernet 0/1
R2(config-if) # standby Y+1 track Serial0/0/0 60

7. HSRP Object Tracking[1]

 設定一個 IP SLA 10 利用 ICMP-ECHO 每 5 秒向 Next-hop(100.140.X.1)測試

 設定 Tracking Object 100 利用 IP SLA 10 評估

 設定 Router 當 Tracking Object 100 Fail 時,把 Active 角色切換出去


 Rx(config) # ip sla 10
 Rx(config-ip-sla) # icmp-echo 100.140.X.1
 Rx(config-ip-sla) # frequency 5
 Rx(config-ip-sla) # ip sla schedule 10 life forever start-time now
 Rx(config) # track 100 ip sla 10 / track 100 rtr 10
 Rx(config) # interface fastEthernet 0/1
 R1(config-if) # standby 11 track 100 decrement 60
 R2(config-if) # standby 10 track 100 decrement 60

8. HSRP Object Tracking[2]

 設定一個 IP SLA 20 利用 HTTP GET 每 60 秒向 www.pcschool.com.tw 測試

 設定 Tracking Object 200 利用 IP SLA 20 評估

 設定 Router 當 Tracking Object 200 Fail 時,把 Active 角色切換出去


 Rx(config) # ip sla 20
 Rx(config-ip-sla) # http get http://www.pcschool.com.tw
 Rx(config-ip-sla) # ip sla schedule 20 life forever start-time now
 Rx(config) # track 200 ip sla 20 / track 200 rtr 20
 Rx(config) # ip name-server 8.8.8.8
 Rx(config) # interface fastEthernet 0/1
 R1(config-if) # standby 11 track 200 decrement 60
 R2(config-if) # standby 10 track 200 decrement 60

9. HSRP Authentication
 設定 HSRP 利用 CCNP Password 驗證
 Rx(config) # interface fastEthernet 0/1
 Rx(config-if) # standby Y authentication CCNP
 Rx(config-if) # standby Y+1 authentication CCNP

10.HSRP Timer
 修改 HSRP 時間 Hello 3s => 0.5s,Holdtime 10s => 2s
 Rx(config) # interface fastEthernet 0/1
 R1(config-if) # standby 11 timers msec 500 2
 R2(config-if) # standby 10 timers msec 500 2

11.HSRP Version 2
 調整 HSRP 為 Version 2
 Rx(config) # interface fastEthernet 0/1
 Rx(config-if) # standby version 2

Das könnte Ihnen auch gefallen