EIGRP(Enhanced Interior Gateway Routing Protocol,增强型内部网关路由协议)是Cisco公司开发的一个平衡混合型路由协议,它融合了距离向量和链路状态两种路由协议的优点,支持IP、IPX、AppleTalk等多种网络层协议。这里仅关注IP网络环境中的EIGRP.

协议名称 协议类型 封装方式 多播地址 单播方式
RIP 距离矢量 UDP/520 224.0.0.9 passive接口
EIGRP 高级距离矢量 IP/88 224.0.0.10 指neighbor
OSPF 链路状态 IP/89 224.0.0.5/6 NBMA/点到多点NBMA
BGP   TCP/179    

邻居的发现和恢复
1.AS号
2.认证
3.K值
4.过滤(ACL)
5.FR是否加了broadcast
6.是否仅一方指了neighbor

备选后继成为可行后继的条件: 备选后继通告的AD<当前后继FD值
A->B->D (当前后继为B)
A->C->D (当B不可用时,C要成为可行后继的条件是C->D小于A->B->D)

EIGRP特点如下:
1.通过发送和接收Hello包来建立和维持邻居关系,并交换路由信息
2.采用组播(224.0.0.10)或单播进行路由更新
3.EIGRP的管理距离为90或170
4.采用触发更新,减少带宽占用
5.支持VLSM,默认开启自动汇总功能。
6.支持IP、IPX、AppleTalk等多种网络层协议
7.对每一种网络协议,EIGRP都维持独立的邻居表、拓扑表和路由表
8.EIGRP使用Diffusing Update算法(DUAL)来实现快速收敛,并确保没有路由环路
9.存储整个网络拓扑结构的信息,以便快速适应网络变化
10.支持等价和非等价的负载均衡
11.使用可靠传输协议(RTP)保证路由信息传输的可靠性
12.无缝连接数据链路层协议和拓扑结构,EIGRP不要求对OSI参考模型的2层协议做特别的配置

1.EIGRP的基本配置
2.EIGRP的单播更新
3.在接口禁用EIGRP
4.EIGRP MD5认证
5.EIGRP自动汇总
6.EIGRP手动汇总
7.EIGRP注入默认路由
8.EIGRP负载均衡
9.EIGRP非等价负载均衡
10.EIGRP过滤路由
11.EIGRP在帧中继环境下的水平分割
12.EIGRP配置管理流量占用带宽
13.EIGRP stup路由器

enable
conf t
no ip do lo
enable pass cisco
line con 0
logg sync
exec-t 0 0
line vty 0 4
pass cisco
logg sync
exit
host

1. EIGRP的基本配置:
---------------------------------------------------------------------------

R1:
int f0/0
ip add 12.1.1.1 255.255.255.0
no shut
exit
int l0
ip add 11.1.1.1 255.255.255.0
no shut
exit

R2:
int f0/0
ip add 12.1.1.2 255.255.255.0
no shut
exit
int l0
ip add 22.1.1.1 255.255.255.0
no shut
exit

R1:
router eigrp 1
no auto-summary
network 12.1.1.0 0.0.0.255
network 11.1.1.0 0.0.0.255
exit

R2:
router eigrp 1
no auto-summary
network 12.1.1.0 0.0.0.255
network 22.1.1.0 0.0.0.255
exit

R1:
end
show ip eigrp neighbors
show ip eigrp topology
show ip eigrp interfaces
show ip eigrp traffic
show ip protocals
conf t

2. EIGRP单播更新
----------------------------------------------
R1:
router eigrp 1
no auto-summary
network 12.1.1.0 0.0.0.255
network 11.1.1.0 0.0.0.255
exit

R2:
router eigrp 1
no auto-summary
network 12.1.1.0 0.0.0.255
network 22.1.1.0 0.0.0.255
exit

R1:
router eigrp 1
neighbor 12.1.1.2 f0/0
exit

R2:
router eigrp 1
neighbor 12.1.1.1 f0/0
exit

3. 在接口禁用EIGRP
--------------------------------------------------
R1:
router eigrp 1
no auto-summary
network 12.1.1.0 0.0.0.255
network 11.1.1.0 0.0.0.255
exit

R2:
router eigrp 1
no auto-summary
network 12.1.1.0 0.0.0.255
network 22.1.1.0 0.0.0.255
exit

R1:
end
debug eigrp packets
conf t

router eigrp 1
passive-int l0
exit

4. EIGRP MD5 认证
------------------------------------------------------
R1:
key chain yeslab
key 1
key-string cisco
end
conf t

int f0/0
ip authen mode eigrp 1 md5
ip authen key-chain eigrp 1 yeslab
exit

R2:
key chain yeslab
key 1
key-string cisco
end
conf t

int f0/0
ip authen mode eigrp 1 md5
ip authen key-chain eigrp 1 yeslab
exit

5. EIGRP自动汇总
--------------------------------------------------------------------------------------------

R1:
int f0/0
ip add 12.1.1.1 255.255.255.0
no shut
exit
int l0
ip add 11.1.1.1 255.255.255.0
no shut
exit

R2:
int f0/0
ip add 12.1.1.2 255.255.255.0
no shut
exit
int f1/0
ip add 23.1.1.2 255.255.255.0
no shut
exit
int l0
ip add 22.1.0.1 255.255.255.0
no shut
exit
int l1
ip add 22.1.1.1 255.255.255.0
no shut
exit
int l2
ip add 22.1.2.1 255.255.255.0
no shut
exit
int l3
ip add 22.1.3.1 255.255.255.0
no shut
exit

R3:
int f0/0
ip add 23.1.1.3 255.255.255.0
no shut
exit
int l0
ip add 33.1.0.1 255.255.255.0
no shut
exit
int l1
ip add 33.1.1.1 255.255.255.0
no shut
exit
int l2
ip add 33.1.2.1 255.255.255.0
no shut
exit
int l3
ip add 33.1.3.1 255.255.255.0
no shut
exit

R1:
router eigrp 1
network 12.1.1.0 0.0.0.255
network 11.1.1.0 0.0.0.255
exit

R2:
router eigrp 1
network 12.1.1.0 0.0.0.255
network 23.1.1.0 0.0.0.255
network 22.1.0.0 0.0.255.255
exit

R3:
router eigrp 1
network 23.1.1.0 0.0.0.255
network 33.1.0.0 0.0.255.255
exit

R2:
end
show ip eigrp neighbors
conf t

R1:
end
show ip route eigrp
conf t

R3:
router eigrp 1
no auto-summary
exit

R1:
end
show ip route eigrp
conf t

R2:
int l10
ip add 100.1.0.1 255.255.255.0
no shut
exit
int l11
ip add 100.1.1.1 255.255.255.0
no shut
exit
int l12
ip add 100.1.2.1 255.255.255.0
no shut
exit
int l13
ip add 100.1.3.1 255.255.255.0
no shut
exit

router eigrp 1
redistr conn

R1:
end
show ip route eigrp
conf t

6. EIGRP手动汇总
-------------------------------------------
R1:
int f0/0
ip add 12.1.1.1 255.255.255.0
no shut
exit
int l0
ip add 11.1.1.1 255.255.255.0
no shut
exit

R2:
int f0/0
ip add 12.1.1.2 255.255.255.0
no shut
exit
int f1/0
ip add 23.1.1.2 255.255.255.0
no shut
exit
int l0
ip add 22.1.0.1 255.255.255.0
no shut
exit
int l1
ip add 22.1.1.1 255.255.255.0
no shut
exit
int l2
ip add 22.1.2.1 255.255.255.0
no shut
exit
int l3
ip add 22.1.3.1 255.255.255.0
no shut
exit
int l10
ip add 100.1.0.1 255.255.255.0
no shut
exit
int l11
ip add 100.1.1.1 255.255.255.0
no shut
exit
int l12
ip add 100.1.2.1 255.255.255.0
no shut
exit
int l13
ip add 100.1.3.1 255.255.255.0
no shut
exit

R3:
int f0/0
ip add 23.1.1.3 255.255.255.0
no shut
exit
int l0
ip add 33.1.0.1 255.255.255.0
no shut
exit
int l1
ip add 33.1.1.1 255.255.255.0
no shut
exit
int l2
ip add 33.1.2.1 255.255.255.0
no shut
exit
int l3
ip add 33.1.3.1 255.255.255.0
no shut
exit

R1:
router eigrp 1
no auto-summary
network 12.1.1.0 0.0.0.255
network 11.1.1.0 0.0.0.255
exit

R2:
router eigrp 1
no auto-summary
network 12.1.1.0 0.0.0.255
network 23.1.1.0 0.0.0.255
network 22.1.0.0 0.0.255.255
redistribute connected
exit

R3:
router eigrp 1
no auto-summary
network 23.1.1.0 0.0.0.255
network 33.1.0.0 0.0.255.255
exit

R1:
end
show ip route eigrp
conf t

R2:
int f0/0
ip summary-add eigrp 1 22.1.0.0 255.255.252.0
ip summary-add eigrp 1 33.1.0.0 255.255.0.0
ip summary-add eigrp 1 100.1.0.0 255.255.0.0

end
show ip route eigrp
conf t

R1:
end
show ip route eigrp
conf t

7. EIGRP 注入默认路由
-------------------------------------------
R1:
int f0/0
ip add 12.1.1.1 255.255.255.0
no shut
exit
int l0
ip add 11.1.1.1 255.255.255.0
no shut
exit

R2:
int f0/0
ip add 12.1.1.2 255.255.255.0
no shut
exit
int f1/0
ip add 23.1.1.2 255.255.255.0
no shut
exit
int l0
ip add 22.1.1.1 255.255.255.0
no shut
exit

R3:
int f0/0
ip add 23.1.1.3 255.255.255.0
no shut
exit
int l0
ip add 33.1.1.1 255.255.255.0
no shut
exit

R1:
router eigrp 1
no auto-summary
network 12.1.1.0 0.0.0.255
network 11.1.1.0 0.0.0.255
exit

R2:
router eigrp 1
no auto-summary
network 12.1.1.0 0.0.0.255
network 22.1.1.0 0.0.0.255
network 23.1.1.0 0.0.0.255
exit

R3:
router eigrp 1
no auto-summary
network 23.1.1.0 0.0.0.255
network 33.1.1.0 0.0.0.255
exit

--产生默认路由1
R2:
ip route 0.0.0.0 0.0.0.0 null 0
router eigrp 1
redistribute static
exit

R1:
end
show ip route eigrp
conf t

--产生默认路由2
R2:
ip route 0.0.0.0 0.0.0.0 null 0
router eigrp 1
network 0.0.0.0
exit

R1:
end
show ip route eigrp
conf t

--产生默认路由3
R2:
int l1
ip add 10.1.1.1 255.0.0.0
exit
router eigrp 1
network 10.1.1.0 0.0.0.255
exit
ip default-network 10.0.0.0

R1:
end
show ip route eigrp
conf t

--产生默认路由4
R2:
int l1
ip add 10.1.1.1 255.0.0.0
exit
router eigrp 1
network 10.1.1.0 0.0.0.255
exit

int f0/0
ip summary-address eigrp 1 0.0.0.0 0.0.0.0

R1:
end
show ip route eigrp
conf t

8. EIGRP等价负载均衡
---------------------------------------------------------------------------------------

--------------------------------------------------------------------------------------------
R1:
int f0/0
ip add 12.1.1.1 255.255.255.0
no shut
exit
int f1/0
ip add 14.1.1.1 255.255.255.0
no shut
exit

R2:
int f0/0
ip add 12.1.1.2 255.255.255.0
no shut
exit
int f1/0
ip add 23.1.1.2 255.255.255.0
no shut
exit

R3:
int f0/0
ip add 23.1.1.3 255.255.255.0
no shut
exit
int l0
ip add 33.1.1.1 255.255.255.0
no shut
exit
int f1/0
ip add 34.1.1.3 255.255.255.0
no shut
exit

R4:
int f0/0
ip add 14.1.1.4 255.255.255.0
no shut
exit
int f1/0
ip add 34.1.1.4 255.255.255.0
no shut
exit

R1:
router eigrp 1
no auto-summary
network 12.1.1.0 0.0.0.255
network 14.1.1.0 0.0.0.255
exit

R2:
router eigrp 1
no auto-summary
network 12.1.1.0 0.0.0.255
network 23.1.1.0 0.0.0.255
exit

R3:
router eigrp 1
no auto-summary
network 23.1.1.0 0.0.0.255
network 33.1.1.0 0.0.0.255
network 34.1.1.0 0.0.0.255
exit

R4:
router eigrp 1
no auto-summary
network 14.1.1.0 0.0.0.255
network 34.1.1.0 0.0.0.255
exit

9. EIGRP非等价负载均衡
-------------------------------------------
R2:
end
show int f1/0
conf t

int f1/0
delay 15
exit

R1:
end
show ip eigrp topology
conf t

router eigrp 1
variance 2
exit

10. EIGRP过滤路由
------------------------------------------------------------------------------------------

R1:
int f0/0
ip add 12.1.1.1 255.255.255.0
no shut
exit
int l0
ip add 11.1.1.1 255.255.255.0
exit
int l1
ip add 10.1.1.1 255.255.255.0
exit
int l2
ip add 100.1.1.1 255.255.255.0
exit

R2:
int f0/0
ip add 12.1.1.2 255.255.255.0
no shut
exit
int f1/0
ip add 23.1.1.2 255.255.255.0
no shut
exit
int l0
ip add 22.1.1.1 255.255.255.0
exit

R3:
int f0/0
ip add 23.1.1.3 255.255.255.0
no shut
exit
int l0
ip add 33.1.1.1 255.255.255.0
no shut
exit

R1:
router eigrp 1
no auto-summary
network 12.1.1.0 0.0.0.255
network 11.1.1.0 0.0.0.255
network 10.1.1.0 0.0.0.255
network 100.1.1.0 0.0.0.255
exit

R2:
router eigrp 1
no auto-summary
network 12.1.1.0 0.0.0.255
network 23.1.1.0 0.0.0.255
network 22.1.1.0 0.0.0.255
exit

R3:
router eigrp 1
no auto-summary
network 23.1.1.0 0.0.0.255
network 33.1.1.0 0.0.0.255
exit

R3:
access-list 10 deny 11.1.1.0
access-list 10 deny 10.1.1.0
access-list 10 permit any
router eigrp 1
distribute-list 10 in
exit

11. EIGRP帧中继环境下的水平分割
---------------------------------------------------------------------------

----------------------------------------------------------------------------------
R4:

frame-relay switch

int s0/1
encap frame-relay
frame-relay lmi-type cisco
frame-relay intf-type dce
frame-relay route 102 int s0/2 201
frame-relay route 103 int s0/3 301
no shut
exit

int s0/2
encap frame-relay
frame-relay lmi-type cisco
frame-relay intf-type dce
frame-relay route 201 int s0/1 102
no shut
exit

int s0/3
encap frame-relay
frame-relay lmi-type cisco
frame-relay intf-type dce
frame-relay route 301 int s0/1 103
no shut
exit

end
show frame-relay route
conf t

R1:
int s0/0
ip add 123.1.1.1 255.255.255.0
encap frame-relay
frame-relay lmi-type cisco
no frame-relay inverse-arp
frame-relay map ip 123.1.1.2 102 broadcast
frame-relay map ip 123.1.1.3 103 broadcast
no shut
exit
int l0
ip add 11.1.1.1 255.255.255.0
exit

R2:
int s0/0
ip add 123.1.1.2 255.255.255.0
encap frame-relay
frame-relay lmi-type cisco
no frame-relay inverse-arp
frame-relay map ip 123.1.1.1 201 broadcast
frame-relay map ip 123.1.1.3 201 broadcast
no shut
exit
int l0
ip add 22.1.1.1 255.255.255.0
exit

R3:
int s0/0
ip add 123.1.1.3 255.255.255.0
encap frame-relay
frame-relay lmi-type cisco
no frame-relay inverse-arp
frame-relay map ip 123.1.1.1 301 broadcast
frame-relay map ip 123.1.1.2 301 broadcast
no shut
exit
int l0
ip add 33.1.1.1 255.255.255.0
exit

R1:
router eigrp 1
no auto-summary
network 11.1.1.0 0.0.0.255
network 123.1.1.0 0.0.0.255
exit

R2:
router eigrp 1
no auto-summary
network 22.1.1.0 0.0.0.255
network 123.1.1.0 0.0.0.255
exit

R3:
router eigrp 1
no auto-summary
network 33.1.1.0 0.0.0.255
network 123.1.1.0 0.0.0.255
exit

R1:
int s0/0
no ip split-horizon eigrp 1
exit

12. EIGRP配置管理流量占用带宽
------------------------------------------
R2:
int s0/0
bandwidth 256
exit

R3:
int s0/0
bandwidth 64
ip bandwidth-percent eigrp 1 1000
exit

13. EIGRP stub路由器:
------------------------------------------------------------------------------------------

R1:
int f0/0
ip add 12.1.1.1 255.255.255.0
no shut
exit
int l0
ip add 11.1.1.1 255.255.255.0
no shut
exit

router eigrp 1
no auto-summary
network 12.1.1.0 0.0.0.255
network 11.1.1.0 0.0.0.255
exit

R2:
int f0/0
ip add 12.1.1.2 255.255.255.0
no shut
exit
int f1/0
ip add 23.1.1.2 255.255.255.0
no shut
exit
int l0
ip add 22.1.1.1 255.255.255.0
no shut
exit

router eigrp 1
no auto-summary
network 12.1.1.0 0.0.0.255
network 22.1.1.0 0.0.0.255
network 23.1.1.0 0.0.0.255
exit

R3:
int f0/0
ip add 23.1.1.3 255.255.255.0
no shut
exit
int l0
ip add 33.1.1.1 255.255.255.0
no shut
exit

router eigrp 1
no auto-summary
network 23.1.1.0 0.0.0.255
network 33.1.1.0 0.0.0.255
exit

--------------------------------------
R1:
end
show ip route
debug eigrp packets query
conf t
int l0
shut
exit

R2:
router eigrp 1
eigrp stub
exit

R1:
int l0
no shut
shut
exit

end
show ip route
conf t

R3:
end
show ip route
conf t

R2:
int f0/0
ip summary-add eigrp 1 33.1.0.0 255.255.0.0
exit

R1:
end
show ip route
conf t

R2:
ip route 100.1.1.0 255.255.255.0 null 0
router eigrp 1
redistribute static
eigrp stub stati
exit

R1:
end
show ip route
conf t

R2:
router eigrp 1
eigrp stub receive-only
exit

R1:
end
show ip route
conf t

CCNP路由实验(1) -- EIGRP的更多相关文章

  1. CCNP路由实验之八 路由重公布

     CCNP路由实验之八 路由重公布 在前面几个实验,已经学习了静态路由和动态路由.如今,我们要掌握怎样使它们在一个网络中融合,即路由重公布. 使用出站口作为静态路由 0 使用下一跳地址作为静态路由 ...

  2. CCNP路由实验之六 动态路由协议之IS-IS

     CCNP路由实验之六动态路由协议之IS-IS 动态路由协议能够自己主动的发现远程网络.仅仅要网络拓扑结构发生了变化.路由器就会相互交换路由信息,不仅能够自己主动获知新添加的网络.还能够在当前网络 ...

  3. CCNP路由实验之九 路由策略

     CCNP路由实验之九 路由策略 路由器在公布与接收路由信息时,可能须要实施一些策略.以便对路由信息进行过滤,比如仅仅接收或公布满足一定条件的路由信息. 一种路由协议可能须要引入其它的路由协议发现 ...

  4. CCNP路由实验之十 组播(多播)

                        CCNP路由实验之十 组播(多播) 种方法: 在交换机上配置静态的多播MAC地址到用户接口的映射 使用CGMP.执行CGMP的多播路由器能够将用户发送给自己 ...

  5. CCNP路由实验之七 动态路由之BGP

     CCNP路由实验之七 动态路由之BGP 动态路由协议能够自己主动的发现远程网络,仅仅要网络拓扑结构发生了变化,路由器就会相互交换路由信息,不仅能够自己主动获知新添加的网络,还能够在当前网络连接失 ...

  6. CCNP路由实验之十五 NAT(网络地址转换)

     CCNP路由实验之十五 NAT(网络地址转换) 众所周知,要让自己的电脑连上Internet,必须要到运营商(ISP)申请一个上网账号,依据此账号申请自己的宽频业务(拨号上网.商业固定IP等等) ...

  7. CCNP路由实验之十二 MPLS

     个.第3个数据包„„同样的操作.包含查询路由表.重写MAC地址,CRC校验等. 系列路由器.或者12000系列路由器. Netflow switching 通过一种标准的交换机制,处理了流的第一 ...

  8. CCNP路由实验(4) -- BGP

    基本配置:enableconf tno ip do loenable pass ciscoline con 0logg syncexec-t 0 0line vty 0 4pass ciscologg ...

  9. CCNP路由实验(3) -- 路由控制

    1.用distribute-list过滤路由在不同协议里的用法 在RIP里 在EIGRP里 在OSPF里 只接收奇数路由 只接收偶数路由 只接收被4整除的路由2.offset-list在不同协议里的用 ...

随机推荐

  1. C语言处理CSV文件的方法(一)

    什么是CSV文件 CSV是 Comma-separated values (逗号分隔值)的首字母缩写,它通常是以逗号且不仅限于逗号分隔各个值,我们都叫他CSV. 看下面的例子: China, Shan ...

  2. sql防注入代码

    function defend_sql($string, $force = 1) { $preg = "select|insert|and|or|update|delete|\'|\/\*| ...

  3. 移动端js插件分享

    分享几个移动端使用的插件,个人感觉挺不错的. 1. TouchSlide1.1 滑动的焦点图  http://pan.baidu.com/s/1i3J6bbB 2. iscroll.js  模拟滚动条 ...

  4. Javascript中的attribute和property分析

    attribute和property这两个单词,都有属性的意思,attribute有属性.特质的意思,property则有性质,性能的意思. 首先需要明确的是,在规范中,读取和设置attribute的 ...

  5. STRUTS2核心控制器:FilterDispatcher

    1. 在 struts1.x 系列中 , 所有的请求是通过一个 servlet(ActionServlet) 来管理控制的 , 在 Struts2.X 而是经过一个 Filter 来处理请求的. St ...

  6. php的模板引擎

    设计一个交互式的网站,我们需要关注两个主要的问题:分别是图形用户界面和业务逻辑.例如,一个标准的web开发小组由两三个美工和三个程序员组成,则设计流程是:美工设计者制作了项目的网站的界面模板,然后把它 ...

  7. Cocos2d-x 安装教程for mac(Xcode)

    cocos2d v3.x 版本出来后,从配置安装到创建项目都是命令行,下面简单说一下. 1. 下载地址    http://cn.cocos2d-x.org/download/ (虽然没有标明 for ...

  8. 标准C编程-笔记全集

    C语言的基本概念 编写一个简单的C程序,后缀名保存为c(本次文件名为a.c) gcc:对c程序进行编译和连接:gcc a.c ./a.out:运行程序,输出程序的结果:其中a是c程序的文件名 说明:其 ...

  9. SD和SDHC和SDXC卡的区别是什么

    SD卡,SDHC卡,SDXC卡区别在规格不一样,SD卡最大支持2GB容量,SDHC 最大支持32GB容量,SDXC 最大支持2TB(2048GB)容量,支持SDXC卡的数码设备是兼容支持SD卡与SDH ...

  10. Android XListView实现原理讲解及分析

    XListview是一个非常受欢迎的下拉刷新控件,但是已经停止维护了.之前写过一篇XListview的使用介绍,用起来非常简单,这两天放假无聊,研究了下XListview的实现原理,学到了很多,今天分 ...