计算机网络上机静态路由,计算机网络实验报告——静态路由与缺省路由的使用...

《计算机网络实验报告——静态路由与缺省路由的使用》由会员分享,可在线阅读,更多相关《计算机网络实验报告——静态路由与缺省路由的使用(8页珍藏版)》请在人人文库网上搜索。

1、实验三 静态路由与缺省路由的使用一、实验环境:Windows7操作系统的计算机;Boson Netsim for CCNA v6.0805交换机2、 实验步骤;rt1接到pc1,rt2接到pc2,rt1到rt2选择点到点类型,rt2的serial0作为DCE端。配置如下:(1)Router1配置:Routerenable Router#config tEnter configuration commands, one per line. End with CNTL/Z.Router(config)#hostname router1router1(config)#ena se c1router1。

2、(config)#vty 0 4% Invalid input detected at marker.router1(config)#line vty 0 4router1(config-line)#login router1(config-line)#pass c2router1(config-line)#int eth 0router1(config-if)#ip address 192.168.1.1 255.255.255.0router1(config-if)#no shut%LINK-3-UPDOWN: Interface Ethernet0, changed state to u。

3、prouter1(config-if)#int se 0router1(config-if)#ip address 10.0.0.1 255.0.0.0router1(config-if)#clock rate 64000router1(config-if)#no shut%LINK-3-UPDOWN: Interface Serial0, changed state to up%LINK-3-UPDOWN: Interface Serial0, changed state to down%LINEPROTO-5-UPDOWN: Line protocol on Interface Seria。

4、l0, changed state to downrouter1(config-if)#endrouter1#copy run startDestination filename startup-config?Building configuration.OK(2)Router2配置:RouterenableRouter#config tEnter configuration commands, one per line. End with CNTL/Z.Router(config)#host router2router2(config)#ena se c1router2(config)#li。

5、ne vty 0 4router2(config-line)#loginrouter2(config-line)#pass c2router2(config-line)#int eth 0router2(config-if)#ip address 192.168.2.1 255.255.255.0router2(config-if)#no shut%LINK-3-UPDOWN: Interface Ethernet0, changed state to uprouter2(config-if)#int se 0router2(config-if)#ip add 10.0.0.2 255.0.0。

6、.0router2(config-if)#no shut%LINK-3-UPDOWN: Interface Serial0, changed state to up%LINK-3-UPDOWN: Interface Serial0, changed state to down%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0, changed state to downrouter2(config-if)#endrouter2#copy run startDestination filename startup-config?Buil。

7、ding configuration.OK(3) PC配置:PC1 192.168.1.2 255.255.255.0 192.168.1.1PC2 192.168.2.2 255.255.255.0 192.168.1.1(4) 配置,测试静态路由在Rputer1中配置:router1#ip route 192.168.2.0 255.255.255.0 10.0.0.2% Invalid input detected at marker.router1# ip router 192.168.2.0 255.255.255.0 10.0.0.2% Invalid input detected。

8、 at marker.router1#config tEnter configuration commands, one per line. End with CNTL/Z.router1(config)# ip route 192.168.2.0 255.255.255.0 10.0.0.2router1(config)#endrouter1#copy run startDestination filename startup-config?Building configuration.OKrouter1#router1#show ip rpute% Invalid input detect。

9、ed at marker.router1#show ip routeCodes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGPD - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter areaE1 - OSPF external type 1, E2 - OSPF external type 2, E - EGPi - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, * - candidate defaul。

10、tU - per-user static routeGateway of last resort is not setC 192.168.1.0 is directly connected, Ethernet0S 192.168.2.0 1/0 via 10.0.0.2在Router2中配置:router2#router2#router2#config tEnter configuration commands, one per line. End with CNTL/Z.router2(config)#ip route 192.168.1,0 255.255.255.0 10.0.0.1% 。

11、Invalid input detected at marker.router2(config)#ip route 192.168.1.0 255.255.255.0 10.0.0.1router2(config)#endrouter2#copy run startDestination filename startup-config?Building configuration.OKrouter2#show ip rpute% Invalid input detected at marker.router2#show ip routeCodes: C - connected, S - sta。

12、tic, I - IGRP, R - RIP, M - mobile, B - BGPD - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter areaE1 - OSPF external type 1, E2 - OSPF external type 2, E - EGPi - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, * - candidate defaultU - per-user static routeGateway of last resort is not setC 19。

13、2.168.2.0 is directly connected, Ethernet0S 192.168.1.0 1/0 via 10.0.0.1再分别选择R1,R2测试静态路由,命令如下:router1#show ip rpute% Invalid input detected at marker.router1#show ip routeCodes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGPD - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter。

14、 areaE1 - OSPF external type 1, E2 - OSPF external type 2, E - EGPi - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, * - candidate defaultU - per-user static routeGateway of last resort is not setC 192.168.1.0 is directly connected, Ethernet0S 192.168.2.0 1/0 via 10.0.0.2router2#show ip routeCodes: 。

15、C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGPD - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter areaE1 - OSPF external type 1, E2 - OSPF external type 2, E - EGPi - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, * - candidate defaultU - per-user static routeGateway of last。

16、 resort is not setC 192.168.2.0 is directly connected, Ethernet0S 192.168.1.0 1/0 via 10.0.0.1(5) 配置,测试缺省路由:router2#config tEnter configuration commands, one per line. End with CNTL/Z.router2(config)#no ip route 192.168.1.0 255.255.255.0 10.0.0.1router2(config)#ip route 0.0.0.0 0.0.0.0 10.0.0.1route。

17、r2(config)#endrouter2#copy run startDestination filename startup-config?Building configuration.OK3、 最终配置列表:Router1Router2PC1PC2Ethernet ip192.168.1.0192.168.2.0192.168.1.2 192.168.2.2Serial ip10.0.0.210.0.0.1子网掩码255.255.255.0 255.255.255.0 默认网关192.168.1.0192.168.2.0四、结果分析:配置完PC后,先测试一下:在PC1 ping Rout。

18、er1C:ping 192.168.1.1Pinging 192.168.1.1 with 32 bytes of data:Reply from 192.168.1.1: bytes=32 time=60ms TTL=241Reply from 192.168.1.1: bytes=32 time=60ms TTL=241Reply from 192.168.1.1: bytes=32 time=60ms TTL=241Reply from 192.168.1.1: bytes=32 time=60ms TTL=241Reply from 192.168.1.1: bytes=32 time。

19、=60ms TTL=241Ping statistics for 192.168.1.1: Packets: Sent = 5, Received = 5, Lost = 0 (0% loss),Approximate round trip times in milli-seconds:Minimum = 50ms, Maximum = 60ms, Average = 55ms在PC2 ping Router2C:ping 192.168.2.1Pinging 192.168.2.1 with 32 bytes of data:Reply from 192.168.2.1: bytes=32 。

20、time=60ms TTL=241Reply from 192.168.2.1: bytes=32 time=60ms TTL=241Reply from 192.168.2.1: bytes=32 time=60ms TTL=241Reply from 192.168.2.1: bytes=32 time=60ms TTL=241Reply from 192.168.2.1: bytes=32 time=60ms TTL=241Ping statistics for 192.168.2.1: Packets: Sent = 5, Received = 5, Lost = 0 (0% loss。

21、),Approximate round trip times in milli-seconds:Minimum = 50ms, Maximum = 60ms, Average = 55msC:ping 192.168.2.2Pinging 192.168.2.2 with 32 bytes of data:Reply from 192.168.2.2: bytes=32 time=60ms TTL=241Reply from 192.168.2.2: bytes=32 time=60ms TTL=241Reply from 192.168.2.2: bytes=32 time=60ms TTL。

22、=241Reply from 192.168.2.2: bytes=32 time=60ms TTL=241Reply from 192.168.2.2: bytes=32 time=60ms TTL=241Ping statistics for 192.168.2.2: Packets: Sent = 5, Received = 5, Lost = 0 (0% loss),Approximate round trip times in milli-seconds:Minimum = 50ms, Maximum = 60ms, Average = 55ms配置缺省路由后:C:ping 172.。

23、16.1.1Pinging 172.16.1.1with 32 bytes of data:Reply from 172.16.1.1: bytes=32 time=60ms TTL=241Reply from 172.16.1.1: bytes=32 time=60ms TTL=241Reply from 172.16.1.1: bytes=32 time=60ms TTL=241Reply from 172.16.1.1: bytes=32 time=60ms TTL=241Reply from 172.16.1.1: bytes=32 time=60ms TTL=241Ping statistics for 172.16.1.1: Packets: Sent = 5, Received = 5, Lost = 0 (0% loss),Approximate round trip times in milli-seconds:Minimum = 50ms, Maximum = 60ms, Average = 55ms5、 实验拓扑截图:6、 心得体会:通过本次实验掌握了静态路由与缺省路由的配置方法,但是对于实验中的许多命令还是不熟练,今后要多加练习。

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值