CCNP:在帧中继上运行EIGRP
- 格式:doc
- 大小:47.50 KB
- 文档页数:7
CCNP路由实验---1、EIGRP的基本配置一、实验目的1、掌握EIGRP的基本配置。
2、掌握EIGRP的通配符掩配置方法。
3、掌握EIGRP的自动汇总特性,以及如何关闭自动汇总。
4、掌握EIGRP的手工汇总。
二、实验拓扑实验步骤:1、配置各路由器的名称、相连接口IP地址;R1(config)#int s1/1R1(config-if)#ip add 172.16.1.1 255.255.255.252R1(config-if)#no shutR1(config)#int loopback 0R1(config-if)#ip add 10.1.0.1 255.255.255.0R1(config-if)#int loopback 1R1(config-if)#ip add 10.1.1.1 255.255.255.0R1(config-if)#int loopback 2R1(config-if)#ip add 10.1.2.1 255.255.255.0R1(config-if)#int loopback 3R1(config-if)#ip add 10.1.3.1 255.255.255.0其它R2、R3类似进行配置。
配置完后用ping命令确认各路由器的直连口的互通性。
2、配置EIGRP协议,设置自治系统号为80R1:R1(config)#router eigrp 80R1(config-router)#network 172.16.0.0R2:R2(config)#router eigrp 80R2(config-router)#network 172.16.0.0R2(config-router)#network 111.111.0.0R3:R3(config)#router eigrp 80R3(config-router)#network 172.16.0.0备注:通常在路由器上配置EIGRP宣告通路网络时使用两种方法,方法1:network +主类网络号,这样可以将路由器上相关地址的接口直接加入到EIGRP 路由进程中去;方法2:使用通配符掩码进行配置,例如network X.X.X.X 0.0.0.X。
环境:三台路由器通过串行接口相连。
要求:配置R2为帧中继交换机,使R1和R3运行在帧中继网络上;在R1和R3分别启用loop0口,并且运行EIGRP路由选择协议。
步骤一、帧中继的配置fr-sw的配置:fr-sw(config)#frame-relay switching 启用帧中继交换机fr-sw(config)#interface serial0fr-sw(config-if)#clock rate 64000fr-sw(config-if)#encapsulation frame-relay 接口封装帧中继fr-sw(config-if)#frame-relay intf-type dce 类型DCEfr-sw(config-if)#frame-relay route 301 interface s1 103 指定路由fr-sw(config-if)#no shutdownfr-sw(config-if)#interface serial1fr-sw(config-if)#encapsulation frame-relayfr-sw(config-if)#clock rate 64000fr-sw(config-if)#frame-relay intf-type dcefr-sw(config-if)#frame-relay route 103 inter s0 301fr-sw(config-if)#no shutdownr1的配置:r1(config)#interface serial0r1(config-if)#encapsulation frame-relay 接口封装帧中继r1(config-if)#ip address 30.1.1.1 255.255.255.0r1(config-if)# frame-relay map ip 30.1.1.3 103 broadcast 指定静态映射r1(config-if)#no frame-relay inverse-arp 关闭逆向ARPr1(config-if)#no shutdownr3的配置:r3(config)#interface s1r3(config-if)#encapsulation frame-relayr3(config-if)#ip add 30.1.1.3 255.255.255.0r3(config-if)# frame-relay map ip 30.1.1.1 301 broadcastr3(config-if)#no frame-relay inverse-arpr3(config-if)#no shutdown步骤二、查看帧中继的状态及联通性测试r3的查看:r3#show frame-relay pvc 显示永久虚电路PVC Statistics for interface Serial1 (Frame Relay DTE)Active Inactive Deleted StaticLocal 1 0 0 0Switched 0 0 0 0Unused 0 0 0 0DLCI = 301, DLCI USAGE = LOCAL, PVC STATUS = ACTIVE, INTERFACE = Serial1r3#show interface s1 显示接口封装及状态Serial1 is up, line protocol is upHardware is HD64570Internet address is 30.1.1.3/24MTU 1500 bytes, BW 1544 Kbit, DL Y 20000 usec,reliability 255/255, txload 1/255, rxload 1/255Encapsulation FRAME-RELAY, loopback not setr3#show frame-relay map 显示映射Serial1 (up): ip 30.1.1.1 dlci 301(0x12D,0x48D0), static, broadcast,, status defined, active测试帧中继连通性:r1#ping 30.1.1.3Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 30.1.1.3, timeout is 2 seconds:!!!!!Success rate is 100 percent (5/5), round-trip min/avg/max = 60/60/60 ms步骤三、启用回环口,配置EIGRP路由r1(config)#interface loopback 0r1(config-if)#ip address 10.1.1.1 255.255.255.0r1(config-if)#r1(config-if)#`router eigrp 100 启用路由协议r1(config-router)#network 10.1.1.0 0.0.0.255 发布直联网段r1(config-router)#network 30.1.1.0 0.0.0.255r1(config-router)#no auto-summary 关闭自动汇总r1(config-router)#r3(config)#interface loopback 0r3(config-if)#ip address 20.1.1.1 255.255.255.0r3(config-if)#router eigrp 100r3(config-router)#network 20.1.1.0 0.0.0.255r3(config-router)#network 30.1.1.0 0.0.0.255r3(config-router)#no auto-summaryr3(config-router)#步骤四、显示学习到的路由r1#show ip routeCodes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter areaN1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGPi - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area* - candidate default, U - per-user static route, o - ODRP - periodic downloaded static routeGateway of last resort is not set20.0.0.0/24 is subnetted, 1 subnetsD 20.1.1.0 [90/2297856] via 30.1.1.3, 00:00:38, Serial010.0.0.0/24 is subnetted, 1 subnetsC 10.1.1.0 is directly connected, Loopback030.0.0.0/24 is subnetted, 1 subnetsC 30.1.1.0 is directly connected, Serial0r3#show ip routeCodes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter areaN1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGPi - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area* - candidate default, U - per-user static route, o - ODRP - periodic downloaded static routeGateway of last resort is not set20.0.0.0/24 is subnetted, 1 subnetsC 20.1.1.0 is directly connected, Loopback010.0.0.0/24 is subnetted, 1 subnetsD 10.1.1.0 [90/2297856] via 30.1.1.1, 00:00:00, Serial130.0.0.0/24 is subnetted, 1 subnetsC 30.1.1.0 is directly connected, Serial1步骤五、显示当前配置fr-sw的当前配置:fr-sw#show running-confighostname fr-sw!no ip domain-lookup!frame-relay switching!interface Serial0no ip addressencapsulation frame-relayclockrate 64000frame-relay intf-type dceframe-relay route 301 interface Serial1 103!interface Serial1no ip addressencapsulation frame-relayclockrate 64000frame-relay intf-type dceframe-relay route 103 interface Serial0 301!endr1的当前配置:r1#show running-config!hostname r1!no ip domain-lookup!interface Loopback0ip address 10.1.1.1 255.255.255.0!interface Serial0ip address 30.1.1.1 255.255.255.0 encapsulation frame-relayframe-relay map ip 30.1.1.3 103 broadcast no frame-relay inverse-arp!router eigrp 100network 10.1.1.0 0.0.0.255network 30.1.1.0 0.0.0.255no auto-summaryendr3的当前配置:r3#show running-confighostname r3!interface Loopback0ip address 20.1.1.1 255.255.255.0!interface Serial1ip address 30.1.1.3 255.255.255.0 encapsulation frame-relayframe-relay map ip 30.1.1.1 301 broadcast no frame-relay inverse-arp!router eigrp 100network 20.1.1.0 0.0.0.255network 30.1.1.0 0.0.0.255no auto-summary!end。
路由协议分类路由协议可分为有类路由协议和无类路由协议:有类路由协议:即路由器发送路由更新时不带掩码,RIPv1,IGRP无类路由协议:即路由器发送路由更新时带子网掩码,RIPv2,EIGRP,OSPF路由协议可分为距离矢量型和链路状态型:链路状态型:OSPF1.更新时以组播或单播形式发送2.发送路由更新包给邻居时不发送整张路由表,只发送链路状态(接口和IP段)3.链路状态有3张表,按顺序建立以下3个表:邻居表-->拓扑表-->路由表4.增量更新(触发更新)5.有区域划分距离矢量:RIP,IGRP,EIGRP(增强IGRP)1.更新时以广播形式发送2.EIGRP被称为高级距离矢量路由协议,因为它不具有区域划分的概念路由协议可分为外部路由协议和内部路由协议:外部路由协议:BGP内部路由协议:RIP,EIGRP,OSPFEIGRP(一)EIGRP具有以下特征:1.是一个高级距离矢量路由协议2.快速收敛(三张表,EIGRP自身算法DUAL)3.部分更新(或触发更新)4.支持VLSM(可变长子网掩码),不连续子网5.支持多种网络层协议(IP,IPX,APPLE TALK)6.支持复杂网络拓扑7.以组播或单播进行更新,组播地址是224.0.0.108.支持手工汇总,默认情况下路由表将学到的路由自动汇总到主类网络(A B C等)9.百分百无环路10.支持等价和非等价负载均衡(二)EIGRP关键技术1.使用hello包进行邻居的发现与保持,hello包的目标地址是224.0.0.102.使用RTP协议:用来保证EIGRP数据可靠并且有序传输3.DUAL算法:用来计算最优路由的算法4.PDMS:用来支持不同网络层协议(三)EIGRP关键术语(DUAL算法中)1.AD(advertise distance):下一跳路由器到目标网络的cost值2.FD(Feasible distance):指本路由器到目标网络的cost值3.successor(主路由器):指到目标网络的下一跳路由器4.feasible successor(备份路由器):指到目标网路备份路由器(必须满足FC条件才存在,否则只有主路由)5.FC(feasible condition可行性条件):条件是feasible successor的AD必须小于successor 的FD,该技术用来避免环路(四)EIGRP的五种包:1.hello包,用于保持与建立邻居关系的包,包的目标地址224.0.0.10,默认情况下EIGRP 是每隔5s发送一次hello包,在帧中继网络路上,每60s发送一次hello包2.UPDATE更新包,包的目标地址也是224.0.0.10或者指定的单播地址3.QUERY查询包,包的目标地址可以是224.0.0.10或者指定的单播地址4.Reply答复包,包的目标地址是单播地址5.ACK,确认包,包的目标地址是单播地址,UPDATE包,QUERY包,REPLY包,这三种包需要对方回复ACK包* hold time 为hello包发送时间的3倍,即15s,因此正常状态下hold time在10~14s 之间(五)EIGRP的metric值(eigrp用32bit表示metric,igrp只有24bit,eigrp和igrp共存时,只需要igrp metric乘以256即可换算成eigrp的metric值)*在EIGRP中,metric=cost=FDmetric=bandwidth(slowest link最小的)+delay(sum of delays延迟之和)metric=(10000000/链路上最小带宽+(sum)delay/10)*256计算过程中10^7/带宽应把小数位去掉,带宽单位为Kbit,时延单位为usEIGRP计算metric会用到的几个值:1.bandwith(带宽)k1=12.可靠性k2=03.delay(延迟)k3=14.接口负载k4=05.MTU k5=0(六)关于EIGRP的汇总知识点1.EIGRP默认是打开自动汇总的,只是在主类边界进行汇总,自动汇总后会产生一条汇总路由指向NULL0空接口(是为了避免路由环路)2.自动汇总只会对自己的直连网络进行汇总,不会对拓扑表里的条目进行汇总,而手工汇总可以对拓扑表里的条目进行汇总。
ITAA LEVEL 2:(路由部分)1:EIGRP的邻居发现和恢复机制。
只支持 MD5 加密方式.:邻居的形成必须是在同一个线路上不能是跨过一台路由器,并且两端都得起EIGRP协议,且协议的内容必须得一直才能建立起邻居。
邻居表里有接口和对应哪个路由器两个内容。
拓扑表里含有所有满足可行条件的路由条目包括AD和FD。
把最优路径放入路由表里了。
2:可靠传输协议(RTP)。
一、RTP-EIGRP的可靠传输协议RTP 负责 EIGRP packet 的按顺序(可靠)的发送和接收,这个可靠的保障是通过Cisco 私有的一个算法,reliable multicast 实现的,使用组播地址 224.0.0.10,每个邻居接收到这个可靠的组播包的时候就会以一个 unicast 作为确认按顺序的发送是通过 packet 里的 2 个序列号实现的,每个packet 都包含发送方分配的 1 个序列号,发送方每发送 1 个packet,这个序列号就递增 1.另外,发送方也会把最近从目标路由器接收到的 packet的序列号放在这个要发送的 packet 里,在某些情况下,RTP 也可以使用无需确认的不可靠的发送,并且使用这种不可靠发送的 packet 中不包含序列号 .二、如果 packet 通过可靠的组播方式发送出去,并且没有收到邻居反馈的 ACK 包,那么这个 packet 会再次以 unicast 的方式发送给那个未响应的邻居,虽然经过 16 次的重传 unicast,仍然没有收到 ACK 包的话,那么这个邻居就宣告为无效。
在从组播切换到 unicast 之前,等待 ACK 包的时间可以由multicast flow timer(MFT)指定,后续的重新传 unicast 的发送间隔可以由 RTO(retransmission timeout)指定.每个邻居的MFT 和 RTO 都可以通过SRTT(smooth round-trip time)来计算,SRTT 的单位是(毫秒)ms,用来衡量路由器从发送 EIGRP packet 到某个邻居并接收到这个邻居的 ACK 包所花费的平均时间。
EIGRP实验报告MADE BY TEN (温馨提示:次实验是用模拟器做的,用的是以前的那个拓扑,但是内容差不多,若有错误,谢谢指点。
)实验目的:掌握eigrp的基本配置。
理解eigrp的特性。
会对eigrp网络进行排错。
实验要求:1.内网起eigrp 1 要求全网互通。
IP地址规划见拓扑图。
2.帧中继网络要求高的安全性(eigrp认证,)。
关闭fr反向ARP.3..R1上起三个环回口,ip地址如下,172.16.44.17/28 172.16.44.35/28172.16.44.52/28 并加入eigrp中,使R5只能看见一条汇总路由。
4.R2和R3之间实现负载均衡,5.要求内网能够快速访问外网。
R4向内网通告一条默认路由。
(运用IP default-network 实现)6.在上一步下,把R2的F0/0口shutdown看R3都收到了哪些包实验拓扑:实验步骤:1.根据要求将基本配置配好,串口注意时钟,配完ip后注意检查直连通不通。
R1的ip地址就是*.*.*.1 R2就是*.*.*.2 R3以后就不说了……2. 配置帧中继交换机的路由器。
FR-SW(config)#frame-relay switching//把该路由器当成帧中继交换机//FR-SW(config)#interface s0/0FR-SW(config-if)#no shutFR-SW(config-if)#encapsulation frame-relay //该接口封装帧中继FR-SW(config-if)#frame-relay lmi-type cisco//配置LMI的类型,默认是cisco//FR-SW(config-if)#frame-relay intf-type dce//将帧中继接口配为DCE,与接口无关。
FR-SW(config-if)#clock rate 64000 //记住配时钟//FR-SW(config-if)#frame-relay route 102 interface s0/1 201FR-SW(config-if)#frame-relay route 103 interface s0/2 301//配置帧中继交换表//FR-SW(config)#int s0/1FR-SW(config-if)#no shutFR-SW(config-if)#encapsulation frame-relayFR-SW(config-if)#frame-relay lmi-type ciscoFR-SW(config-if)#frame-relay intf-type dceFR-SW(config-if)#clock rate 64000FR-SW(config-if)#frame-relay route 201 interface s0/0 102FR-SW(config)#int s0/2FR-SW(config-if)#no shutFR-SW(config-if)#encapsulation frame-relayFR-SW(config-if)#frame-relay lmi-type ciscoFR-SW(config-if)#frame-relay intf-type dceFR-SW(config-if)#clock rate 64000FR-SW(config-if)#frame-relay route 301 interface s0/0 103//到此帧中继交换机配置完成,以后就无需再动了。
EIGRP综合实验2配置要点●帧中继交换机以及PVC的配置●帧中继多点子接口配置●帧中继点对点子接口配置●EIGRP基本配置(包括静态邻居的配置)●NTP配置●EIGRP认证配置实验拓扑配置概述●在FRSW上配置帧中继交换机,PVC的设计如下:⏹R41--S1/0--S1/0.12------412------S1/0--FRSW--S1/1------421------S1/0--R42;⏹R41--S1/0--S1/0.12------415------S1/0--FRSW--S1/3------451------S1/0--R45;⏹R41--S1/0--S1/0.14------414------S1/0--FRSW--S1/2------441------S1/0--R44;●各站点的IP地址设计如下:⏹R41--S1/0--S1/0.12--172.14.12.41/24------172.14.12.42/24--S1/0--R42;⏹------172.14.12.45/24--S1/0--R45;⏹R41--S1/0--S1/0.14--172.14.14.41/24------172.14.14.44/24--S1/0--R44;●EIGRP的基本配置,包括静态邻居的配置;●NTP的配置:⏹把R41配置为NTP的服务器;⏹把R42、R45和R44配置为NTP的客户端●以R41为中心与其他各个站点(R42、R45和R44)配置EIGRP认证。
FRSW3(config-if)#frame intf-type dceFRSW3(config-if)#frame route 441 int s 1/0 414 FRSW3(config-if)#no shFRSW3(config-if)#^ZFRSW3#配完之后看看接口继续点对点子接口的配置R41(config)#int s 1/0.14 ?multipoint Treat as a multipoint link point-to-point Treat as a point-to-point linkR41(config)#int s 1/0.14 point-to-pointR41(config-subif)#ip add 172.14.14.41 255.255.255.0 R41(config-subif)#no shR41(config-subif)#frame-relay interface-dlci 414R41(config-fr-dlci)#no shR41(config-subif)#^ZR41#分支站点R42的配置看看接口R45#sh ip int briefInterface IP-Address OK? Method Status ProtocolEthernet0/0 192.168.45.1 YES manual up upEthernet0/1 unassigned YES unset administratively down downSerial1/0 172.14.12.45 YES manual up up //双UP啦!!Serial1/1 unassigned YES unset administratively down downSerial1/2 unassigned YES unset administratively down downSerial1/3 unassigned YES unset administratively down downR45#R41#ping 172.14.12.42 //ping R42!!!!!R41#ping 172.14.12.45 //ping R45!!!!!R41#ping 172.14.14.44 //ping R44!!!!!在分支站点上测试R44#ping 172.14.14.41 //R44到R41!!!!!R42#ping 172.14.12.41 //R42到R41 !!!!!R42#ping 172.14.12.45 //R42到R45 ….. //不通!!!R45#ping 172.14.12.41 //R45到R41 !!!!!R45#ping 172.14.12.42 //R45到R42 ..... //不通!!!在R45(config-router)#^ZR44(config)#router eigrp 100R44(config-router)#no autoR44(config-router)#pass e 0/0R44(config-router)#net 192.168.44.0R44(config-router)#net 172.14.14.0 0.0.0.255 R44(config-router)#^Z在R41上看看路由表OMG!还是C!!!看看邻居表R44#sh ip eigrp neiIP-EIGRP neighbors for process 100R44#根本就没有邻居!在看看R42的路由表R42#sh ip routeGateway of last resort is not setC 192.168.42.0/24 is directly connected, Ethernet0/0172.14.0.0/24 is subnetted, 1 subnetsC 172.14.12.0 is directly connected, Serial1/0R42#配置完静态邻居之后,再到R44上看看邻居表R44#sh ip eigrp neiIP-EIGRP neighbors for process 100R44#还是没有邻居!一定是哪里错啦!在R44上产看运行配置文件R44#sh run!hostname R44终于正常啦!NTP的配置在R41上看看系统时间R41#sh clock*09:23:21.363 UTC Thu Aug 18 2011R41#时间不对!我们来修改系统时间,还记得学CCNA时候的clock set命令吗?并且把R41配置为NTP服务器。
CCNP 实验一、帧中继实验:上面为逻辑图以上为物理图,逻辑图中的FR FR2 实际上可以是一个设备,所有的设备s1/2口都连接在帧中继交换机上,当不同的接口连接到不同的网段,就形成了逻辑图的部署样式。
no arp frame 和no frame-relay inverse-arp 的区别在帧中继上,ARP指应答一个IP映射的请求,而Inverse-ARP指发送一个IP映射的请求。
犹如Echo & Echo-reply,一个是被动的,一个是主动的。
你如果把ARP关闭了,那么当有需要请求IP映射时,路由器仍然会发出一个请求,但当他得到一个请求时,则不会应答。
反之,你若把inverse-ARP关闭,则没法发送映射请求,需要a、建立静态MAP b、建立点到点子接口或frame-relay interface DCCI。
如果2者都关闭,则相当于即不发送请求,也不会有应答R1 R2 R3 处于10.1.1.0/24网段,使用帧中继线路连接,建立全互连模型(full-mash结构)R1 R4处于14.1.1.0/24网段,使用帧中继线路连接R2 R3 R5 位于50.1.1.0/24网段,使用帧中继线路连接全网使用EIGRP基本配置:根据题目的要求,R1 连接R2和R3,全互连,则需要在R1 R2 R3配置多点子接口R1 连接R4是唯一一条线路,可以使用点到点子接口,也可以使用多点子接口R2 R3 同时连接R1 R5,可以采用多点子接口的方法。
在帧中继中,使用RIP 或者EIGRP时物理接口的水平分割默认关闭,是不生效的而多点子接口的水平分割默认开启,是生效的,而点到点子接口是不受水平分割影响的。
R1配置:Router(config)#line console 0Router(config-line)#exec-timeout 0 0Router(config-line)#logging synchronousRouter(config-line)#exitRouter(config)#no ip do loRouter(config)#ho R1R1(config)#interface loopback 0R1(config-if)#ip address 1.1.1.1 255.255.255.255R1(config-if)#no shutdownR1(config-if)#exitR1(config)#interface s1/2 // 要使用子接口,先设置物理接口R1(config-if)#encapsulation frame-relay //为接口进行帧中继封装R1(config-if)#no frame-relay inverse-arp //关闭帧中继逆向ARPR1(config-if)#no arp frame-relay //关闭ARPR1(config-if)#no shutdownR1(config-if)#exitR1(config)#interface s1/2.123 multipoint //这里R1对应R2、R3全互连,因此开启多点子接口特性R1(config-subif)#no frame-relay inverse-arpR1(config-subif)#no arp frame-relayR1(config-subif)#ip address 10.1.1.1 255.255.255.0R1(config-subif)#frame-relay map ip 10.1.1.2 102 broadcast //配置R1 到R2的映射R1(config-subif)#frame-relay map ip 10.1.1.3 103 broadcast //配置R1 到R3的映射R1(config-subif)#no shutdownR1(config-subif)#exitR1(config)#interface s1/2.4 point-to-point //R1到R4是唯一的,可以开启点到点子接口R1(config-subif)#no frame-relay inverse-arpR1(config-subif)#no arp frame-relayR1(config-subif)#ip address 14.1.1.1 255.255.255.0R1(config-subif)#frame-relay interface-dlci 104 //为点到点接口设置本地DLCIR1(config-fr-dlci)#exitR1(config-subif)#no shutdownR1(config-subif)#exitR2配置:Router>enableRouter(config)# line console 0Router(config-line)# exec-timeout 0 0Router(config-line)# logging synchronousRouter(config-line)# exitRouter(config)# no ip do loRouter(config)# ho R2R2(config)#interface loopback 0R2(config-if)#ip address 2.2.2.2 255.255.255.25R2(config-if)#no shutdownR2(config-if)#exitR2(config)#interface s1/2R2(config-if)#encapsulation frame-relayR2(config-if)#no frame-relay inverse-arpR2(config-if)#no arp frame-relayR2(config-if)#no shutdownR2(config-if)#exitR2(config)#interface s1/2.123 multipointR2(config-subif)#no frame-relay inverse-arpR2(config-subif)#no arp frame-relayR2(config-subif)#ip address 10.1.1.2 255.255.255.0R2(config-subif)#frame-relay map ip 10.1.1.1 201 broadcast //映射的书写一定是目标的IP本地的DLCIR2(config-subif)#frame-relay map ip 10.1.1.3 203 broadcastR2(config-subif)#no shutdownR2(config-subif)#exitR2(config)#interface s1/2.235 multipointR2(config-subif)#no frame-relay inverse-arpR2(config-subif)#no arp frame-relayR2(config-subif)#ip address 50.1.1.2 255.255.255.0R2(config-subif)#frame-relay map ip 50.1.1.5 205 broadcastR2(config-subif)#frame-relay map ip 50.1.1.3 205 broadcastR2(config-subif)#no shutdownR2(config-subif)#exitR3配置:Router>enableRouter#config terminalRouter(config)# line console 0Router(config-line)# exec-timeout 0 0Router(config-line)# logging synchronousRouter(config-line)# exitRouter(config)# no ip do loRouter(config)# ho R3R3(config)#interface lo0R3(config-if)#ip address 3.3.3.3 255.255.255.255R3(config-if)#no shutdownR3(config-if)#exitR3(config)#interface s1/2R3(config-if)#encapsulation frame-relayR3(config-if)#no frame-relay inverse-arpR3(config-if)#no arp frame-relayR3(config-if)#no shutdownR3(config-if)#exitR3(config)#interface s1/2.123 multipointR3(config-subif)#no frame-relay inverse-arpR3(config-subif)#no arp frame-relayR3(config-subif)#ip address 10.1.1.3 255.255.255.0R3(config-subif)#frame-relay map ip 10.1.1.1 301 broadcastR3(config-subif)#frame-relay map ip 10.1.1.2 302 broadcastR3(config-subif)#no shutdownR3(config-subif)#exitR3(config)#interface s1/2.235 multipointR3(config-subif)#no frame-relay inverse-arpR3(config-subif)#no arp frame-relayR3(config-subif)#ip address 50.1.1.3 255.255.255.0R3(config-subif)#frame-relay map ip 50.1.1.5 305 broadcastR3(config-subif)#frame-relay map ip 50.1.1.2 305 broadcastR3(config-subif)#no shutdownR3(config-subif)#exitR4配置:Router>enableRouter#config terEnter configuration commands, one per line. End with CNTL/Z.Router(config)# line console 0Router(config-line)# exec-timeout 0 0Router(config-line)# logging synchronousRouter(config-line)# exitRouter(config)# no ip do loRouter(config)# ho R4R4(config)#interface lo0R4(config-if)#ip address 4.4.4.4 255.255.255.255R4(config-if)#no shutdownR4(config-if)#exitR4(config)#interface s1/2R4(config-if)#encapsulation frame-relayR4(config-if)#no frame-relay inverse-arpR4(config-if)#no arp frame-relayR4(config-if)#ip address 14.1.1.4 255.255.255.0R4(config-if)#frame-relay map ip 14.1.1.1 401 broadcastR4(config-if)#no shutdownR4(config-if)#exitR4(config)#interface s1/1R4(config-if)#ip address 45.1.1.4 255.255.255.0R4(config-if)#no shutdownR4(config-if)#exitR5配置:Router>enableRouter#config terminalEnter configuration commands, one per line. End with CNTL/Z. Router(config)# line console 0Router(config-line)# exec-timeout 0 0Router(config-line)# logging synchronousRouter(config-line)# exitRouter(config)# no ip do loRouter(config)# ho R5R5(config)#interface lo0R5(config-if)#ip address 5.5.5.5 255.255.255.255R5(config-if)#no shutdownR5(config-if)#exitR5(config)#interface s1/2R5(config-if)#encapsulation frame-relayR5(config-if)#no frame-relay inverse-arpR5(config-if)#no arp frame-relayR5(config-if)#ip address 50.1.1.5 255.255.255.0R5(config-if)#frame-relay map ip 50.1.1.2 502 broadcast R5(config-if)#frame-relay map ip 50.1.1.3 503 broadcast R5(config-if)#no shutdownR5(config-if)#exitR5(config)#interface s1/0R5(config-if)#ip address 45.1.1.5 255.255.255.0R5(config-if)#no shutdownR5(config-if)#exit配置路由协议,并注意关闭EIGRP的水平分割R1配置:R1(config)#router eigrp 100R1(config-router)#no auto-summaryR1(config-router)#network 1.1.1.1 0.0.0.0R1(config-router)#network 10.1.1.0 0.0.0.255R1(config-router)#network 14.1.1.0 0.0.0.255R1(config-router)#exitR1(config)#interface s1/2R1(config-if)#no ip split-horizonR1(config-if)#no ip split-horizon eigrp 100R1(config-if)#exitR2配置:R2(config)#router eigrp 100R2(config-router)#no auto-summaryR2(config-router)#network 2.2.2.2 0.0.0.0R2(config-router)#network 10.1.1.0 0.0.0.255R2(config-router)#network 50.1.1.0 0.0.0.255R2(config-router)#exitR2(config)#interface s1/2R2(config-if)#no ip split-horizonR2(config-if)#no ip split-horizon eigrp 100R2(config-if)#exitR3配置:R3(config)#router eigrp 100R3(config-router)#no auto-summaryR3(config-router)#network 3.3.3.3 0.0.0.0R3(config-router)#network 10.1.1.0 0.0.0.255R3(config-router)#network 50.1.1.0 0.0.0.255R3(config-router)#exitR3(config)#interface s1/2R3(config-if)#no ip split-horizonR3(config-if)#no ip split-horizon eigrp 100R3(config-if)#exitR4配置:R4(config)#router eigrp 100R4(config-router)#no auto-summaryR4(config-router)#network 4.4.4.4 0.0.0.0R4(config-router)# network 45.1.1.0 0.0.0.255R4(config-router)#network 14.1.1.0 0.0.0.255R4(config-router)#exitR5配置:R5(config)#router eigrp 100R5(config-router)#no auto-summaryR5(config-router)#network 5.5.5.5 0.0.0.0R5(config-router)#network 50.1.1.0 0.0.0.255R5(config-router)#network 45.1.1.0 0.0.0.255R5(config-router)#exit进行检查:R1 配置:R1#sho frame-relay mapSerial1/2.123 (up): ip 10.1.1.2 dlci 102(0x66,0x1860), static, //这条映射是手工书写的broadcast,CISCO, status defined, activeSerial1/2.123 (up): ip 10.1.1.3 dlci 103(0x67,0x1870), static, //目标IP为10.1.1.3 本地DLCI 103 broadcast, //开启了伪广播特性CISCO, status defined, active //vc的状态现在是正常的Serial1/2.4 (up): point-to-point dlci, dlci 104(0x68,0x1880), broadcast //这是个点到点子接口status defined, activeR1#sho ip eigrp neighborsIP-EIGRP neighbors for process 100H Address Interface Hold Uptime SRTT RTO Q Seq(sec) (ms) Cnt Num 2 14.1.1.4 Se1/2.4 173 00:08:37 53 318 0 91 10.1.1.3 Se1/2.123 129 00:10:03 43 258 0 100 10.1.1.2 Se1/2.123 173 00:11:17 49 294 0 9R1#sho ip routeCodes: C - connected, S - static, R - RIP, M - mobile, B - BGPD - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter areaN1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2E1 - OSPF external type 1, E2 - OSPF external type 2i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2ia - IS-IS inter area, * - candidate default, U - per-user static routeo - ODR, P - periodic downloaded static routeGateway of last resort is not set1.0.0.0/32 is subnetted, 1 subnetsC 1.1.1.1 is directly connected, Loopback050.0.0.0/24 is subnetted, 1 subnetsD 50.1.1.0 [90/2681856] via 10.1.1.3, 00:00:55, Serial1/2.123[90/2681856] via 10.1.1.2, 00:00:55, Serial1/2.1232.0.0.0/32 is subnetted, 1 subnetsD 2.2.2.2 [90/2297856] via 10.1.1.2, 00:00:55, Serial1/2.1233.0.0.0/32 is subnetted, 1 subnetsD 3.3.3.3 [90/2297856] via 10.1.1.3, 00:00:55, Serial1/2.1234.0.0.0/32 is subnetted, 1 subnetsD 4.4.4.4 [90/2297856] via 14.1.1.4, 00:00:55, Serial1/2.45.0.0.0/32 is subnetted, 1 subnetsD 5.5.5.5 [90/2809856] via 10.1.1.3, 00:00:55, Serial1/2.123[90/2809856] via 10.1.1.2, 00:00:55, Serial1/2.123[90/2809856] via 14.1.1.4, 00:00:55, Serial1/2.410.0.0.0/24 is subnetted, 1 subnetsC 10.1.1.0 is directly connected, Serial1/2.12314.0.0.0/24 is subnetted, 1 subnetsC 14.1.1.0 is directly connected, Serial1/2.445.0.0.0/24 is subnetted, 1 subnetsD 45.1.1.0 [90/2681856] via 14.1.1.4, 00:00:55, Serial1/2.4R1#R2配置:R2#sho frame-relay mapSerial1/2.123 (up): ip 10.1.1.1 dlci 201(0xC9,0x3090), static,broadcast,CISCO, status defined, activeSerial1/2.123 (up): ip 10.1.1.3 dlci 203(0xCB,0x30B0), static,broadcast,CISCO, status defined, activeSerial1/2.235 (up): ip 50.1.1.3 dlci 205(0xCD,0x30D0), static,broadcast,CISCO, status defined, activeSerial1/2.235 (up): ip 50.1.1.5 dlci 205(0xCD,0x30D0), static,broadcast,CISCO, status defined, activeR2#R2#sho ip eigrp neighborsIP-EIGRP neighbors for process 100H Address Interface Hold Uptime SRTT RTO Q Seq(sec) (ms) Cnt Num 2 50.1.1.5 Se1/2.235 157 00:08:27 67 402 0 71 10.1.1.3 Se1/2.123 145 00:10:43 42 252 0 100 10.1.1.1 Se1/2.123 144 00:11:39 41 246 0 13R2#R2#sho ip rR2#sho ip routeCodes: C - connected, S - static, R - RIP, M - mobile, B - BGPD - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter areaN1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2E1 - OSPF external type 1, E2 - OSPF external type 2i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2ia - IS-IS inter area, * - candidate default, U - per-user static routeo - ODR, P - periodic downloaded static routeGateway of last resort is not set1.0.0.0/32 is subnetted, 1 subnetsD 1.1.1.1 [90/2297856] via 10.1.1.1, 00:11:40, Serial1/2.12350.0.0.0/24 is subnetted, 1 subnetsC 50.1.1.0 is directly connected, Serial1/2.2352.0.0.0/32 is subnetted, 1 subnetsC 2.2.2.2 is directly connected, Loopback03.0.0.0/32 is subnetted, 1 subnetsD 3.3.3.3 [90/2297856] via 10.1.1.3, 00:10:05, Serial1/2.1234.0.0.0/32 is subnetted, 1 subnetsD 4.4.4.4 [90/2809856] via 10.1.1.1, 00:08:09, Serial1/2.123[90/2809856] via 50.1.1.5, 00:08:09, Serial1/2.2355.0.0.0/32 is subnetted, 1 subnetsD 5.5.5.5 [90/2297856] via 50.1.1.5, 00:02:13, Serial1/2.23510.0.0.0/24 is subnetted, 1 subnetsC 10.1.1.0 is directly connected, Serial1/2.12314.0.0.0/24 is subnetted, 1 subnetsD 14.1.1.0 [90/2681856] via 10.1.1.1, 00:08:09, Serial1/2.12345.0.0.0/24 is subnetted, 1 subnetsD 45.1.1.0 [90/2681856] via 50.1.1.5, 00:02:14, Serial1/2.235R2#R3 配置:R3#sho frame-relay mapSerial1/2.123 (up): ip 10.1.1.1 dlci 301(0x12D,0x48D0), static,broadcast,CISCO, status defined, activeSerial1/2.123 (up): ip 10.1.1.2 dlci 302(0x12E,0x48E0), static,broadcast,CISCO, status defined, activeSerial1/2.235 (up): ip 50.1.1.2 dlci 305(0x131,0x4C10), static,broadcast,CISCO, status defined, activeSerial1/2.235 (up): ip 50.1.1.5 dlci 305(0x131,0x4C10), static,broadcast,CISCO, status defined, activeR3#sho ip eigrp neighborsIP-EIGRP neighbors for process 100H Address Interface Hold Uptime SRTT RTO Q Seq(sec) (ms) Cnt Num 2 50.1.1.5 Se1/2.235 161 00:03:01 8 200 0 71 10.1.1.2 Se1/2.123 145 00:10:49 53 318 0 90 10.1.1.1 Se1/2.123 149 00:11:29 322 1932 0 13R3#R3#sho ip routeCodes: C - connected, S - static, R - RIP, M - mobile, B - BGPD - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter areaN1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2E1 - OSPF external type 1, E2 - OSPF external type 2i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2ia - IS-IS inter area, * - candidate default, U - per-user static routeo - ODR, P - periodic downloaded static routeGateway of last resort is not set1.0.0.0/32 is subnetted, 1 subnetsD 1.1.1.1 [90/2297856] via 10.1.1.1, 00:11:30, Serial1/2.12350.0.0.0/24 is subnetted, 1 subnetsC 50.1.1.0 is directly connected, Serial1/2.2352.0.0.0/32 is subnetted, 1 subnetsD 2.2.2.2 [90/2297856] via 10.1.1.2, 00:10:48, Serial1/2.1233.0.0.0/32 is subnetted, 1 subnetsC 3.3.3.3 is directly connected, Loopback04.0.0.0/32 is subnetted, 1 subnetsD 4.4.4.4 [90/2809856] via 10.1.1.1, 00:03:00, Serial1/2.123[90/2809856] via 50.1.1.5, 00:03:00, Serial1/2.2355.0.0.0/32 is subnetted, 1 subnetsD 5.5.5.5 [90/2297856] via 50.1.1.5, 00:03:00, Serial1/2.23510.0.0.0/24 is subnetted, 1 subnetsC 10.1.1.0 is directly connected, Serial1/2.12314.0.0.0/24 is subnetted, 1 subnetsD 14.1.1.0 [90/2681856] via 10.1.1.1, 00:03:00, Serial1/2.12345.0.0.0/24 is subnetted, 1 subnetsD 45.1.1.0 [90/2681856] via 50.1.1.5, 00:03:00, Serial1/2.235R3#R4配置:R4#sho frame-relay mapSerial1/2 (up): ip 14.1.1.1 dlci 401(0x191,0x6410), static,broadcast,CISCO, status defined, activeR4#sho ip eigrp neighborsIP-EIGRP neighbors for process 100H Address Interface Hold Uptime SRTT RTO Q Seq(sec) (ms) Cnt Num 1 45.1.1.5 Se1/1 14 00:09:50 60 360 0 80 14.1.1.1 Se1/2 12 00:10:58 542 3252 0 14R4#sho ip routeCodes: C - connected, S - static, R - RIP, M - mobile, B - BGPD - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter areaN1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2E1 - OSPF external type 1, E2 - OSPF external type 2i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2ia - IS-IS inter area, * - candidate default, U - per-user static routeo - ODR, P - periodic downloaded static routeGateway of last resort is not set1.0.0.0/32 is subnetted, 1 subnetsD 1.1.1.1 [90/2297856] via 14.1.1.1, 00:10:58, Serial1/250.0.0.0/24 is subnetted, 1 subnetsD 50.1.1.0 [90/2681856] via 45.1.1.5, 00:09:49, Serial1/12.0.0.0/32 is subnetted, 1 subnetsD 2.2.2.2 [90/2809856] via 14.1.1.1, 00:09:49, Serial1/2[90/2809856] via 45.1.1.5, 00:09:49, Serial1/13.0.0.0/32 is subnetted, 1 subnetsD 3.3.3.3 [90/2809856] via 14.1.1.1, 00:04:00, Serial1/2[90/2809856] via 45.1.1.5, 00:04:00, Serial1/14.0.0.0/32 is subnetted, 1 subnetsC 4.4.4.4 is directly connected, Loopback05.0.0.0/32 is subnetted, 1 subnetsD 5.5.5.5 [90/2297856] via 45.1.1.5, 00:09:49, Serial1/110.0.0.0/24 is subnetted, 1 subnetsD 10.1.1.0 [90/2681856] via 14.1.1.1, 00:09:49, Serial1/214.0.0.0/24 is subnetted, 1 subnetsC 14.1.1.0 is directly connected, Serial1/245.0.0.0/24 is subnetted, 1 subnetsC 45.1.1.0 is directly connected, Serial1/1R5配置:R5#sho frame-relay mapSerial1/2 (up): ip 50.1.1.2 dlci 502(0x1F6,0x7C60), static,broadcast,CISCO, status defined, activeSerial1/2 (up): ip 50.1.1.3 dlci 503(0x1F7,0x7C70), static,broadcast,CISCO, status defined, activeR5#*Apr 1 23:49:15.627: %SYS-5-CONFIG_I: Configured from console by consoleR5#R5#sho ip eigrp neighborsIP-EIGRP neighbors for process 100H Address Interface Hold Uptime SRTT RTO Q Seq(sec) (ms) Cnt Num 2 50.1.1.3 Se1/2 149 00:05:04 20 200 0 91 45.1.1.4 Se1/0 11 00:10:38 68 408 0 100 50.1.1.2 Se1/2 161 00:10:43 42 252 0 10R5#R5#sho ip routeCodes: C - connected, S - static, R - RIP, M - mobile, B - BGPD - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter areaN1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2E1 - OSPF external type 1, E2 - OSPF external type 2i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2ia - IS-IS inter area, * - candidate default, U - per-user static routeo - ODR, P - periodic downloaded static routeGateway of last resort is not set1.0.0.0/32 is subnetted, 1 subnetsD 1.1.1.1 [90/2809856] via 50.1.1.2, 00:04:48, Serial1/2[90/2809856] via 45.1.1.4, 00:04:48, Serial1/0[90/2809856] via 50.1.1.3, 00:04:48, Serial1/250.0.0.0/24 is subnetted, 1 subnetsC 50.1.1.0 is directly connected, Serial1/22.0.0.0/32 is subnetted, 1 subnetsD 2.2.2.2 [90/2297856] via 50.1.1.2, 00:04:48, Serial1/23.0.0.0/32 is subnetted, 1 subnetsD 3.3.3.3 [90/2297856] via 50.1.1.3, 00:04:48, Serial1/24.0.0.0/32 is subnetted, 1 subnetsD 4.4.4.4 [90/2297856] via 45.1.1.4, 00:04:44, Serial1/05.0.0.0/32 is subnetted, 1 subnetsC 5.5.5.5 is directly connected, Loopback010.0.0.0/24 is subnetted, 1 subnetsD 10.1.1.0 [90/2681856] via 50.1.1.2, 00:04:48, Serial1/2[90/2681856] via 50.1.1.3, 00:04:48, Serial1/214.0.0.0/24 is subnetted, 1 subnetsD 14.1.1.0 [90/2681856] via 45.1.1.4, 00:04:48, Serial1/045.0.0.0/24 is subnetted, 1 subnetsC 45.1.1.0 is directly connected, Serial1/0R5#使用OSPF,需求同上面的实验R1配置:Router(config)#line console 0Router(config-line)#exec-timeout 0 0Router(config-line)#logging synchronousRouter(config-line)#exitRouter(config)#no ip do loRouter(config)#ho R1R1(config)#interface loopback 0R1(config-if)#ip address 1.1.1.1 255.255.255.255R1(config-if)#no shutdownR1(config-if)#exitR1(config)#interface s1/2 // 要使用子接口,先设置物理接口R1(config-if)#encapsulation frame-relay //为接口进行帧中继封装R1(config-if)#no frame-relay inverse-arp //关闭帧中继逆向ARPR1(config-if)#no arp frame-relay //关闭ARPR1(config-if)#no shutdownR1(config-if)#exitR1(config)#interface s1/2.123 multipoint //这里R1对应R2、R3全互连,因此开启多点子接口特性R1(config-subif)#no frame-relay inverse-arpR1(config-subif)#no arp frame-relayR1(config-subif)#ip address 10.1.1.1 255.255.255.0R1(config-subif)#frame-relay map ip 10.1.1.2 102 broadcast //配置R1 到R2的映射R1(config-subif)#frame-relay map ip 10.1.1.3 103 broadcast //配置R1 到R3的映射R1(config-subif)#no shutdownR1(config-subif)#exitR1(config)#interface s1/2.4 point-to-point //R1到R4是唯一的,可以开启点到点子接口R1(config-subif)#no frame-relay inverse-arpR1(config-subif)#no arp frame-relayR1(config-subif)#ip address 14.1.1.1 255.255.255.0R1(config-subif)#frame-relay interface-dlci 104 //为点到点接口设置本地DLCIR1(config-fr-dlci)#exitR1(config-subif)#no shutdownR1(config-subif)#exitR2配置:Router>enableRouter(config)# line console 0Router(config-line)# exec-timeout 0 0Router(config-line)# logging synchronousRouter(config-line)# exitRouter(config)# no ip do loRouter(config)# ho R2R2(config)#interface loopback 0R2(config-if)#ip address 2.2.2.2 255.255.255.25R2(config-if)#no shutdownR2(config-if)#exitR2(config)#interface s1/2R2(config-if)#encapsulation frame-relayR2(config-if)#no frame-relay inverse-arpR2(config-if)#no arp frame-relayR2(config-if)#no shutdownR2(config-if)#exitR2(config)#interface s1/2.123 multipointR2(config-subif)#no frame-relay inverse-arpR2(config-subif)#no arp frame-relayR2(config-subif)#ip address 10.1.1.2 255.255.255.0R2(config-subif)#frame-relay map ip 10.1.1.1 201 broadcast //映射的书写一定是目标的IP本地的DLCIR2(config-subif)#frame-relay map ip 10.1.1.3 203 broadcastR2(config-subif)#no shutdownR2(config-subif)#exitR2(config)#interface s1/2.235 multipointR2(config-subif)#no frame-relay inverse-arpR2(config-subif)#no arp frame-relayR2(config-subif)#ip address 50.1.1.2 255.255.255.0R2(config-subif)#frame-relay map ip 50.1.1.5 205 broadcastR2(config-subif)#frame-relay map ip 50.1.1.3 205 broadcastR2(config-subif)#no shutdownR2(config-subif)#exitR3配置:Router>enableRouter#config terminalRouter(config)# line console 0Router(config-line)# exec-timeout 0 0Router(config-line)# logging synchronousRouter(config-line)# exitRouter(config)# no ip do loRouter(config)# ho R3R3(config)#interface lo0R3(config-if)#ip address 3.3.3.3 255.255.255.255R3(config-if)#no shutdownR3(config-if)#exitR3(config)#interface s1/2R3(config-if)#encapsulation frame-relayR3(config-if)#no frame-relay inverse-arpR3(config-if)#no arp frame-relayR3(config-if)#no shutdownR3(config-if)#exitR3(config)#interface s1/2.123 multipointR3(config-subif)#no frame-relay inverse-arpR3(config-subif)#no arp frame-relayR3(config-subif)#ip address 10.1.1.3 255.255.255.0R3(config-subif)#frame-relay map ip 10.1.1.1 301 broadcast R3(config-subif)#frame-relay map ip 10.1.1.2 302 broadcast R3(config-subif)#no shutdownR3(config-subif)#exitR3(config)#interface s1/2.235 multipointR3(config-subif)#no frame-relay inverse-arpR3(config-subif)#no arp frame-relayR3(config-subif)#ip address 50.1.1.3 255.255.255.0R3(config-subif)#frame-relay map ip 50.1.1.5 305 broadcast R3(config-subif)#frame-relay map ip 50.1.1.2 305 broadcast R3(config-subif)#no shutdownR3(config-subif)#exitR4配置:Router>enableRouter#config terEnter configuration commands, one per line. End with CNTL/Z. Router(config)# line console 0Router(config-line)# exec-timeout 0 0Router(config-line)# logging synchronousRouter(config-line)# exitRouter(config)# no ip do loRouter(config)# ho R4R4(config)#interface lo0R4(config-if)#ip address 4.4.4.4 255.255.255.255R4(config-if)#no shutdownR4(config-if)#exitR4(config)#interface s1/2R4(config-if)#encapsulation frame-relayR4(config-if)#no frame-relay inverse-arpR4(config-if)#no arp frame-relayR4(config-if)#ip address 14.1.1.4 255.255.255.0R4(config-if)#frame-relay map ip 14.1.1.1 401 broadcastR4(config-if)#no shutdownR4(config-if)#exitR4(config)#interface s1/1R4(config-if)#ip address 45.1.1.4 255.255.255.0R4(config-if)#no shutdownR4(config-if)#exitR5配置:Router>enableRouter#config terminalEnter configuration commands, one per line. End with CNTL/Z. Router(config)# line console 0Router(config-line)# exec-timeout 0 0Router(config-line)# logging synchronousRouter(config-line)# exitRouter(config)# no ip do loRouter(config)# ho R5R5(config)#interface lo0R5(config-if)#ip address 5.5.5.5 255.255.255.255R5(config-if)#no shutdownR5(config-if)#exitR5(config)#interface s1/2R5(config-if)#encapsulation frame-relayR5(config-if)#no frame-relay inverse-arpR5(config-if)#no arp frame-relayR5(config-if)#ip address 50.1.1.5 255.255.255.0R5(config-if)#frame-relay map ip 50.1.1.2 502 broadcastR5(config-if)#frame-relay map ip 50.1.1.3 503 broadcastR5(config-if)#no shutdownR5(config-if)#exitR5(config)#interface s1/0R5(config-if)#ip address 45.1.1.5 255.255.255.0R5(config-if)#no shutdownR5(config-if)#exit配置路由协议:OSPF的接口网络类型如下,邻居关系的建立,DR/BDR 都会收到接口网络类型的影响由于默认情况下,帧中继网络中接口的默认网络类型为NBMA类型,因此在我们的网络中R1—R2—R3之间的链路之间不能正常自动建立邻居关系;R2---R3—R5也如此,无法建立邻居关系;R1—R4 由于接口类型不同导致hello时间不同,也无法建立邻居关系。
CCNP自学笔记----EIGRP在当前各未来的路由选择环境中,增强内部网关路由选择协议(EIGRP)提供了诸如路由选择信息协议第1版(RIPV1)和内部网关路由选择协议(IGRP)等传统的距离矢量路由选择协议所没有的优点和特性。
这些优点包括会聚速度快,占用的带宽少以及支持多种被路由的协议。
EIGRP是一种CISCO专有协议,同时具备链路状态和距离矢量路由选择协议的优点:1.快速会聚:EIGRP采用扩散更新算法(DUAL)来实现快速会聚。
2.占用的带宽更少:EIGRP不发送定期更新,而是在前往目的地的路径或度量值发生变化时使用部分更新。
3.支持多种网络层协议:EIGRP使用协议无关模块(PDM)来支持IP,APPLETALK和IPX,以满足特定的网络层需求。
4.在不同数据链路层协议和拓扑之间提供无缝连接性:使用EIGRP时,无需针对第2层协议做特殊的配置;而其他路由选择协议(如OSPF)对于不同的第2层协议(如以太网和帧中继)需要采用不同的配置。
传输EIGRP信息的IP分组使用其IP报头中使用协议号88。
与传统的路由选择协议相比,EIGRP最重要的优点之一是占用的带宽。
使用EIGRP时,运行数据流是以多播或单播而不是广播方式传输的,因此终端不受路由选择更新和查询的影响。
与其他协议相比,EIGRP和(IGRP)的一个重要优点是,支持在度量值不等的路径之间均衡负载,让管理员能够在网络中更好地分配流量。
EIGRP使用多播地址224.0.0.10。
EIGRP路由器从属于同一个自主系统的路由器那里收到HELLO分组后,将与该路由器建立邻接关系。
如果在保持时间过后仍未收到分组,将删除相应邻接关系以及从该邻居那里获悉的所有拓扑表条目,就像该邻居发送了一条指出所有这些路由都不可达的更新一样。
如果该邻居是前往某个目标网络的后继站,将从路由选择表中删除该网络,并计算替代路径。
即使HELLO间隔和保持时间不匹配,两台路由器也能成为EIGRP邻居;这意味着可以在路由器上独立地设置HELLO间隔和保持时间。
1.实验拓扑:2.实验步骤:1)预配置:R1#conf tEnter configuration commands, one per line. End with CNTL/Z. R1(config)#line co 0R1(config-line)#no exec-tR1(config-line)#logg sR1(config-line)#int lo 0R1(config-if)#ip add 1.1.1.1 255.255.255.0R1(config-if)#int s3/0R1(config-if)#ip add 192.168.123.1 255.255.255.0R1(config-if)#no shR2#conf tEnter configuration commands, one per line. End with CNTL/Z. R2(config)#line co 0R2(config-line)#no exec-tR2(config-line)#logg sR2(config-line)#int lo 0R2(config-if)#ip add 2.2.2.2 255.255.255.0R2(config-if)#int s3/0R2(config-if)#ip add 192.168.123.2 255.255.255.0R2(config-if)#no shR2(config-if)#exitR3#conf tEnter configuration commands, one per line. End with CNTL/Z.R3(config)#line co 0R3(config-line)#no exec-tR3(config-line)#logg sR3(config-if)#int lo 0R3(config-if)#ip add 3.3.3.3 255.255.255.0R3(config-if)#int s3/0R3(config-if)#ip add 192.168.123.3 255.255.255.0R3(config-if)#no shR3(config-if)#exit2)手工配置帧中继映射:R1(config)#int s3/0R1(config-if)#encapsulation frame-relayR1(config-if)#no frame-relay inverse-arpR1(config-if)#frame-relay map ip 192.168.123.2 102 broadcast R1(config-if)#frame-relay map ip 192.168.123.3 103 broadcast R1(config-if)#exitR2(config)#int s3/0R2(config-if)#encap framR2(config-if)#no fram invR2(config-if)#fram map ip 192.168.123.1 201 bR2(config-if)#exitR3(config)#int s3/0R3(config-if)#encap framR3(config-if)#no fram invR3(config-if)#fram map ip 192.168.123.1 301 broadcastR3(config-if)#exit3)配置EIGRP:R1(config)#router eigrp 100R1(config-router)#net 1.0.0.0R1(config-router)#net 192.168.123.0R1(config-router)#exitR2(config)#router eigrp 100R2(config-router)#net 2.0.0.0R2(config-router)#net 192.168.123.0R2(config-router)#exitR3(config)#router eigrp 100R3(config-router)#net 3.0.0.0R3(config-router)#net 192.168.123.0R3(config-router)#exit4)查看Split horizon是否开启:R1#show ip int s3/0Serial3/0 is up, line protocol is upInternet address is 192.168.123.1/24 Broadcast address is 255.255.255.255Address determined by setup commandMTU is 1500 bytesHelper address is not setDirected broadcast forwarding is disabled Multicast reserved groups joined: 224.0.0.10 Outgoing access list is not setInbound access list is not setProxy ARP is enabledLocal Proxy ARP is disabledSecurity level is defaultSplit horizon is disabled//接口封装了帧中继后,水平分割被自动关闭ICMP redirects are always sentICMP unreachables are always sentICMP m ask replies are never sentIP fast switching is enabledIP fast switching on the sam e interface is enabled IP Flow switching is disabledIP CEF switching is enabledIP Fast switching turbo vectorIP Feature CEF switching turbo vectorIP m ulticast fast switching is enabledIP m ulticast distributed fast switching is disabled IP route-cache flags are Fast, CEFRouter Discovery is disabledIP output packet accounting is disabledIP access violation accounting is disabledTCP/IP header compression is disabledRTP/IP header compression is disabledPolicy routing is disabledNetwork address translation is disabledWCCP Redirect outbound is disabledWCCP Redirect inbound is disabledWCCP Redirect ex clude is disabledBGP Policy Mapping is disabled5)查看路由表:R1#show ip routeCodes: C - connected, S - static, R - RIP, M - m obile, B - BGPD - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter areaN1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2E1 - OSPF external type 1, E2 - OSPF external type 2i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2ia - IS-IS inter area, * - candidate default, U - per-user stati c routeo - ODR, P - periodic downloaded static routeGateway of last resort is not setC 192.168.123.0/24 is directly connected, Serial3/01.0.0.0/8 is variably subnetted, 2 subnets, 2 masksC 1.1.1.0/24 is directly connected, Loopback0D 1.0.0.0/8 is a summary, 00:01:17, Null0D 2.0.0.0/8 [90/2297856] via 192.168.123.2, 00:00:18, Serial3/0 D 3.0.0.0/8 [90/2297856] via 192.168.123.3, 00:00:18, Serial3/0R2#show ip routeCodes: C - connected, S - static, R - RIP, M - m obile, B - BGPD - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter areaN1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2E1 - OSPF external type 1, E2 - OSPF external type 2i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2ia - IS-IS inter area, * - candidate default, U - per-user stati c routeo - ODR, P - periodic downloaded static routeGateway of last resort is not setC 192.168.123.0/24 is directly connected, Serial3/0D 1.0.0.0/8 [90/2297856] via 192.168.123.1, 00:00:49, Serial3/02.0.0.0/8 is variably subnetted, 2 subnets, 2 masksC 2.2.2.0/24 is directly connected, Loopback0D 2.0.0.0/8 is a summary, 00:05:35, Null0D 3.0.0.0/8 [90/2297856] via 192.168.123.3, 00:04:41, Serial3/0R3#show ip routeCodes: C - connected, S - static, R - RIP, M - m obile, B - BGPD - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter areaN1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2E1 - OSPF external type 1, E2 - OSPF external type 2i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2ia - IS-IS inter area, * - candidate default, U - per-user stati c routeo - ODR, P - periodic downloaded static routeGateway of last resort is not setC 192.168.123.0/24 is directly connected, Serial3/0D 1.0.0.0/8 [90/2297856] via 192.168.123.1, 00:01:13, Serial3/0D 2.0.0.0/8 [90/2297856] via 192.168.123.2, 00:05:02, Serial3/03.0.0.0/8 is variably subnetted, 2 subnets, 2 masksC 3.3.3.0/24 is directly connected, Loopback0D 3.0.0.0/8 is a summary, 00:05:27, Null06)关闭split-horizonR1(config)#int s3/0R1(config-if)#ip split-horizon eigrp 100R2(config)#int s3/0R2(config-if)#ip split-horizon eigrp 100R3(config)#int s3/0R3(config-if)#ip split-horizon eigrp 1007)查看路由表:R1#show ip routeCodes: C - connected, S - static, R - RIP, M - m obile, B - BGPD - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter areaN1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2 E1 - OSPF external type 1, E2 - OSPF external type 2i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2ia - IS-IS inter area, * - candidate default, U - per-user stati c route o - ODR, P - periodic downloaded static routeGateway of last resort is not setC 192.168.123.0/24 is directly connected, Serial3/01.0.0.0/8 is variably subnetted, 2 subnets, 2 m asksC 1.1.1.0/24 is directly connected, Loopback0D 1.0.0.0/8 is a summary, 00:03:25, Null0D 2.0.0.0/8 [90/2297856] via 192.168.123.2, 00:03:25, Serial3/0D 3.0.0.0/8 [90/2297856] via 192.168.123.3, 00:03:25, Serial3/0//R1可以获得R2,R3上的回环口路由R2#show ip routeCodes: C - connected, S - static, R - RIP, M - m obile, B - BGPD - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter areaN1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2 E1 - OSPF external type 1, E2 - OSPF external type 2i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2ia - IS-IS inter area, * - candidate default, U - per-user stati c route o - ODR, P - periodic downloaded static routeGateway of last resort is not setC 192.168.123.0/24 is directly connected, Serial3/0D 1.0.0.0/8 [90/2297856] via 192.168.123.1, 00:02:32, Serial3/02.0.0.0/8 is variably subnetted, 2 subnets, 2 m asksC 2.2.2.0/24 is directly connected, Loopback0D 2.0.0.0/8 is a summary, 00:02:32, Null0//R2只能获得R1回环口的路由R3#show ip routeCodes: C - connected, S - static, R - RIP, M - m obile, B - BGPD - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter areaN1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2 E1 - OSPF external type 1, E2 - OSPF external type 2i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2ia - IS-IS inter area, * - candidate default, U - per-user stati c route o - ODR, P - periodic downloaded static routeGateway of last resort is not setC 192.168.123.0/24 is directly connected, Serial3/0D 1.0.0.0/8 [90/2297856] via 192.168.123.1, 00:02:57, Serial3/03.0.0.0/8 is variably subnetted, 2 subnets, 2 m asksC 3.3.3.0/24 is directly connected, Loopback0D 3.0.0.0/8 is a summary, 00:02:57, Null0//R3只能获得R1回环口的路由。