花了快一个月的时间之后,我的Linux服务器建设学习算是小告了一个段落了。现在开始要回到windows里面利用Boson NetSim这个cisco实验模拟器来加深对路由交换的配置学习了。好在上学期上课的时候学了一些路由器的知识,在实验室也做过一些实验,但大都比较简单,反正我觉得没学到什么高深的网络配置知识。趁着暑假,自己来做做模拟实验,也可以学到很多东西,今天是第一个比较简单的实验,但由于以前没涉及到某些方面,这样一个简单的实验还是花了我不少的时间的,呵呵,下面来看这个实验:
如上的拓扑所示,(IP地址是我自己确定的,并且用ps写上的,这样看得比较清楚),现在需要完成的就是让HostA能和HostB互相ping通,我在配置过程中遇到了一些问题,我都把容易出错的地方注释在下面的配置语句后面了,希望那些跟我一样在网络配置方面还处于初步的朋友一些帮助,还希望高手们不要见笑,并且给我多加指教,先谢谢了,好了,看我的具体配置如下:
router1的配置:
Press Enter to Start

Router>
Router>en
Router#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
Router(config)#hostname router1
router1(config)#interface e0
router1(config-if)#ip address 192.168.1.2 255.255.255.0 
router1(config-if)#no shut
%LINK-3-UPDOWN: Interface Ethernet0, changed state to up
router1(config-if)#interface s0
router1(config-if)#ip address 192.168.2.1 255.255.255.0
router1(config-if)#clock rate 6400                   //clock rate是dce设备给dte设备提供时钟频率的,需要在dce里面设置,而另外的一个路由器里面则不用设置
router1(config-if)#no shut
%LINK-3-UPDOWN: Interface Serial0, changed state to up
router1(config-if)#end
%LINK-3-UPDOWN: Interface Serial0, changed state to down
%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0, changed state to down
router1#config t
Enter configuration commands, one per line.  End with CNTL/Z.
router1(config)#ip route 192.168.3.0 255.255.255.0 192.168.2.1   //设定静态路由
router1(config)#ip route 192.168.2.0 255.255.255.0 192.168.2.1
router1(config)#end
router1#copy running startup
Destination filename [startup-config]?
Building configuration...
[OK]
%LINK-3-UPDOWN: Interface Serial0, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0, changed state to up
router2的配置:
Press Enter to Start

Router>en
Router#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
Router(config)#interface e0
Router(config-if)#end
Router#config t
Enter configuration commands, one per line.  End with CNTL/Z.
Router(config)#hostname router2
router2(config)#interface s0
router2(config-if)#ip address 192.168.2.2 255.255.255.0
router2(config-if)#no shut
%LINK-3-UPDOWN: Interface Serial0, changed state to up
router2(config-if)#interface s0
router2(config-if)#interface e0
router2(config-if)#ip address 192.168.3.1 255.255.255.0
router2(config-if)#no shut
%LINK-3-UPDOWN: Interface Ethernet0, changed state to up
router2(config-if)#end
router2#config t
Enter configuration commands, one per line.  End with CNTL/Z.
router2(config)#ip route 192.168.1.0 255.255.255.0 192.168.2.2
router2(config)#ip route 192.168.2.0 255.255.255.0 192.168.2.2
router2(config)#end
router2#copy running startup
Destination filename [startup-config]?
Building configuration...
[OK]
router2#ping 192.168.1.2
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.1.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/2/4 ms
router2#ping 192.168.2.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.2.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/2/4 ms
router2#ping 192.168.2.2
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.2.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/2/4 ms       //路由器之间试ping了一下,可以ping通,接下来配pc
pc1的配置如下:
Boson BOSS 5.0
Copyright 1998-2003 Boson Software, Inc.
Use the command help to get started
Press Enter to begin
C:>ipconfig /ip 192.168.1.1 255.255.255.0                     //此时尚未指定网关
C:>ping 192.168.2.1
Pinging 192.168.2.1 with 32 bytes of data:
Request timed out.
Request timed out.
Request timed out.
Request timed out.
Request timed out.
Ping statistics for 192.168.2.1:
     Packets: Sent = 5, Received = 0, Lost = 5 (100% loss),  //未指定网关时不能ping通router1的s0,我理解为找不到出口,不知准确否
Approximate round trip times in milli-seconds:
     Minimum = 0ms, Maximum =  0ms, Average =  0ms
C:>ipconfig /dg 192.168.1.2                                  //指定网关为与本机直连的router1的e0口
C:>ping 192.168.1.2
Pinging 192.168.1.2 with 32 bytes of data:
Reply from 192.168.1.2: bytes=32 time=60ms TTL=241
Reply from 192.168.1.2: bytes=32 time=60ms TTL=241
Reply from 192.168.1.2: bytes=32 time=60ms TTL=241
Reply from 192.168.1.2: bytes=32 time=60ms TTL=241
Reply from 192.168.1.2: bytes=32 time=60ms TTL=241
Ping statistics for 192.168.1.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 192.168.2.1
Pinging 192.168.2.1 with 32 bytes of data:
Reply from 192.168.2.1: bytes=32 time=60ms TTL=241
Reply from 192.168.2.1: bytes=32 time=60ms TTL=241
Reply from 192.168.2.1: bytes=32 time=60ms TTL=241
Reply from 192.168.2.1: bytes=32 time=60ms TTL=241
Reply from 192.168.2.1: bytes=32 time=60ms TTL=241
Ping statistics for 192.168.2.1:     Packets: Sent = 5, Received = 5, Lost = 0 (0% loss),      //指定网关后可以ping通s0口了
Approximate round trip times in milli-seconds:
     Minimum = 50ms, Maximum =  60ms, Average =  55ms
C:>ping 192.168.2.2
Pinging 192.168.2.2 with 32 bytes of data:
Reply from 192.168.2.2: bytes=32 time=60ms TTL=241
Reply from 192.168.2.2: bytes=32 time=60ms TTL=241
Reply from 192.168.2.2: bytes=32 time=60ms TTL=241
Reply from 192.168.2.2: bytes=32 time=60ms TTL=241
Reply from 192.168.2.2: bytes=32 time=60ms TTL=241
Ping 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 192.168.3.1
Pinging 192.168.3.1 with 32 bytes of data:
Reply from 192.168.3.1: bytes=32 time=60ms TTL=241
Reply from 192.168.3.1: bytes=32 time=60ms TTL=241
Reply from 192.168.3.1: bytes=32 time=60ms TTL=241
Reply from 192.168.3.1: bytes=32 time=60ms TTL=241
Reply from 192.168.3.1: bytes=32 time=60ms TTL=241
Ping statistics for 192.168.3.1:     Packets: Sent = 5, Received = 5, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
     Minimum = 50ms, Maximum =  60ms, Average =  55ms
C:>ping 192.168.3.2
Pinging 192.168.3.2 with 32 bytes of data:
Reply from 192.168.3.2: bytes=32 time=60ms TTL=241
Reply from 192.168.3.2: bytes=32 time=60ms TTL=241
Reply from 192.168.3.2: bytes=32 time=60ms TTL=241
Reply from 192.168.3.2: bytes=32 time=60ms TTL=241
Reply from 192.168.3.2: bytes=32 time=60ms TTL=241
Ping statistics for 192.168.3.2:     Packets: Sent = 5, Received = 5, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
     Minimum = 50ms, Maximum =  60ms, Average =  55ms                                       //可以ping通任意一台设备的IP地址,实验成功
C:>
pc2 的配置如下:
Boson BOSS 5.0
Copyright 1998-2003 Boson Software, Inc.
Use the command help to get started
Press Enter to begin
C:>
C:>ipconfig /ip 192.168.3.2 255.255.255.0
C:>ipconfig /dg 192.168.3.1                          //把IP和网关设好
C:>ping 192.168.1.1
Pinging 192.168.1.1 with 32 bytes of data:
Reply from 192.168.1.1: bytes=32 time=60ms TTL=241
Reply from 192.168.1.1: bytes=32 time=60ms TTL=241
Reply from 192.168.1.1: bytes=32 time=60ms TTL=241
Reply from 192.168.1.1: bytes=32 time=60ms TTL=241
Reply from 192.168.1.1: bytes=32 time=60ms TTL=241
Ping 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
C:>ping 192.168.1.2
Pinging 192.168.1.2 with 32 bytes of data:
Reply from 192.168.1.2: bytes=32 time=60ms TTL=241
Reply from 192.168.1.2: bytes=32 time=60ms TTL=241
Reply from 192.168.1.2: bytes=32 time=60ms TTL=241
Reply from 192.168.1.2: bytes=32 time=60ms TTL=241
Reply from 192.168.1.2: bytes=32 time=60ms TTL=241
Ping statistics for 192.168.1.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 192.168.2.1
Pinging 192.168.2.1 with 32 bytes of data:
Reply from 192.168.2.1: bytes=32 time=60ms TTL=241
Reply from 192.168.2.1: bytes=32 time=60ms TTL=241
Reply from 192.168.2.1: bytes=32 time=60ms TTL=241
Reply from 192.168.2.1: bytes=32 time=60ms TTL=241
Reply from 192.168.2.1: bytes=32 time=60ms TTL=241
Ping statistics for 192.168.2.1:     Packets: Sent = 5, Received = 5, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
     Minimum = 50ms, Maximum =  60ms, Average =  55ms
C:>ping 192.168.2.2
Pinging 192.168.2.2 with 32 bytes of data:
Reply from 192.168.2.2: bytes=32 time=60ms TTL=241
Reply from 192.168.2.2: bytes=32 time=60ms TTL=241
Reply from 192.168.2.2: bytes=32 time=60ms TTL=241
Reply from 192.168.2.2: bytes=32 time=60ms TTL=241
Reply from 192.168.2.2: bytes=32 time=60ms TTL=241
Ping 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 192.168.3.1
Pinging 192.168.3.1 with 32 bytes of data:
Reply from 192.168.3.1: bytes=32 time=60ms TTL=241
Reply from 192.168.3.1: bytes=32 time=60ms TTL=241
Reply from 192.168.3.1: bytes=32 time=60ms TTL=241
Reply from 192.168.3.1: bytes=32 time=60ms TTL=241
Reply from 192.168.3.1: bytes=32 time=60ms TTL=241
Ping statistics for 192.168.3.1:     Packets: Sent = 5, Received = 5, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
     Minimum = 50ms, Maximum =  60ms, Average =  55ms  //可以ping通任意一台设备的IP地址,实验成功

本文转自 victoryan 51CTO博客,原文链接:http://blog.51cto.com/victoryan/38510

cisco路由器基本实验之一 静态路由的配置(Boson NetSim)相关推荐

  1. cisco路由器基本实验之一 静态路由的配置(Boson NetSim

    花了快一个月的时间之后,我的Linux服务器建设学习算是小告了一个段落了.现在开始要回到windows里面利用Boson NetSim这个cisco实验模拟器来加深对路由交换的配置学习了.好在上学期上 ...

  2. cisco路由器基本实验之六 CHAP and RIP (Boson NetSim)

    昨天下午做了这个实验,在实验过程中,也第一次用到了Dynamips这个软件(由众博友推荐),它确实是可以模拟出cisco路由器的硬件环境,然后直接在这个环境下运行cisco的IOS,呵呵,初次使用,不 ...

  3. 计算机网络实验报告 静态路由的配置

    实验名称 静态路由的配置 一.实验目的 1.掌握路由器的配置 2. 学会配置静态路由 3. 实现静态路由的不同网络间的互通 二.实验内容 1.搭建拓扑图 2.网络拓扑节点IP配置 3.静态路由配置实现 ...

  4. cisco路由器基本实验之三 动态路由之RIP协议的配置(Boson NetSim)

    言归正传,Boson Netsim的实验规划,默认路由下一个实验应该是RIP协议的配置.众所周知,RIP(Routing Information Protocol),即路由信息协议,它与IGRP,OS ...

  5. cisco路由器基本实验之四 动态路由之IGRP协议的配置(Boson NetSim)

    又快到了开学的时间了,所以最近要整理一些开学用的东西,可能要忙一点了,但是cisco系列的基本实验还是得完成,把它们写在博客上也可以作为自己学习路上的的见证,哈哈,闲话不说,还是看实验.今天是配置IG ...

  6. cisco路由器基本实验之九 PAT的配置(Packet Tracer)

    昨天的实验是NAT,这种技术可以起到缓解IPV4 地址空间不足的问题,而PAT(Port  Address Transltaions,端口地址翻译)则适用于网络中只有一个内部全局地址的情况,如果此时还 ...

  7. Cisco PT模拟实验(12) 路由器静态路由的配置

    Cisco PT模拟实验(12) 路由器静态路由的配置 实验目的: 掌握静态路由的配置方法和应用 掌握路由选择表中的路由描述 熟悉路由选择和分组转发的原理及过程 实验背景: 某公司除总部外,另有一处分 ...

  8. 实验四.路由器静态路由的配置

    路由器静态路由的配置 一.实验目的与要求 1.了解路由器静态路由协议的配置方法 2. 理解路由器的基本工作原理 二.预习与准备 了解路由器静态路由协议的配置和基本工作原理 三. 实验内容 PC1在LA ...

  9. cisco路由器基本实验之二 默认路由的配置(Boson NetSim)

    昨天做的是静态路由的配置,按照Boson NetSim上面写的实验计划,后面还有一系列的实验,如下图所示:昨天做的就是Laber4 静态路由的配置,今天则是Laber5,默认路由的配置,还是和昨天一样 ...

最新文章

  1. Android之自定义瀑布流式的标签列表
  2. android xml png,android - 使用.png文件中的形状创建xml聊天气泡 - 堆栈内存溢出
  3. 编程方法学12:枚举
  4. 用SharpZipLib来压缩和解压文件 --zt
  5. YbtOJ#20064-[NOIP2020模拟赛B组Day4]预算缩减【树形dp】
  6. 《FPGA全程进阶---实战演练》第二十一章 电源常用类型:LDO和 DCDC
  7. UEditor编辑器第一次赋值失败的解决方法
  8. 收录网zblog主题导航模板
  9. bzoj 1061 志愿者招募 费用流
  10. php如何让B链接在当前页面打,javascript - 如何实现点击链接 A 弹出窗口 X,点击链接 B 继续在弹出窗口 X (刷新)打开?...
  11. android动画 底部弹窗 效果
  12. java系统架构原则_Apache的架构师们遵循的30条设计原则
  13. calcite连接mysql_calcite简单入门
  14. python实现——文件操作(超详细)
  15. LeetCode151|翻转字符串中的单词III
  16. 期货开户手续费的收取方式是什么?
  17. 计算1+3+5+....+99的和
  18. 【TVM源码学习笔记】附录1 TVM python调用C++的机制
  19. 高分辨率遥感卫星影像在交通方面的应用及高分二号影像获取
  20. 暨大计算机考研要求高不高,暨南大学考研难吗?一般要什么水平才可以进入?...

热门文章

  1. 如果不知道这些小技巧,你的Mac触控板就浪费了!
  2. Python 自定义函数的两种类型(wzl)
  3. DuDuTalk智慧门店,助力汽车门店全链路数字化转型
  4. linux引导分区是什么,Linux的引导过程剖析
  5. 【Unity3D】激光灯、碰撞特效
  6. 50etf期权对冲策略怎么玩?
  7. Python入门自学进阶-Web框架——33、瀑布流布局与组合查询
  8. 西电计算机网络与通信实验,通信系统综合实验-西电课程.doc
  9. Amlogic A311D芯片简介
  10. css3之制作个性照片墙