CCNP之OSPF实验案例

合集下载

CCNP实验大全--Single Area OSPF(简版)

CCNP实验大全--Single Area OSPF(简版)

Single Area OSPF【实验目的】了解和掌握OSPF 的原理,熟悉OSPF 配置步骤。

懂得如何配置OSPF router ID ,update timers, authentication,了解DR/BDR 选举过程,以及在multi-access 网络和帧中继网络上点到多点的OSPF 配置。

【基本概念及实验原理】 OSPF 数据包的五种类型:Type 1- Hello 用于建立和维持与邻居的连接信息Type 2- Database description packet(DBD) 用于描述一个路由器的链路状态数据库的内容Type 3- Link-state request(LSR) 用于请求一个路由器链路状态数据库的一些特定的条目Type 4- Link-state update(LSU) 用于把“链路状态更新”(LSAs)传输给其它路由器Type 5- Link-state acknowledgment (LSAck) 用于确认自己收到了一个从邻居发过来的LSAOSPF 的各种状态(OSPF 邻居关系建立的过程)Down.Æ Init. Æ Two-Way. Æ ExStart. Æ Exchange. Æ Loading. Æ Full Adjacencyhello Æ 发现邻居Æ确定主从关系Æ比较数据库Æ交换数据Æ确立邻接关系Designated Router (DR) / Backup Designated Router(BDR)选举过程(存在于multiaccess 网络,点对点和点对多点网络中无此选举过程)选举过程:依次比较hello 包中的端口优先级(priority),路由id 。

选举结束后,只有DR/BDR fail 才会引起新的选举过程;如果发生DR 故障,则BDR 替补上去;次高优先级router 选为BDR 。

CCNP实验 OSPF和EIGRP双点双向重分布

CCNP实验   OSPF和EIGRP双点双向重分布

CCNP实验:OSPF和EIGRP双点双向重分布实验需求:R1的LO 0 1.1.1.1/32口重分布到OSPF中R4的LO 0 4.4.4.4/32口重分布到EIGRP中1.1.1.1负载均衡从R2 R3到R44.4.4.4 负载均衡从R2 R3到R1实验要点:修改EIGRP 、OSPF管理距离基本配置R1:r1#conf tr1(config)#int f0/0r1(config-if)#ip add 192.168.12.1 255.255.255.0r1(config-if)#no shr1(config-if)#int f1/0r1(config-if)#ip add 192.168.13.1 255.255.255.0r1(config-if)#no shr1(config-if)#int lo 0r1(config-if)#ip add 1.1.1.1 255.255.255.255r1(config-if)#^Zr1#conf tr1(config)#router ospf 110r1(config-router)#router-id 1.1.1.1r1(config-router)#net 192.168.12.0 0.0.0.255 area 0r1(config-router)#net 192.168.13.0 0.0.0.255 area 0r1(config-router)#redistribute connected subnetsr1(config-router)#^ZR2:r2#conf tr2(config-if)#ip add 192.168.12.2 255.255.255.0r2(config-if)#no shr2(config-if)#int f1/0r2(config-if)#ip add 192.1.1.2 255.255.255.0r2(config-if)#no shr2(config-if)#z^r2#conf tr2(config)#router ospf 110r2(config-router)#router-id 2.2.2.2r2(config-router)#net 192.168.12.0 0.0.0.255 area 0r2(config-router)#redistribute eigrp 100 subnetsr2(config-router)#^Zr2#conf tr2(config)#router eigrp 100r2(config-router)#net 192.1.1.0r2(config-router)#redistribute ospf 110 metric 1000 100 255 1 1500 r2(config-router)#^ZR3:r3#conf tr3(config)#int f0/0r3(config-if)#ip add 192.168.13.3 255.255.255.0r3(config-if)#no shr3(config-if)#int f1/0r3(config-if)#ip add 192.1.1.3 255.255.255.0r3(config-if)#no shr3(config-if)#^Zr3#conf tr3(config)#router ospf 110r3(config-router)#router-id 3.3.3.3r3(config-router)#net 192.168.13.0 0.0.0.255 area 0r3(config-router)#redistribute eigrp 100 subnetsr3(config-router)#^Zr3#conf tr3(config)#router eigrp 100r3(config-router)#net 192.1.1.0r3(config-router)#redistribute ospf 110 metric 1000 100 255 1 1500 r3(config-router)#^ZR4:r4#conf tr4(config)#int f0/0r4(config-if)#ip add 192.1.1.4 255.255.255.0r4(config-if)#no shr4(config-if)#ip add 4.4.4.4 255.255.255.255r4(config-if)#^Zr4#conf tr4(config)#router eigrp 100r4(config-router)#net 192.1.1.0r4(config-router)#redistribute connected metric 1000 100 255 1 1500r4(config-router)#^Z解决需求方案:修改OSPF管理距离R2:r2#conf tr2(config)#router ospf 110r2(config-router)#distance 180 3.3.3.3 0.0.0.0r2(config-router)#^ZR3:r3#conf tr3(config)#router ospf 110r3(config-router)#distance 180 2.2.2.2 0.0.0.0r3(config-router)#^Z实验结果测试:r1#show ip routeC 192.168.12.0/24 is directly connected, FastEthernet0/01.0.0.0/32 is subnetted, 1 subnetsC 1.1.1.1 is directly connected, Loopback0C 192.168.13.0/24 is directly connected, FastEthernet1/04.0.0.0/32 is subnetted, 1 subnetsO E2 4.4.4.4 [110/20] via 192.168.13.3, 00:40:15, FastEthernet1/0[110/20] via 192.168.12.2, 00:40:15, FastEthernet0/0O E2 192.1.1.0/24 [110/20] via 192.168.13.3, 00:41:55, FastEthernet1/0[110/20] via 192.168.12.2, 00:41:55, FastEthernet0/0r2# r3# r4#show ip route实验结论:通过修改OSPF通过指定路由器的管理距离,解决负载均衡双点双向重分布。

CCNA OSPF

CCNA OSPF

实验六:单区域OSPF配置⏹实验目的1、在路由器上启动OSPF路由进程2、启用参与路由协议的接口,并且通告网络及其所在的区域3、路由id的配置4、DR选举的控制5、OSPF的MD5认证6、查看和调试OSPF路由协议和MD5相关信息⏹实验要求本实验要达到如下要求:1、给出具体的实现步骤2、给出某个路由器上路由表的内容3、给出认证的调试信息4、给出各个网段的DR和BDR⏹实验设备(环境、软件)1、路由器3台2、交叉线3条3、光纤1条⏹实验设计到的基本概念和理论给出OSPF特性、链路、链路状态、自治系统、区域的概念⏹在路由器上启动OSPF路由进程Router(config)#router ospf 0Router(config-router)#network 192.168.1.0 0.0.0.255 area 2其他路由器采用相同操作路由id的配置DR选举的控制Router(config)#int f6/0Router(config-if)#ip ospf priority 10OSPF的MD5认证Router(config-if)#ip ospf message-digest-key 20 md5 12345查看和调试OSPF路由协议和MD5相关信息开启debugRouter#debug ip ospf adjRouter#debug ip ospf events查看debugRouter#show debugtion type. Input packet specified type 2, we use type 001:50:58: OSPF: Rcv hello from 1.0.1.2 area 0 from FastEthernet0/0 192.168.2.2001:50:58: OSPF: End of hello processingOSPF events debugging is onRouter#01:51:07: OSPF: Rcv pkt from 192.168.1.1, FastEthernet1/0 : Mismatch Authentication type. Input packet specified type 2, we use type 001:51:08: OSPF: Rcv hello from 1.0.1.2 area 0 from FastEthernet0/0 192.168.2.20终于弄明白了MD5认证具体怎么用。

【CCNP】帧中继环境下OSPF

【CCNP】帧中继环境下OSPF

【CCNP】帧中继环境下OSPF ⽹络类型BROADCAST【CCNP】帧中继环境下OSPF ⽹络类型BROADCAST修订记录修订⽇期修订⼈版本号审核⼈修订说明2012-09-13Jeff 1.0Jeff正式发布1案例配置拓扑2案例配置需求1、配置HUB&SPOKE模型的帧中继⽹络,R1为HUB,采⽤静态映射的⽅式;2、IP地址规划⽅⾯,R1/R2/R3上有⼀环回接⼝loopback 0,地址为X.X.X.X/32(其中X为路由器编号,如R1的环回⼝loopback 0地址为1.1.1.1/32),帧中继⽹络的地址为172.8.100.X/24(其中X为路由器编号,如R1的帧中继接⼝地址为172.8.100.1/24)3、配置R1/R2/R3所有的接⼝network到OSPF区域0,进程号为100;4、修改帧中继接⼝的OSPF⽹络类型为BROADCAST;5、实现R1/R2/R3的loopback 0接⼝互通;3案例配置思路1、配置R1/R2/R3帧中继接⼝:R1interface Serial0/0encapsulation frame-relayno frame-relay inverse-arp /关闭inverse-arp,采⽤静态映射的⽅式/ip address 172.8.100.1 255.255.255.0frame-relay map ip 172.8.100.2 102 broadcastframe-relay map ip 172.8.100.3 103 broadcast/加上broadcast参数,让PVC具有传送⼴播或者组播的能⼒/R2interface Serial0/0encapsulation frame-relayno frame-relay inverse-arpip address 172.8.100.2 255.255.255.0frame-relay map ip 172.8.100.1 201 broadcastR3interface Serial0/0encapsulation frame-relayno frame-relay inverse-arpip address 172.8.100.3 255.255.255.0frame-relay map ip 172.8.100.1 301 broadcast2、配置R1基本的OSPF:router ospf 100router-id 1.1.1.1 /⼿动指定RID/network 1.1.1.1 0.0.0.0 area 0network 172.8.100.1 0.0.0.0 area 03、配置R2基本的OSPF:router ospf 100router-id 2.2.2.2 /⼿动指定RID/network 2.2.2.2 0.0.0.0 area 0network 172.8.100.2 0.0.0.0 area 04、配置R3基本的OSPF:router ospf 100router-id 3.3.3.3 /⼿动指定RID/network 3.3.3.3 0.0.0.0 area 0network 172.8.100.3 0.0.0.0 area 05、配置R1/R2/R3接⼝的⽹络类型为BROADCAST:R1/R2/R3interface s0/0ip ospf network broadcast /设置接⼝的⽹络类型为broadcast/6、修改R1/R2/R3帧中继OSPF接⼝优先级:R1interface s0/0ip ospf priority 255 /选举为DR/R2interface s0/0ip ospf priority 0 /不参与DR的选举/R3interface s0/0ip ospf priority 0 /不参与DR的选举/7、修正R2/R3下⼀跳不可达情况,让R2/R3到达对⽅的loopback 0接⼝的下⼀跳可达:R2interface Serial0/0frame-relay map ip 172.8.100.3 201 broadcastR3interface Serial0/0frame-relay map ip 172.8.100.2 301 broadcast4案例检验结果1、采⽤show ip ospf int s0/0查看接⼝的⽹络类型:R1#show ip ospf int s0/0Serial0/0 is up, line protocol is upInternet Address 172.8.100.1/24, Area 0Process ID 100, Router ID 1.1.1.1, Network Type BROADCAST, Cost: 64 Transmit Delay is 1 sec, State DR, Priority 255Designated Router (ID) 1.1.1.1, Interface address 172.8.100.1No backup designated router on this networkTimer intervals configured, Hello 10, Dead 40, Wait 40, Retransmit 5oob-resync timeout 40Hello due in 00:00:04Supports Link-local Signaling (LLS)Index 2/2, flood queue length 0Next 0x0(0)/0x0(0)Last flood scan length is 1, maximum is 1Last flood scan time is 0 msec, maximum is 4 msecNeighbor Count is 2, Adjacent neighbor count is 2Adjacent with neighbor 2.2.2.2Adjacent with neighbor 3.3.3.3Suppress hello for 0 neighbor(s)2、采⽤show ip ospf nei查看路由器的邻居状态:R1#show ip ospf neiNeighbor ID Pri State Dead Time Address Interface3.3.3.3 0 FULL/DROTHER 00:01:53 172.8.100.3 Serial0/02.2.2.2 0 FULL/DROTHER 00:01:31 172.8.100.2 Serial0/0/邻居的接⼝优先级为0,不参与DR的选举,⾓⾊为DROTHER/R2#show ip ospf neiNeighbor ID Pri State Dead Time Address Interface1.1.1.1 255 FULL/DR 00:01:44 172.8.100.1 Serial0/0R3#show ip ospf neiNeighbor ID Pri State Dead Time Address Interface1.1.1.1 255 FULL/DR 00:01:30 172.8.100.1 Serial0/0 3、采⽤show ip route查看路由表:R1#show 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 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 static route o - 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, Loopback02.0.0.0/32 is subnetted, 1 subnetsO 2.2.2.2 [110/65] via 172.8.100.2, 00:51:45, Serial0/03.0.0.0/32 is subnetted, 1 subnetsO 3.3.3.3 [110/65] via 172.8.100.3, 00:51:45, Serial0/0172.8.0.0/24 is subnetted, 1 subnetsC 172.8.100.0 is directly connected, Serial0/0R2#show 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 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 static route o - ODR, P - periodic downloaded static routeGateway of last resort is not set1.0.0.0/32 is subnetted, 1 subnetsO 1.1.1.1 [110/65] via 172.8.100.1, 00:55:45, Serial0/02.0.0.0/32 is subnetted, 1 subnetsC 2.2.2.2 is directly connected, Loopback03.0.0.0/32 is subnetted, 1 subnetsO 3.3.3.3 [110/65] via 172.8.100.3, 00:55:45, Serial0/0/下⼀跳为172.8.100.3,需要添加到此地址的帧中继静态映射/172.8.0.0/24 is subnetted, 1 subnetsC 172.8.100.0 is directly connected, Serial0/0R3#show 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 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 static route o - ODR, P - periodic downloaded static routeGateway of last resort is not set1.0.0.0/32 is subnetted, 1 subnetsO 1.1.1.1 [110/65] via 172.8.100.1, 00:58:59, Serial0/02.0.0.0/32 is subnetted, 1 subnetsO 2.2.2.2 [110/65] via 172.8.100.2, 00:58:59, Serial0/0/下⼀跳为172.8.100.2,需要添加到此地址的帧中继静态映射/3.0.0.0/32 is subnetted, 1 subnetsC 3.3.3.3 is directly connected, Loopback0172.8.0.0/24 is subnetted, 1 subnetsC 172.8.100.0 is directly connected, Serial0/04、采⽤ping测试R2到达R3 loopback 0接⼝的下⼀跳:R2#ping 172.8.100.3Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 172.8.100.3, timeout is 2 seconds:Success rate is 100 percent (5/5), round-trip min/avg/max = 56/80/132 msR2#5、采⽤traceroute测试R2到达R3 loopback 0的路径:R2#traceroute 3.3.3.3 source lo 0Type escape sequence to abort.Tracing the route to 3.3.3.31 172.8.100.1 28 msec 52 msec 8 msec2 172.8.100.3 28 msec * 128 msec/由于是HUB&SPOKE环境,R2和R3之间没有建⽴PVC,所以R2到R3 loopback 0的数据必须⾛R1和R2之间的PVC,跟踪的路径先到R1,然后到R3/6、采⽤ping测试R2 loopback 0和R3 loopback 0的连通性:R2#ping 3.3.3.3 source lo 0Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 3.3.3.3, timeout is 2 seconds:Packet sent with a source address of 2.2.2.2Success rate is 100 percent (5/5), round-trip min/avg/max = 36/65/108 ms5案例配置⽂件(略)6案例总结及其他1、帧中继主接⼝默认的⽹络类型为NON_BROADCAST,通过修改R1/R2/R3帧中继接⼝的OSPF⽹络类型为BROADCAST,在该⽹络类型下,邻居⾃动发现,所以不需要⼿动指定邻居,由于是多路访问的环境,所以需要选举DR,⼀般推荐在HUB&SPOKE环境下HUB路由器为DR(将接⼝的OSPF优先级设置为255),其他SPOKE路由器为DROTHER(将接⼝的OSPF优先级设置为0);2、 SPOKE路由器到达SPOKE路由器路由的下⼀跳为对⽅SPOKE物理接⼝的地址,由于SPOKE和SPOKE之间没有建⽴PVC,所以它们之间数据传输必须通过SPOKE和HUB之间建⽴的PVC;3、采⽤⼿动添加帧中继静态映射的⽅式,保证SPOKE到SPOKE的下⼀跳地址可达;。

CISCOCCNP认证考试全部试验

CISCOCCNP认证考试全部试验

实验1-1:路由器初始配置【实验目的】:在本次实验中,你被要求从TFTP服务器(10.254.0.254/24)下载边界路由器PxR1和PxR2的基本配置。

在完成本次实验之后,你需要完成下列任务:•从PxR1和PxR2路由器去连接TFTP服务器。

•从TFTP服务器下载配置文件去配置你的路由器。

【实验拓扑】:上图显示了一个完成的本次实验拓扑图。

在这个实验中,你将需要通过帧中继连接到路由器PxR1和PxR2到路由器BBR1,并完成从TFTP服务器上下载配置文件。

•注意:图中x为所在机架编号,y为路由器编号。

【实验帮助】:如果出现任何问题,可以向在值的辅导老师提出并请求提供帮助。

【命令列表】:命令描述(config-if)#encapsulation frame-relay 激活帧中继封装(config-if)#frame-relay map ip 172.31.x.3 1x1 broadcast 映射下一跳IP地址到PVC (config-if)#ip address 172.31.x.1 255.255.255.0 给接口配置IP地址。

(config)#ip route 10.0.0.0 255.0.0.0 172.31.x.3 创建一条静态路由(config-if)no shutdown 激活一个端口【任务一】:设备路由器PxR1和PxR2使用TELNET或者其他终端程序建立与路由器建立联接。

记住在本实验中x是你的机架编号,y是你的路由器编号。

实验过程:第一步:连接路由器(PxR1和PxR2)。

你的路由器现在应该没有任何配置。

如果有,请使用erase start 命令删除配置,并使用reload命令重启路由器。

•注意:你应该使用一些最少的配置,以确保路由器能够到达TFTP服务器。

第二步:配置S0口为FRAME-RELAY封装格式。

第三步:分配IP地址给S0口。

你的IP地址应该为172.31.x.y/24, x代表你的机架编号,y代表你的路由器编号。

CCNP路由实验

CCNP路由实验

CCNP路由实验实验:准备任务192.168.1.0/24网络按/28分割子网,请写出前四个子网中的首、末可用地址。

Key:实验:EIGRP集成IGRP,RIP1、每个网荚配置EIGRP 100,干路配置IGRP 100,网荚内部互联地址用192.168.x.y,x=网荚号,y是/28子网中的首、末地址,干路地址用172.16.1.x/24,x=网荚号。

说明:重分布,redistribution,EIGRP中的外部路由用“EX”表示,相同自治系统号的IGRP 和EIGRP之间自动重分布。

2、关闭EIGRP的自动汇总,实现EIGRP在本网荚内的负载平衡(到路由器对面网段,通过修改带宽和延时的方法使metric相等,bandwidth和delay命令),观察EIGRP邻居表,拓扑结构表和路由表。

3、每台路由器上配置四个loopback接口,loopback0、1的IP 地址为192.169.x.1/28,192.169.x.17/28,其中x=桌号,loopback2、3的地址见下图(x=网荚号),192.169的网段发布到IGRP 200中,192.170的网段发布到RIP v2中,手工配置IGRP、RIP v1到EIGRP 的重分布。

设置loopback为passive-interface。

R_topLoop2=192.170.x1.1/28Loop3=192.170.x2.1/28/ \/ \Loop2=192.170.x1.14/28 Loop2=192.170.x2.14/28Loop3=192.170.x3.1/28 Loop3=192.170.x3.14/28R_left ------------- R_right说明:手工重分布在目的路由进程中进行。

redistriute 源路由进程 metric 种子度量值其它选项ping 192.170这个网段的对面路由器的loopback接口的地址,观察现象(一个通,一个不通)。

CCNPHSRP基本实验--罪恶的温柔

CCNPHSRP基本实验--罪恶的温柔

HSRP基本实验
实验拓扑及相关配置:
实验步骤:
1.配置相关Ip,在路由器间启用OSPF协议
2.分别在R2和R3上配置HSRP
R2:
进入f1/0
设置组1的虚拟路由器的ip
设置优先级(默认为100)使R2成为活跃的网关。

设置抢占功能
设置追踪功能,当F0/0出故障后,R2的优先级自动下降20,让R3有机会成为活跃的网关。

R3:
3.将PC机的默认网关设置为虚拟路由器的IP。

从PC上ping R1可以通。

(第一个包因为要做ARP而丢失)。

用Traceroute可以看出此时是从R2走的。

接下来在PC上长ping R1 期间down掉R2的f0/0口,
在down掉R2后R3的状态由备用变为活跃状态:
观察ping的情况:
在R2 down掉后ping包出现一个U. ,U是R2的目标不可达,. 是R3在做ARP。

OSPF实验报告-CCNP

OSPF实验报告-CCNP

Page 4
4
配置
R5: interface Serial1/1 no ip address encapsulation frame-relay serial restart-delay 0 ! interface Serial1/1.1 multipoint ip address 172.8.100.5 255.255.255.0 ip ospf network broadcast frame-relay map ip 172.8.100.4 504 broadcast frame-relay map ip 172.8.100.6 506 broadcast no frame-relay inverse-arp R6: interface Serial1/1 ip address 172.8.100.6 255.255.255.0 encapsulation frame-relay ip ospf network broadcast ip ospf priority 0 serial restart-delay 0 frame-relay map ip 172.8.100.5 605 broadcast no frame-relay inverse-arp 5 R4: interface Serial1/1 ip address 172.8.100.4 255.255.255.0 encapsulation frame-relay ip ospf network broadcast serial restart-delay 0 frame-relay map ip 172.8.100.5 405 broadcast no frame-relay inverse-arp
Page 18
18
  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

CCNP之OSPF实验案例实验要求:1、总部和分部之间通过帧中继实现互访,协议要求采用OSPF。

要求帧中继不能动态获取映射,也不能静态配置映射2、配置好OSPF协议,验证邻居建立3、确保整个内网全网可达4、确保骨干区域高安全性5、尽量减少网关路由表条目6、R1、R3、R9性能不足,尽量减少其路由条目7、确保总部和分部都只通过自己的ISP上网8、不能出现主机路由实验拓扑:实验步骤:1、帧中继的配置:由于不能配置帧中继动态和静态映射,所以只能采用点对点子接口模式进行配置,在接口下声明自己的DLCI。

其中R5的Route-ID是1.1.1.1,R6的Route-ID是2.2.2.2。

由于是点对点连接,所以不存在DR和BDR。

FR-SW:FR-SW(config)#frame-relay switchingFR-SW(config)#int s0/0FR-SW(config)#no shutFR-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 102 int s0/1 201FR-SW(config)#int s0/1FR-SW(config)#no shutFR-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 201 int s0/0 102R5:R5(config)#int s2/1R5(config-if)#no shutR5(config-if)#encapsulation frame-relayR5(config)#int s2/1.1 point-to-pointR5(config-subif)#ip add 172.16.10.1 255.255.255.0R5(config-subif)#frame-relay int-dlci 102R5(config-subif)#no frame-relay inverse-arpR6:R6(config)#int s1/1R6(config-if)#no shutR6(config-if)#encapsulation frame-relayR6(config-if)#ip add 172.16.10.2 255.255.255.0R6(config-if)# frame-relay int-dlci 201R6(config-if)#no frame-relay inverse-arp测试帧中继连接情况:FR-SW#show frame-relay rouInput Intf Input Dlci Output Intf Output Dlci StatusSerial0/0 102 Serial0/1 201 activeSerial0/1 201 Serial0/0 102 activeR6#show ip ospf intSerial1/1.1 is up, line protocol is upInternet Address 172.16.10.2/24, Area 0Process ID 1, Router ID 2.2.2.2, Network Type POINT_TO_POINT, Cost: 64 Transmit Delay is 1 sec, State POINT_TO_POINT,Timer intervals configured, Hello 10, Dead 40, Wait 40, Retransmit 5oob-resync timeout 40Hello due in 00:00:09Supports Link-local Signaling (LLS)Index 1/1, flood queue length 0Next 0x0(0)/0x0(0)Last flood scan length is 1, maximum is 6Last flood scan time is 0 msec, maximum is 4 msecNeighbor Count is 1, Adjacent neighbor count is 1Adjacent with neighbor 1.1.1.1Suppress hello for 0 neighbor(s)R5#show ip os nei detailNeighbor 2.2.2.2, interface address 172.16.10.2In the area 0 via interface Serial2/1.1Neighbor priority is 0, State is FULL, 12 state changesDR is 0.0.0.0 BDR is 0.0.0.0Options is 0x52LLS Options is 0x1 (LR)Dead timer due in 00:00:35Neighbor is up for 00:35:14Index 2/2, retransmission queue length 0, number of retransmission 3 First 0x0(0)/0x0(0) Next 0x0(0)/0x0(0)Last retransmission scan length is 1, maximum is 1Last retransmission scan time is 0 msec, maximum is 0 msec2、全网启用OSPF 协议(配置端口IP 和环回口步骤省略)R1:R1(config)#router ospf 1R1(config-router)#net 172.16.1.1 0.0.0.0 a 1R1(config-router)#net 172.16.2.1 0.0.0.0 a 1R1(config-router)#net 172.16.3.2 0.0.0.0 a 1R1(config-router)#area 1 stub //配置区域1 为末节路由R2:R2(config)#router ospf 1R2(config-router)#net 172.16.3.1 0.0.0.0 a 1R2(config-router)#net 172.16.8.2 0.0.0.0 a 0R2(config-router)#area 1 stubR3:R3(config)#router ospf 1R3(config-router)#net 172.16.4.1 0.0.0.0 a 2R3(config-router)#net 172.16.5.1 0.0.0.0 a 2R3(config-router)#net 172.16.6.2 0.0.0.0 a 2R3(config-router)#area 2 stub //配置区域2 为末节路由R4:R4(config)#router ospf 1R4(config-router)#net 172.16.6.1 0.0.0.0 a 2R4(config-router)#net 172.16.9.2 0.0.0.0 a 0R4(config-router)#area 2 stubR5:R5(config)#router ospf 1R5(config-router)#net 172.16.8.1 0.0.0.0 a 0R5(config-router)#net 172.16.9.1 0.0.0.0 a 0R5(config-router)#net 172.16.10.1 0.0.0.0 a 0R5(config-router)#default-information originate //启用OSPF默认路由R6:R6(config)#router ospf 1R6(config-router)#net 172.16.10.2 0.0.0.0 a 0R6(config-router)#net 10.1.1.1 0.0.0.0 a 3R6(config-router)#default-information originate //启用OSPF默认路由R7:R7(config)#router ospf 1R7(config-router)#net 10.1.1.2 0.0.0.0 a 3R7(config-router)#net 10.1.2.1 0.0.0.0 a 3R7(config-router)#net 10.1.3.1 0.0.0.0 a 3R8:R8(config)#router ospf 1R8(config-router)#net 10.1.3.2 0.0.0.0 a 3R8(config-router)#net 10.1.4.1 0.0.0.0 a 4R8(config-router)#area 4 stub //配置区域4为末节路由R9:R9(config)#router ospf 1R9(config-router)#net 10.1.4.2 0.0.0.0 a 4R9(config-router)#net 10.1.5.1 0.0.0.0 a 4R9(config-router)#area 4 stub因为不能出现主机路由,所以必须在每个环回口下配置OSPF点对点模式: (config-if)#ip ospf network point-to-point验证末节路由:R1#show ip ospfArea 1Number of interfaces in this area is 3It is a stub areaArea has no authenticationSPF algorithm last executed 01:08:53.436 agoSPF algorithm executed 6 timesArea ranges areNumber of LSA 8. Checksum Sum 0x048879Number of opaque link LSA 0. Checksum Sum 0x000000Number of DCbitless LSA 0Number of indication LSA 0Number of DoNotAge LSA 0Flood list length 0R3#show ip ospfArea 2It is a stub areaArea has no authenticationSPF algorithm last executed 01:28:33.156 agoSPF algorithm executed 4 timesArea ranges areNumber of LSA 8. Checksum Sum 0x04C421Number of opaque link LSA 0. Checksum Sum 0x000000 Number of DCbitless LSA 0Number of indication LSA 0Number of DoNotAge LSA 0Flood list length 0R5#show ip ospfArea BACKBONE(0)Number of interfaces in this area is 3Area has no authenticationSPF algorithm last executed 00:46:27.944 agoSPF algorithm executed 21 timesArea ranges areNumber of LSA 13. Checksum Sum 0x07169ENumber of opaque link LSA 0. Checksum Sum 0x000000 Number of DCbitless LSA 0Number of indication LSA 0Number of DoNotAge LSA 4Flood list length 0R9#show ip ospfArea 4Number of interfaces in this area is 2It is a stub areaArea has no authenticationSPF algorithm last executed 00:47:24.176 agoSPF algorithm executed 16 timesArea ranges areNumber of LSA 8. Checksum Sum 0x041E9ENumber of opaque link LSA 0. Checksum Sum 0x000000 Number of DCbitless LSA 0Number of indication LSA 0Number of DoNotAge LSA 0Flood list length 0R7#show ip ospfArea 3This area has transit capabilityArea has no authenticationSPF algorithm last executed 00:47:41.596 agoSPF algorithm executed 12 timesArea ranges areNumber of LSA 14. Checksum Sum 0x0D84E8Number of opaque link LSA 0. Checksum Sum 0x000000Number of DCbitless LSA 0Number of indication LSA 0Number of DoNotAge LSA 0Flood list length 03、启用OSPF区域汇总:因为R1、R3、R9性能不足,以及为了减少网关的路由条目,所以有必要在每个区域的ABR 上进行汇总。

相关文档
最新文档