版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
Router(config)#iproute172.16.4.0255.255.255.0172.16.3.2
Router(config)#iproute172.16.5.0255.255.255.0172.16.3.2
Router(config)#iproute172.16.2.0255.255.255.0172.16.3.2Router#showiproute
Codes:C-connected,S-static,I-IGRP,R-RIP,M-mobile,B-BGP
D-EIGRP,EX-EIGRPexternal,O-OSPF,IA-OSPFinterareaN1-OSPFNSSAexternaltype1,N2-OSPFNSSAexternaltype2E1-OSPFexternaltype1,E2-OSPFexternaltype2,E-EGP
i-IS-IS,L1-IS-ISlevel-1,L2-IS-ISlevel-2,ia-IS-ISinterarea
-candidatedefault,U-per-userstaticroute,o-ODRP-periodicdownloadedstaticroute
Gatewayoflastresortisnotset172.16.0.0/24issubnetted,6subnets
C
172.16.0.0isdirectlyconnected,FastEthernet0/0
C
直连的网络
S
172.16.1.0[1/0]via172.16.3.2
S
添加的静态路由
S
172.16.2.0[1/0]via172.16.3.2
C
172.16.3.0isdirectlyconnected,Serial2/0
S
172.16.4.0[1/0]via172.16.3.2
S
172.16.5.0[1/0]via172.16.3.2
Router#copyrunning-configstartup-configDestinationfilename[startup-config]?
Buildingconfiguration...[OK]
在Router3上添加静态路由
Router#configt
Router(config)#iproute172.16.0.0255.255.255.0172.16.4.2
Router(config)#iproute172.16.3.0255.255.255.0172.16.4.2
Router(config)#iproute172.16.2.0255.255.255.0172.16.4.2
Router(config)#exit
%SYS-5-CONFIG_I:ConfiguredfromconsolebyconsoleRouter#showiprout 显示路由表Codes:
C-connected,S-static,I-IGRP,R-RIP,M-mobile,B-BGP
D-EIGRP,EX-EIGRPexternal,O-OSPF,IA-OSPFinterareaN1-OSPFNSSAexternaltype1,N2-OSPFNSSAexternaltype2E1-OSPFexternaltype1,E2-OSPFexternaltype2,E-EGP
i-IS-IS,L1-IS-ISlevel-1,L2-IS-ISlevel-2,ia-IS-ISinterarea
-candidatedefault,U-per-userstaticroute,o-ODRP-periodicdownloadedstaticroute
Gatewayoflastresortisnotset172.16.0.0/24issubnetted,6subnets
S 172.16.0.0[1/0]via172.16.4.2
C 172.16.1.0isdirectlyconnected,FastEthernet0/0S 172.16.2.0[1/0]via172.16.4.2
S 172.16.3.0[1/0]via172.16.4.2
C 172.16.4.0isdirectlyconnected,Serial2/0S 172.16.5.0[1/0]via172.16.4.2
Router#copyrunning-configstartup-configDestinationfilename[startup-config]?
Buildingconfiguration...
[OK]在Router0上添加静态路由
Router#configt
Enterconfigurationcommands,oneperline. EndwithCNTL/Z.Router(config)#iproute172.16.0.0255.255.255.0172.16.3.1
Router(config)#iproute172.16.1.0255.255.255.0172.16.4.1
Router(config)#iproute172.16.2.0255.255.255.0172.16.5.2Router(config)#
Router#copyrunning-configstartup-configDestinationfilename[startup-config]?
Buildingconfiguration...[OK]
在Router1上添加静态路由
Router#configure
Configuringfromterminal,memory,ornetwork[terminal]?
Enterconfigurationcommands,oneperline. EndwithCNTL/Z.Router(config)#iproute172.16.0.0255.255.255.0172.16.5.1
Router(config)#iproute172.16.1.0255.255.255.0172.16.5.1
Router(config)#iproute172.16.3.0255.255.255.0172.16.5.1
Router(config)#iproute172.16.4.0255.255.255.0172.16.5.1Router#copyrunning-configstartup-config
Destinationfilename[startup-config]?Buildingconfiguration...
[OK]
测试静态路由
在PC1上测试到PC0的连接
PC>ping172.16.1.1 静态路由配置正确
Pinging172.16.1.1with32bytesofdata:
Replyfrom172.16.1.1:bytes=32time=27msTTL=253Replyfrom172.16.1.1:bytes=32time=14msTTL=253Replyfrom172.16.1.1:bytes=32time=20msTTL=253Replyfrom172.16.1.1:bytes=32time=16msTTL=253PC>tracert172.16.1.2 使用Tracert跟踪数据包Tracingrouteto172.16.1.2overamaximumof30hops:
1 9ms 6ms 8ms 172.16.0.1
2
13ms
10ms
10ms
172.16.3.2
3
17ms
16ms
16ms
172.16.4.1
4
23ms
24ms
25ms
172.16.1.2
Tracecomplete.
在PC1上测试到PC2的连接
PC>ping172.16.2.1 静态路由配置正确
Pinging172.16.2.1with32bytesofdata:
Replyfrom172.16.2.1:bytes=32time=15msTTL=253Replyfrom172.16.2.1:bytes=32time=13msTTL=253Replyfrom172.16.2.1:bytes=32time=16msTTL=253Replyfrom172.16.2.1:bytes=32time=19msTTL=253
在Router3上删除到172.16.0.0/24网段的路由
Router(config)#noiproute172.16.0.0255.255.255.0Router#showiproute
Codes:C-connected,S-static,I-IGRP,R-RIP,M-mobile,B-BGP
D-EIGRP,EX-EIGRPexternal,O-OSPF,IA-OSPFinterareaN1-OSPFNSSAexternaltype1,N2-OSPFNSSAexternaltype2E1-OSPFexternaltype1,E2-OSPFexternaltype2,E-EGP
i-IS-IS,L1-IS-ISlevel-1,L2-IS-ISlevel-2,ia-IS-ISinterarea
*-candidatedefault,U-per-userstaticroute,o-ODRP-periodicdownloadedstaticroute
Gatewayoflastresortisnotset172.16.0.0/24issubnetted,5subnets
C 172.16.1.0isdirectlyconnected,FastEthernet0/0S 172.16.2.0[1/0]via172.16.4.2
S 172.16.3.0[1/0]via172.16.4.2
C 172.16.4.0isdirectlyconnected,Serial2/0
S
172.16.5.0[1/0]via172.16.4.2
没有到172.16.0.0/24网段的路由信息
在PC1上测试到PC0的连接发现数据包不能返回
PC>ping172.16.1.1
Pinging172.16.1.1with32bytesofdata:
Requesttimedout.Requesttimedout.Requesttimedout.Requesttimedout.
PC>tracert172.16.1.2 使用tracert跟踪数据包路径
Tracingrouteto172.16.1.2overamaximumof30hops:
1
9ms
7ms
8ms
172.16.0.1
2
12ms
14ms
14ms
172.16.3.2
3
*
*
*
Requesttimedout.
4
*
*
*
Requesttimedout.
5
*
*
*
Requesttimedout.
在PC0上测试到PC1的连接
PC>ping172.16.0.2
Pinging172.16.0.2with32bytesofdata:
Replyfrom172.16.1.1:Destinationhostunreachable. 提示目标主机不可到达
Replyfrom172.16.1.1:Destinationhostunreachable.Replyfrom172.16.1.1:Destinationhostunreachable.Replyfrom172.16.1.1:Destinationhostunreachable.
4.4在PC1上测试到PC0的连接发现数据包不能返回
PC>ping172.16.1.1
Pinging172.16.1.1with32bytesofdata:
Re
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 2026年云南省蒙自市高二生物下册期末考试模拟卷附完整答案【名校卷】
- 2025年山东省昌邑市高二生物下册期末考试考试卷含完整答案【名校卷】
- 2026年幼儿园中班下学期述职报告
- 2026年云南省景洪市高二生物下册期末考试测试卷(巩固)附答案
- 2025年江苏省如皋市高二生物下册期末考试试卷及完整答案(名校卷)
- 2026年浙江省桐乡市高二生物下册期末考试考试卷【轻巧夺冠】附答案
- 2026年辽宁省开原市高二生物下册期末考试测试卷(考试直接用)附答案
- 2026年幼儿园班级一日活动管理
- 2026年河北省遵化市高二生物下册期末考试考试卷附答案(完整版)
- 2026年河南省灵宝市高二生物下册期末考试考试卷含答案(培优)
- 2026年海南省海口市中考道德与法治模拟试卷(二)(含答案)
- 2026年7月自考07827唐宋诗词鉴赏押题及答案
- 排污泥管线施工方案(3篇)
- 2026年国家电网招聘《计算机类》题库综合试卷含答案详解【培优】
- 2026年云南省职教高考电工技术类《电工基础理论知识》考试核心题库
- 机关干部数字办公能力提升方案
- 餐厅收货与验货操作规程
- 2026年广东省初中信息技术合格性考试题库试题(含答案)
- 古代成都介绍
- GB/T 46906-2025航空障碍物标志与障碍灯技术规范
- 工匠精神介绍
评论
0/150
提交评论