解决PacketTracer 路由之间无法连接

Posted by Harid十一月 - 7 - 2010 Leave comments   429 views 

我往Cisco模拟器里拖入了3个路由器,欲让其互连,然后用串口线连接时,发现没有串口可供连接。模拟器的Cisco路由器是可以自由添加模块的,事实上比较新的Cisco路由器像2811等也都已经实现模块化,我们可以定制一些模块,譬如增添某一接口或者删减之。

那么接下来依次为路由器添加串口:

1、双击路由器,打开路由器配置对话框,然后点击路由器面板上的电源开关“关闭电源”;

2、将对话框左边“Physical”选项卡里的“ WIC-2T”拖至路由器面板里的空模块里,如图:

添加串口3、再点击路由器面板上的“电源开关”打开电源,然后切换到“ CLI ”选项卡,我们会发现路由器的操作系统重新自解压,最终出现“ Continue with configuration dialog? [yes/no]: ”,我们在其后面输入“ no ”,然后回车,就可以配置该路由器的相关信息了。

3台路由器全部添加好串口后,用串行线将其连接好(连接时需要注意 DCE 与 DTE 的选择):

互联

然后依次为每一台路由器配置 IP 地址及时钟,拿Router 0 为例:

01 Router>en
02 Router#conf t
03 Enter configuration commands, one per line.  End with CNTL/Z.
04 Router(config)#int s0/3/0
05 Router(config-if)#ip add 170.10.1.1 255.255.254.0
06 Router(config-if)#no sh
07 Router(config-if)#int s0/3/1
08 Router(config-if)#clock rate 64000
09 Router(config-if)#ip add 170.10.2.0 255.255.254.0
10 Router(config-if)#no sh
11 Router(config-if)#end
12 Router#show ip route
13 Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
14 D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
15 N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
16 E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
17 i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area
18 * - candidate default, U - per-user static route, o - ODR
19 P - periodic downloaded static route
20
21 Gateway of last resort is not set
22
23 170.10.0.0/23 is subnetted, 2 subnets
24 C       170.10.2.0 is directly connected, Serial0/3/1
25 C       170.10.1.0 is directly connected, Serial0/3/0
26 Router#

IP全配置好后,路由器之间线上的红点就变成绿点了:

over

最后为路由器配置RIP协议,拿Router 0为例:

1 Router#conf t
2 Enter configuration commands, one per line.  End with CNTL/Z.
3 Router(config)#router rip
4 Router(config-router)#network 170.10.1.0
5 Router(config-router)#network 170.10.2.0

   声明:本文采用 BY-NC-SA 协议进行授权 | 星期九
   原创文章转载请注明:转自《解决PacketTracer 路由之间无法连接

分享本文: 腾讯微博 QQ空间 人人网 百度空间 开心网 新浪微博 Google Reader 豆瓣
Comments(44) Leave comments
  1. Gravatar
    大头 腾讯TT浏览器 腾讯TT浏览器 4.0 Windows Windows 7

    子网23位 太浪费IP了

    • Gravatar Harid  @  十一月 19th, 2010 at 22:07 replied.

      @大头, 这是实验随便弄的啦,B类 IP,子网掩码23位,每一个网段有510个IP可用,对于大公司来说还是可以的。

      • Gravatar 大头  @  十一月 19th, 2010 at 22:10 replied.  | #2

        @Harid, 这里配置的是两台路由器串口相连啊 30位掩码就OK

        • Gravatar Harid  @  十一月 19th, 2010 at 22:20 replied.

          @大头, 看来你已经形成这个严格控制IP的习惯了。嗯 ,配成30的子网掩码就行,刚好给两台路由,不浪费。

  2. Gravatar
    破碎机 Mozilla Firefox Mozilla Firefox 3.6.12 Windows Windows XP

    :eek: 我又来看看,看看顶顶

  3. Gravatar
    混子 Maxthon Maxthon 3.0 Windows Windows 7

    好家伙 这玩意 复杂的 我都看不懂 :eek:

  4. Gravatar
    学夫子 Google Chrome Google Chrome 7.0.517.44 Windows Windows XP

    好像什么串联互联的这些词语还是懂。哈哈

  5. Gravatar
    朵未 Maxthon Maxthon 3.0 Windows Windows XP

    专业性的东西,我纯违规支持。 :!:

  6. Gravatar
    实木家具 Mozilla Firefox Mozilla Firefox 3.6.12 Windows Windows 7

    真汗,看不懂的 :wink: :wink: :wink:

  7. Gravatar
    C瓜哥 Mozilla Firefox Mozilla Firefox 3.6.10 Windows Windows XP

    你过思科认证不?

    • Gravatar Harid  @  十一月 9th, 2010 at 11:24 replied.

      @C瓜哥, 先拿清华大学那个证,如果有机会则拿个CCNA吧!

  8. Gravatar
    小托 Internet Explorer Internet Explorer 8.0 Windows Windows XP

    坐等新文章。。。 :grin:

评论分页
5 + 7 =  (required)
 疑问 鼓掌 难过 呲牙 强 微笑 快哭了 坏笑 汗 奋斗 撇嘴 OK 偷笑 委屈 尴尬 傲慢 握手 玫瑰 胜利 大哭 抱拳
启用云输入法:      

NOTICE1: You should type some Chinese word (like “你好”) in your comment to pass the spam-check, thanks for your patience!

NOTICE2: 请申请gravatar头像(http://en.gravatar.com),木有头像的会显示为“小怪物”头像,将难以通过审核!

NOTICE3: 如果您能消除一下评论框旁边的邻居的寂寞的话,Harid将不胜感激,你懂的!^_^