天天看点

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: 路由的出接口
           

继续阅读