




全文预览已结束
下载本文档
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
第十章 高级配置第一步:为六台路由器设置IP地址RT1enableRT1#config terminalRT1(config)#interface s0/0RT1(config-if)#ip add 192.168.10.1 255.255.255.0RT1(config-if)#no shutdown RT1(config-if)#exitRT1(config)#interface loopback 0RT1(config-if)#ip add 192.168.20.1 255.255.255.0RT1(config-if)#interface loopback 1 RT1(config-if)#ip add 192.168.30.1 255.255.255.0RT1(config-if)#interface loopback 2 RT1(config-if)#ip add 192.168.40.1 255.255.255.0RT1(config-if)#no shutdownRT2enable RT2#configure terminal RT2(config)#interface s0/0RT2(config-if)#ip add 192.168.10.2 255.255.255.0RT2(config-if)#no shutdown RT2(config-if)#interface s0/1 RT2(config-if)#ip add 192.168.1.1 255.255.255.0 RT2(config-if)#no shutdownRT3enable RT3#configure terminal RT3(config)#interface s0/1RT3(config-if)#ip add 192.168.1.2 255.255.255.0RT3(config-if)#no shutdown RT3(config)#interface s0/2RT3(config-if)#ip add 192.168.2.1 255.255.255.0RT3(config-if)#no shutdownRT4enable RT4#configure terminal RT4(config)#interface s0/2RT4(config-if)#ip add 192.168.2.2 255.255.255.0RT4(config-if)#no shutdown RT4(config-if)#interface s0/3RT4(config-if)#ip add 192.168.3.1 255.255.255.0RT4(config-if)#no shutdownRT5enable RT5#configure terminal RT5(config)#interface s0/3RT5(config-if)#ip add 192.168.3.2 255.255.255.0RT5(config-if)#no shutdown RT5(config-if)#interface s0/0RT5(config-if)#ip add 192.168.70.1 255.255.255.0 RT5(config-if)#no shutdownRT6enable RT6#configure terminal RT6(config)#interface s0/0RT6(config-if)#ip add 192.168.70.2 255.255.255.0RT6(config-if)#no shutdown RT6(config-if)#exitRT6(config)#interface loopback 0RT6(config-if)#ip add 192.168.80.1 255.255.255.0RT6(config-if)#interface loopback 1 RT6(config-if)#ip add 192.168.90.1 255.255.255.0RT6(config-if)#interface loopback 2 RT6(config-if)#ip add 192.168.100.1 255.255.255.0RT6(config-if)#no shutdown第二步:启用OSPF协议和RIP协议进行宣告RT1 (config)#router rip RT1 (config-router)#no auto-summary RT1 (config-router)#version 2RT1(config-router)#network 192.168.10.0RT1 (config-router)#network 192.168.20.0RT1 (config-router)#network 192.168.30.0RT1 (config-router)#network 192.168.40.0RT2(config)#router ospf 1RT2(config-router)#network 192.168.1.0 0.0.0.255 area 1RT2(config-router)#exitRT2(config)#router rip RT2(config-router)#no auto-summary RT2(config-router)#version 2RT2(config-router)#network 192.168.10.0RT2(config-router)#exitRT3(config)#router ospf 1RT3(config-router)#network 192.168.1.0 0.0.0.255 area 1RT3(config-router)#network 192.168.2.0 0.0.0.255 area 0RT4(config)#router ospf 1RT4(config-router)#network 192.168.2.0 0.0.0.255 area 0RT4(config-router)#network 192.168.3.0 0.0.0.255 area 2RT5(config)#router ospf 1RT5(config-router)#network 192.168.3.0 0.0.0.255 area 2RT5(config-router)#exitRT5(config)#router rip RT5(config-router)#no auto-summary RT5(config-router)#version 2RT5(config-router)#network 192.168.70.0RT5(config-router)#exitRT6(config)#router rip RT6(config-router)#no auto-summary RT6(config-router)#version 2RT6(config-router)#network 192.168.70.0RT6(config-router)#network 192.168.80.0RT6(config-router)#network 192.168.90.0RT6(config-router)#network 192.168.100.0第三步:路由重分发作用:实现不同自治系统间路由信息的传播RT2(config)#router ospf 1RT2(config-router)#redistribute rip subnetsRT2(config)#router rip RT2(config-router)#redistribute ospf 1 metric 10RT5(config)#router ospf 1RT5(config-router)#redistribute rip subnetsRT5(config)#router rip RT5(config-router)#redistribute ospf 1 metric 10第四步:进行测试RT1#ping 192.168.80.1Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 192.168.80.1, timeout is 2 seconds:!Success rate is 100 percent (5/5), round-trip min/avg/max = 280/312/376 msRT6#ping 192.168.20.1Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 192.168.20.1, timeout is 2 seconds:!Success rate is 100 percent (5/5), round-trip min/avg/max = 248/372/548 ms第五步:设置区域RT4(config)#router ospf 1RT4(config-router)#area 2 nssa *Mar 1 01:21:13.579: %OSPF-5-ADJCHG: Process 1, Nbr 192.168.70.1 on Serial0/3 from FULL to DOWN, Neighbor Down: Adjacency forced to reset*Mar 1 01:21:32.315: %OSPF-5-ADJCHG: Process 1, Nbr 192.168.70.1 on Serial0/3 from LOADING to FULL, Loading DoneRT5(config)#router ospf 1RT5(config-router)#area 2 nssa *Mar 1 01:21:28.987: %OSPF-5-ADJCHG: Process 1, Nbr 192.168.3.1 on Serial0/3 from FULL to DOWN, Neighbor Down: Adjacency forced to reset*Mar 1 01:21:32.411: %OSPF-5-ADJCHG: Process 1, Nbr 192.168.3.1 on Serial0/3 from LOADING to FULL, Loading Done第六步:进行验证RT5#show ip route Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2 E1 - OSPF external type 1, E2 - OSPF external type 2 i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2 ia - IS-IS inter area, * - candidate default, U - per-user static route o - ODR, P - periodic downloaded static routeGateway of last resort is not setR 192.168.90.0/24 120/1 via 192.168.70.2, 00:00:25, Serial0/0R 192.168.80.0/24 120/1 via 192.168.70.2, 00:00:25, Serial0/0O IA 192.168.1.0/24 110
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 海船船员轮机考试题库及答案
- 贸易合同履行承诺书9篇范文
- 合同履行保障安排承诺函5篇
- 2025年国际经济法的基本理论与案例分析试题及答案
- 2025年新疆农业产业链合作合同协议
- 高速公司考试题目及答案
- 初一的月考试卷及答案
- 微积分下考试题目及答案
- 锐捷网络笔试测试题及答案
- 山东初一数学月考试卷及答案
- 《劳模工匠之光》课件 第1、2单元 民族大厦的基石、改革攻坚的先锋
- 2025至2030年中国阻焊油墨行业发展运行现状及投资潜力预测报告
- 电力电子技术课件 单结晶体管及其触发电路
- 研究《农村集体经济组织法》对推动新型农村集体经济发展的影响及实践策略
- 2025年党建知识应知应会测试题库(附答案)
- 规范网络文化市场促进健康有序发展
- 测绘新技术之无人机的
- 基于PLC的立体仓库控制系统设计
- 2025年北京市交通发展年度报告-北京交通发展研究院
- 2025年新九年级数学暑假衔接讲练 (人教版)专题07 一元二次方程单元测试 (学生版)
- 施工单位工抵房管理制度
评论
0/150
提交评论