




版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1、新版BSCI 实验手册-配置ospf 验证,汇总,虚链路 环境:三台路由器串口相连,其它接口配置如图要求:1. 在area 1配置ospf 虚链路,router-id 如图配置2. 将R1的LOOP 口配置ospf 手工路由汇总3.配置ospf 接口验证(R1 和R2)4. 使用show 命令查看结果 步骤一: 配置三个路由器接口使其连通。R1的配置R1(config# interface Loopback0R1(config-if# ip address 30.1.1.1 255.255.255.0R1(config# interface Loopback1R1(config-if# ip
2、address 30.1.2.1 255.255.255.0R1(config# interface Loopback2R1(config-if# ip address 30.1.3.1 255.255.255.0R1(config# interface s0R1(config-if# ip address 10.1.1.1 255.255.255.0R1(config-if#no shutdownR2的配置R2(config# interface Loopback0R2(config-if# ip address 50.1.1.1 255.255.255.0R2(config# interf
3、ace s0R2(config-if# ip address 10.1.1.2 255.255.255.0R2(config-if#clockrate 64000R2(config-if#no shutdownR2(config# interface s1R2(config-if# ip address 20.1.1.1 255.255.255.0R2(config-if#no shutdownR3的配置R3(config# interface Loopback0R3(config-if# ip address 40.1.1.1 255.255.255.0R3(config# interfac
4、e s1R3(config-if# ip address 20.1.1.2 255.255.255.0R3(config-if#clockrate 64000R3(config#no shutdown步骤二: 配置ospfR1的配置R1(config#router ospf 1启用ospf 协议,进程号为1R1(config-router#router-id 1.1.1.1配置router-idR1(config-router#network 10.1.1.0 0.0.0.255 area 1将接口参与到区域1内R1(config-router#network 30.1.1.0 0.0.0.2
5、55 area 0将接口参与到区域0内R1(config-router#network 30.1.2.0 0.0.0.255 area 0R1(config-router#network 30.1.3.0 0.0.0.255 area 0R2的配置R2(config#router ospf 1R2(config-router#router-id 2.2.2.2R2(config-router#network 10.1.1.0 0.0.0.255 area 1R2(config-router#network 20.1.1.0 0.0.0.255 area 2将接口参与到区域2内R2(config
6、-router#network 50.1.1.0 0.0.0.255 area 1R3的配置R3(config#router ospf 2R3(config-router#router-id 3.3.3.3R3(config-router#network 20.1.1.0 0.0.0.255 area 2R3(config-router#network 40.1.1.0 0.0.0.255 area 2步骤三:配置ospf 虚链路R1的配置R1(config#router ospf 1R1(config-router# area 1 virtual-link 2.2.2.2 配置虚电路, 指对
7、端的router-idR2的配置R2(config#router ospf 1R2(config-router# area 1 virtual-link 1.1.1.1步骤四:配置ospf 手工路由汇总R1的配置R1(config#router ospf 1R1(config-router# area 0 range 30.1.0.0 255.255.252.0手工汇总路由R2的配置R2(config#router ospf 1R2(config-router# area 0 range 30.1.0.0 255.255.252.0因你的区域0已经延伸到此步骤五:配置ospf 接口验证(R1
8、和R2)R1的配置R1(config# interface Serial0R1(config-if# ip ospf authentication message-digest启用验证R1(config-if# ip ospf message-digest-key 1 md5 cisco 定义密钥R2的配置R2(config# interface Serial0R2(config-if# ip ospf authentication message-digestR2(config-if# ip ospf message-digest-key 1 md5 cisco两端必须一致步骤六:查看路由表
9、R1#show ip routeCodes: C - connected, S - static, I - IGRP, 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 2, E - EGPi - IS-IS, su - IS-IS summa
10、ry, 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 set50.0.0.0/32 is subnetted, 1 subnetsO50.1.1.1 110/65 via 10.1.1.2, 00:09:41, Serial0OSPF 域内学来的路由条目20.0.0.0/24
11、is subnetted, 1 subnetsO IA20.1.1.0 110/128 via 10.1.1.2, 00:09:31, Serial0OSPF 域间学来的路由条目40.0.0.0/32 is subnetted, 1 subnetsO IA40.1.1.1 110/129 via 10.1.1.2, 00:09:31, Serial010.0.0.0/24 is subnetted, 1 subnetsC10.1.1.0 is directly connected, Serial030.0.0.0/8 is variably subnetted, 4 subnets, 2 ma
12、sksC30.1.3.0/24 is directly connected, Loopback2C30.1.2.0/24 is directly connected, Loopback1C30.1.1.0/24 is directly connected, Loopback0O30.1.0.0/22 is a summary, 00:09:32, Null0手工汇总的条目R2#show ip routeCodes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGPD - EIGRP, EX - EIGRP ext
13、ernal, 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, 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
14、o - ODR, P - periodic downloaded static routeGateway of last resort is not set50.0.0.0/24 is subnetted, 1 subnetsC50.1.1.0 is directly connected, Loopback020.0.0.0/24 is subnetted, 1 subnetsC20.1.1.0 is directly connected, Serial140.0.0.0/32 is subnetted, 1 subnetsO40.1.1.1 110/65 via 20.1.1.2, 00:0
15、4:48, Serial110.0.0.0/24 is subnetted, 1 subnetsC10.1.1.0 is directly connected, Serial030.0.0.0/8 is variably subnetted, 4 subnets, 2 masksO30.1.2.1/32 110/65 via 10.1.1.1, 00:04:38, Serial0O30.1.3.1/32 110/65 via 10.1.1.1, 00:04:39, Serial0O30.1.0.0/22 is a summary, 00:04:39, Null0O30.1.1.1/32 110
16、/65 via 10.1.1.1, 00:04:39, Serial0R3#show ip routeCodes: C - connected, S - static, I - IGRP, 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 2,
17、 E - EGPi - 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 set50.0.0.0/32 is subnetted, 1 subnetsO IA50.1.1.1 110/65 via 20.1.1.1, 00:02
18、:02, Serial120.0.0.0/24 is subnetted, 1 subnetsC20.1.1.0 is directly connected, Serial140.0.0.0/24 is subnetted, 1 subnetsC40.1.1.0 is directly connected, Loopback010.0.0.0/24 is subnetted, 1 subnetsO IA10.1.1.0 110/128 via 20.1.1.1, 00:02:02, Serial130.0.0.0/22 is subnetted, 1 subnetsO IA30.1.0.0 1
19、10/129 via 20.1.1.1, 00:01:47, Serial1步骤七:查看邻居表R1#show ip ospf neighbor邻居已建立,点对点无DR 之说Neighbor IDPriStateDead TimeAddressInterface2.2.2.21FULL/-00:00:3310.1.1.2Serial0R2#show ip ospf neighborNeighbor IDPriStateDead TimeAddressInterface1.1.1.11FULL/-00:00:3310.1.1.1Serial03.3.3.31FULL/-00:00:3420.1.1
20、.2Serial1R3#show ip ospf neighborNeighbor IDPriStateDead TimeAddressInterface2.2.2.21FULL/-00:00:3720.1.1.1Serial1步骤八:用ping 命令测试R1#ping 40.1.1.1 测试连通性!Success rate is 100 percent (5/5, round-trip min/avg/max = 56/60/68 msR1#ping 50.1.1.1!Success rate is 100 percent (5/5, round-trip min/avg/max = 32/
21、32/36 msR2#ping 30.1.1.1!Success rate is 100 percent (5/5, round-trip min/avg/max = 32/32/32 ms步骤九:显示当前配置信息R1的配置信息R1#sh runhostname R1!interface Loopback0ip address 30.1.1.1 255.255.255.0!interface Loopback1ip address 30.1.2.1 255.255.255.0!interface Loopback2ip address 30.1.3.1 255.255.255.0!interf
22、ace Serial0ip address 10.1.1.1 255.255.255.0ip ospf authentication message-digestip ospf message-digest-key 1 md5 cisco !router ospf 1router-id 1.1.1.1area 0 range 30.1.0.0 255.255.252.0area 1 virtual-link 2.2.2.2network 10.1.1.0 0.0.0.255 area 1network 30.1.1.0 0.0.0.255 area 0network 30.1.2.0 0.0.0.255 area 0netwo
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
评论
0/150
提交评论