




版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1、ea 1配置ospf 虚链路,router-id 如图配OP 口配置ospf 手工路由汇总3.配置ospf 接口验证(R1 和R 令查看结果 个路由器接口使其连通。R1的配置R1(config# interface Loopback0R1(config-if# ip address 30.1.1.1 255.255.255.0R1(config# interface Loopback1R1(config-if# ip address 30.1.2.1 255.255.255.0R1(config# interface Loopback2R1(config-if# ip address 30.1
2、.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# interface s0R2(config-if# ip address 10.1.1.2 255.255.255.0R2(config-if#clockrate 64000R2(confi
3、g-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# interface s1R3(config-if# ip address 20.1.1.2 255.255.255.0R3(config-if#clockrate 64000R3(config#
4、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.255 area 0将接口参与到区域0内R1(config-router#network 30.1.2.0 0.0.0.255 area 0R1(config-router#net
5、work 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-router#network 50.1.1.0 0.0.0.255 area 1R3的配置R3(config#router ospf 2R3(config-router#rou
6、ter-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 配置虚电路, 指对端的router-idR2的配置R2(config#router ospf 1R2(config-router# area 1 virtual-link 1.1.1.1步骤四:配
7、置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 和R2)R1的配置R1(config# interface Serial0R1(config-if# ip ospf authentication message-digest启
8、用验证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两端必须一致步骤六:查看路由表R1#show ip routeCodes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGPD
9、 - 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 summary, L1 - IS-IS level-1, L2 - IS-IS level-2ia - IS-IS inter area, * - candidate default, U
10、 - 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 is subnetted, 1 subnetsO IA20.1.1.0 110/128 via 10.1.1.2, 00:09:31, Serial0OSPF 域间学来的路由条目
11、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 masksC30.1.3.0/24 is directly connected, Loopback2C30.1.2.0/24 is directly connected, Loopb
12、ack1C30.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 external, O - OSPF, IA - OSPF inter areaN1 - OSPF NSSA external type 1, N2 - OSPF NSSA exter
13、nal 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 routeo - ODR, P - periodic downloaded static routeGateway of last resort is not set50.0.0.0/24
14、 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:04:48, Serial110.0.0.0/24 is subnetted, 1 subnetsC10.1.1.0 is directly connected, Serial03
15、0.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/65 via 10.1.1.1, 00:04:39, Serial0R3#show ip routeCodes: C - connected, S - static, I -
16、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 summary, L1 - IS-IS level-1, L2 - IS-IS level-2ia - IS-IS i
17、nter 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:02, Serial120.0.0.0/24 is subnetted, 1 subnetsC20.1.1.0 is directly connected, Serial140
18、.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 110/129 via 20.1.1.1, 00:01:47, Serial1步骤七:查看邻居表R1#show ip ospf neighbor邻居已建立,点对点无DR 之说Nei
19、ghbor 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.2Serial1R3#show ip ospf neighborNeighbor IDPriStateDead TimeAddressInterface2.2.2.21FULL
20、/-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/32/36 msR2#ping 30.1.1.1!Success rate is 100 percent (5/5, round-trip min/avg/max = 32/32
21、/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!interface 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 0network 30.1.3
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 广州商学院《食品质量与安全控制》2023-2024学年第一学期期末试卷
- 湖南长沙市芙蓉区铁路一中学2024年数学八上期末经典试题含解析
- 江苏省盐城市东台第一教育集团2024年九上物理期末预测试题含解析
- 2025届河南省延津县物理九年级第一学期期末质量跟踪监视模拟试题含解析
- 2025届四川省绵阳市江油实验学校物理九年级第一学期期末复习检测模拟试题含解析
- 甘肃省白银市平川四中学2025届数学九年级第一学期期末综合测试模拟试题含解析
- 江苏省靖江市滨江学校2024年九年级数学第一学期期末质量检测模拟试题含解析
- 潍坊工程职业学院《高级影视特效合成》2023-2024学年第一学期期末试卷
- 大气层与气候变化的科学研究:高中地理教学教案
- 电子合同管理平台合作协议
- 项目结算策划
- 恩赐测试完整版本
- 腱鞘囊肿学习课件
- 聚硫醇伯胺混合乳化剂黄变和结皮现象的研究
- 王慧文清华大学《互联网产品管理课》
- 2.PaleoScan详细操作流程
- 培训费报销和审批表
- 天津卫生系统招聘2022年考试真题及答案解析
- 2022年益阳市不动产登记中心事业单位工作人员招聘笔试试题及答案
- GB/T 19716-2005信息技术信息安全管理实用规则
- 2023年上海英语高考卷及答案完整版
评论
0/150
提交评论