欢迎来到天天文库
浏览记录
ID:24666504
大小:45.00 KB
页数:3页
时间:2018-11-15
《实验3配置静态路由》由会员上传分享,免费在线阅读,更多相关内容在应用文档-天天文库。
1、实验三配置静态路由实验目的学习静态路由的设计思路,掌握路由器的静态路由配置方法。实验环境实验拓扑结构如图8.1所示。172.16.2.0/24172.16.3.0/24172.16.1.0/24Router1Router2F0S0S0F0PC1Router1:F0=172.16.1.1Router2:S0=172.16.2.2PC2172.16.1.11S0=172.16.2.1F0=172.16.3.2172.16.3.22图8.1网络拓扑实验的内容和要求掌握通过静态路由方式实现网络的连通性实验说明第一步:在路由器Router1(R2620)上配置快速以太网口的IP地址Router1#c
2、onfigureterminalRouter1(config)#interfaceFastEthernet0!进入以太网0口配置状态Router1(config-if)#ipaddress172.16.1.1255.255.255.0!为以太网0口配置地址Router1(config-if)#noshutdown!打开以太网0口Router1(config-if)#end第二步:在路由器Router1(R2620)上配置广域网口的IP地址和时钟频率(假设Router1为DCE端)Router1#conRouter1(config)#interfaceserial0!进入广域网0口配置状态R
3、outer1(config-if)#ipaddress172.16.2.1255.255.255.0!为广域网0口配置地址Router1(config-if)#clockrate64000!DCE端需设置端口时钟频率Router1(config-if)#noshutdown!打开广域网0口Router1(config-if)#end验证测试:验证路由器接口配置状态。Router1#showipinterfacebrief!显示IP端口状态简况InterfaceIP-AddressOK?MethodStatusProtocolFastEthernet0172.16.1.1/24YESmanu
4、alupupFastEthernet1noaddressYESunsetadministrativelydowndownSerial0172.16.2.1/24YESmanualupupSerial1noaddressYESunsetadministrativelydowndownNull0noaddressYESup第三步:为Router1(R2620)添加静态路由Router1#conRouter1(config)#iproute172.16.3.0255.255.255.0172.16.2.2!添加静态路由Router1(config)#endRouter1#showiproute!
5、显示路由表Codes:C-connected,S-static,R-RIPO-OSPF,IA-OSPFinterareaE1-OSPFexternaltype1,E2-OSPFexternaltype2Gatewayoflastresortisnotset172.16.0.0/24issubnetted,3subnetsC172.16.1.0isdirectlyconnected,FastEthernet0C172.16.2.0isdirectlyconnected,Serial0S172.16.3.0[1/0]via172.16.2.2Router1#wr!保存所作的修改第四步:在路由器
6、Router2(R2624)上配置快速以太网口的IP地址Router2#conRouter2(config)#interfacefastethernet0Router2(config-if)#ipaddress172.16.3.2255.255.255.0Router2(config-if)#noshutdownRouter2(config-if)#end第五步:在路由器Router2(R2624)上配置广域网口的IP地址Router2#confRouter2(config)#interfaceserial0Router2(config-if)#ipaddress172.16.2.2255
7、.255.255.0Router2(config-if)#noshutdownRouter2(config-if)#endRouter2#showipinterfacebriefInterfaceIP-AddressOK?MethodStatusProtocolFastEthernet0172.16.3.2YESmanualupupFastEthernet1unassignedYESunsetadministrative
此文档下载收益归作者所有