CCNP路由实验(1) -- EIGRP
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的更多相关文章
- CCNP路由实验之八 路由重公布
CCNP路由实验之八 路由重公布 在前面几个实验,已经学习了静态路由和动态路由.如今,我们要掌握怎样使它们在一个网络中融合,即路由重公布. 使用出站口作为静态路由 0 使用下一跳地址作为静态路由 ...
- CCNP路由实验之六 动态路由协议之IS-IS
CCNP路由实验之六动态路由协议之IS-IS 动态路由协议能够自己主动的发现远程网络.仅仅要网络拓扑结构发生了变化.路由器就会相互交换路由信息,不仅能够自己主动获知新添加的网络.还能够在当前网络 ...
- CCNP路由实验之九 路由策略
CCNP路由实验之九 路由策略 路由器在公布与接收路由信息时,可能须要实施一些策略.以便对路由信息进行过滤,比如仅仅接收或公布满足一定条件的路由信息. 一种路由协议可能须要引入其它的路由协议发现 ...
- CCNP路由实验之十 组播(多播)
CCNP路由实验之十 组播(多播) 种方法: 在交换机上配置静态的多播MAC地址到用户接口的映射 使用CGMP.执行CGMP的多播路由器能够将用户发送给自己 ...
- CCNP路由实验之七 动态路由之BGP
CCNP路由实验之七 动态路由之BGP 动态路由协议能够自己主动的发现远程网络,仅仅要网络拓扑结构发生了变化,路由器就会相互交换路由信息,不仅能够自己主动获知新添加的网络,还能够在当前网络连接失 ...
- CCNP路由实验之十五 NAT(网络地址转换)
CCNP路由实验之十五 NAT(网络地址转换) 众所周知,要让自己的电脑连上Internet,必须要到运营商(ISP)申请一个上网账号,依据此账号申请自己的宽频业务(拨号上网.商业固定IP等等) ...
- CCNP路由实验之十二 MPLS
个.第3个数据包„„同样的操作.包含查询路由表.重写MAC地址,CRC校验等. 系列路由器.或者12000系列路由器. Netflow switching 通过一种标准的交换机制,处理了流的第一 ...
- CCNP路由实验(4) -- BGP
基本配置:enableconf tno ip do loenable pass ciscoline con 0logg syncexec-t 0 0line vty 0 4pass ciscologg ...
- CCNP路由实验(3) -- 路由控制
1.用distribute-list过滤路由在不同协议里的用法 在RIP里 在EIGRP里 在OSPF里 只接收奇数路由 只接收偶数路由 只接收被4整除的路由2.offset-list在不同协议里的用 ...
随机推荐
- U3D学习使用笔记(一)
1.在使用NGUI控件时出现两种回调函数,一种是直接给回调函数赋值,一种是使用EventDelegate. UISlider.onDragFinished = functionName; EventD ...
- Java学习之Java中常用对象
java的几种对象(PO,VO,DAO,BO,POJO)解释 一.PO:persistant object 持久对象,可以看成是与数据库中的表相映射的java对象.最简单的PO就是对应数据库中 ...
- Linux学习之more命令
more命令,功能类似 cat ,cat命令是整个文件的内容从上到下显示在屏幕上. more会以一页一页的显示方便使用者逐页阅读,而最基本的指令就是按空白键(space)就往下一页显示,按 b 键就会 ...
- 学习iOS开发的前言
一.什么是iOS 要想学习iOS开发,首先要搞清楚什么是iOS.iOS其实是一款操作系统,就像平时我们在电脑上用的XP.Win7,都是操作系统. 那什么是操作系统呢?操作系统其实是一种软件,是直接运行 ...
- Unicode字符列表
注:除非有特别指明,否则以下符号皆属“半角”而非“全角”. 代码 显示 描述 U+0020 空格 U+0021 ! 叹号 U+0022 " 双引号 U+0023 # 井号 U+0024 $ ...
- 保存网页为图片——滚动截取IE(WebBrowse)
对IE进行编程一直觉得是相当可怕的事情,里面的接口.函数.事件之多,解释之乱,需要了解的方方面面知识之博,让我仿佛看到了微软就是造物主,因为它已成功制造了这样的混沌,弄就了宇宙的初始状态…… 近来做个 ...
- QSqlDatabase的进一步封装(多线程支持+更加简单的操作)——同时支持MySQL, SQL Server和Sqlite
开发背景: 1.直接用QSqlDatabase我觉得太麻烦了: 2.对于某些数据库,多个线程同时使用一个QSqlDatabase的时候会崩溃: 3.这段时间没什么干货放出来觉得浑身不舒服,就想写一个. ...
- 【Windows 8 Store App】学习二:ResourceLoader
原文 http://www.cnblogs.com/java-koma/archive/2013/05/22/3093308.html 在项目开发时,通常有一些资源信息需要存储起来,比如请求的URL, ...
- jquery绑定事件,解绑事件
unbind([type],[data]) 是 bind()的反向操作,从每一个匹配的元素中删除绑定的事件.如果没有参数,则删除所有绑定的事件.你可以将你用bind()注册的自定义事件取消绑定.如果提 ...
- 7.15 css与js 选择奇偶子元素的区别
js: 选取偶数位置的 <tr> 元素 $("tr:even") 选取奇数位置的 <tr> 元素 $("tr:odd") css 选取偶 ...