<EIGRP(Enhanced Interior Gateway Routing Protocol)>
Cisco專屬路由協定,非Cisco路由器不支援
Classless Routing
擴散更新演算法(DUAL)
鄰居表(Neighbor Tables)
拓樸表(Topology Tables)
可靠傳輸通訊協定(RTP)
hop count為255
<EIGRP常用指令>
啟動EIGRP,AS(自治區編號)=10:
(config)#router eigrp 10
宣告傳出的網址:
(config-router)#network x.x.x.x
關閉自動路由壓縮:
(config-router)#no auto-summary
設定fa0/0為被動介面:
(config-router)#passive-interface fa0/0
修改不同成本的路由負載平衡:
(config-router)#variance
查看路由器正在執行路由協定:
#show ip protocol
查看鄰居表:
#show ip eigrp neighbor
查看拓樸表:
#show ip eigrp topology
查看AS=10 EIGRP執行的介面:
#show ip eigrp interface 10
查看封包數目:
#show ip eigrp traffic
查看EIGRP底層封包狀態:
#debug eigrp packets
<自治區編號Autonomous System number>
啟動EIGRP一定要加AS編號
目的在於分組進行路由更新
不同AS編號將不會互相傳遞路由資訊,除非使用匯入功能(Redistribute)-CCNP
傳送路由資訊前,先建立鄰居關係
*超過255 hops的遠端網路,可用AS來延伸可學習遠端網路,再使用匯入功能
修改RIP的AD值:
只會影響本地的路由器
(config)#router rip
(config-router)#distance x
<修改EIGRP的AD值>
EIGRP分成:
內部路由(Internal):
由同一個EIGRP學習到的資訊
外部路由(External):
匯入到EIGRP的路由(CCNP)
修改內部路由AD值為80/外部為170:
(config)#router eigrp x
(config-router)#distance 80 170
當兩個路由協定AD值調整一樣:
選擇預設AD值最小的為優先
ex:RIP=85,EIGRP=85
<主網址位址儲存>
EIGRP針對network宣告以主網址位址方式存在running組態檔中
<萬用遮罩(wildcard mask)>
限定只將某個子網路宣告傳出
RIP無支援
可看作子網路遮罩的反遮罩
計算方式:
255.255.255.255-該網路的子遮罩
/25萬用遮罩為0.0.0.127
限定172.30.100.0/24子網路方式宣告指令:
(config)#router eigrp x
(config-router)#network 172.30.100.0 0.0.0.255
<快速啟動EIGRP>
PT模擬器不支援
network 0.0.0.0/0路由器上所有網路都宣告傳送:
(config)#router eigrp x
(config-router)#network 0.0.0.0
(config-router)#no auto-summary
<手動路由壓縮>
ex:172.30.100.0與172.30.110.0
轉換為二進位,由左至右比對到不相同的位元
壓縮完為"10101100.00011110.0110"0000.00000000=172.30.96.0/20
路由壓縮在介面上進行
設定EIGRP手動路由壓縮指令:
(config)#int s0/0/1
(config-if)#ip summary-addres eigrp 10 172.30.96.0 255.255.240.0
<EIGRP傳送預設路由>
方法一
設定靜態路由:
(config)#ip route 0.0.0.0 0.0.0.0 s0/0/0
由於EIGRP無法辨識0.0.0.0預設路由,所以使用redistribute static,把預設路由當作靜態路由匯入EIGRP傳送
(config)#router eigrp x
(config-router)#redistribute static
路由表中EX表示為EIGRP的外部路由,AD值為170
方法二
使用ip default-network,此指令可以設定0.0.0.0/0以外的網路(特定網路)為預設路由
ex:以192.168.20.0/24為預設路由
設定靜態路由:
(config)#ip route 192.168.20.0 255.255.255.0 fa0/0
設定預設路由:
(config)#ip default-network 192.168.20
(config)#router eigrp x
宣告192.168.20.0透過EIGRP送出:
(config-router)#network 192.168.20.0
