天天看點

EIGRP指令_學習筆記EIGRP指令

EIGRP指令

一、基本配置

  1. 路由上起eigrp協定:(config)#rouetr eigrp {AS}
  2. 關閉自動彙總:(config-router)#no auto-summary
  3. 設定RID:(config-router)#eigrp router-id {ip-address}
  4. 接口上起多點傳播Hello包:

    R1(config-router)#network {ip-address} 0.0.0.0

    R1(config-router)#network {ip-段 anti-mask}

  5. 配置variance參數:R1(config-router)#variance {x}
  6. 末節選項:R1(config-router)#eigrp stub { <cr>| receive-only| leak-map (name)| connected| static| summary| redistributed}
  1. 不常用配置:

    (1)設定帶寬的大小:R1(config-if)#bandwidth x

    (2)設定吞吐量延遲:R1(config-if)#delay x

    (3)修改發送Hello包的時間:R1(config-if)#ip hello-interval eigrp {AS} {time}

    (4)修改等待Hello包的時間(收不到Hello包就會斷開鄰居):R1(config-if)#ip hold-time eigrp {AS} {time}

    (5)設定被動接口:(config-router)#passive-interface f0/0

    (6)對某一特殊路由進行Metric調整:

    R1(config)#access-list x permit {ip-段 anti-mask}

    R1(config)#router eigrp {AS}

    R1(config-router)#offset-list x in {y} {interface}

    //從接口interface進來的路由Metric值增加y

配置EIGRP認證

R1(config)#key chain NameOfKeys//定義鑰匙鍊名字

R1(config-keychain)#key {ID}

R1(config-keychain-key)#key-sring {key}//key,ID雙方必須一緻

R1(config-keychain-key)#int {interface}

R1(config-if)#ip authentication mode eigrp {AS} md5//啟動MD5認證

R1(config-if)#ip authen key-chain eigrp {AS} NameOfKeys//比對鑰匙串

讀懂show指令

  1. show ip eigrp neighbors:
EIGRP-IPv4 Neighbors for AS(100)				   //AS100下的EIGRP資訊 
H     Address     Interface    Hold    Uptime    SRTT   RTO    Q   Seq
                               (sec)             (ms)         Cnt  Num 
0  192.168.1.102    fa0/0       10    00:07:22    10    2280   0    5
-----------------------------------------------------	
H: 鄰居的序号,按發現鄰居的順序	
Address: 鄰居的ip位址	Interface: 連接配接鄰居的本地接口	
Hold: 從鄰居那裡接受Hello包能夠等待的時間	
Uptime: 鄰居關系建立多久了	
SRTT: 到鄰居的往返時延
RTO: 來自重傳隊列的資訊能夠等待的時間	
Q: 等待發送的資料包	
Seq: 更新資料的序列号
           
  1. show ip route eigrp:
D    network  [AD/Metric]  via Next hop, Route age, Interface 	
----------------------------------------------
D: EIGRP内部路由;(D EX: EIGRP外部路由)	
network: 添加的本地接口(ip-address)到EIGRP程序	
[AD/Metric]: AD值,和Metric值	
via Next hop: 下一跳的ip-address	
Router age: 建立起路由條目的時間	Interface: 路由的出接口
           

繼續閱讀