靜態(tài)路由協(xié)議顧名思義,就是不是有動態(tài)協(xié)議自動生成的,有手工輸入的路由條目。譬如PC 的缺省路由,單一出口的小網(wǎng)絡(luò)的缺省路由,一個只有幾個子網(wǎng)的簡單網(wǎng)絡(luò)等。
1、安裝疑難
靜態(tài)路由沒有出現(xiàn)在路由表-接口沒有up
配置:如圖 6 路由器A 為某公司出口路由器。配置如下:
A:
acl number 2000
rule 0 permit source 192.168.0.0 0.0.0.255
rule 1 deny
#
interface Serial0/0
link-protocol ppp
ip address 222.102.183.2 255.255.255.252
nat outbound 2000
#
interface LoopBack0
ip address 192.168.0.1 255.255.255.0
#
ip route-static 0.0.0.0 0.0.0.0 Serial 0/0 preference 60
故障:內(nèi)部的網(wǎng)絡(luò)無法上網(wǎng),查看全局路由表中為發(fā)現(xiàn)出口的缺省路由。接口s0/0 的狀態(tài)為down.
[A]dis ip routing-table
Routing Table: public net
[A]
[A]dis interface s0/0
Serial0/0 current state :DOWN
Line protocol current state :DOWN
Description : Serial0/0 Interface
The Maximum Transmit Unit is 1500, Hold timer is 10(sec)
Internet Address is 222.102.183.2/30
Link layer protocol is PPP
LCP initial
分析:缺省路由未安裝,查看配置文件中已經(jīng)配置。但是接口s0/0 的狀態(tài)為Down 導(dǎo)致了到該出口的條目未安裝。檢查為接口電纜松動,重新接駁后故障排除。
[A]dis ip routing-table
Routing Table: public net