我往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全配置好后,路由器之间线上的红点就变成绿点了:

最后为路由器配置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 路由之间无法连接》
子网23位 太浪费IP了
@大头, 这是实验随便弄的啦,B类 IP,子网掩码23位,每一个网段有510个IP可用,对于大公司来说还是可以的。
@Harid, 这里配置的是两台路由器串口相连啊 30位掩码就OK
@大头, 看来你已经形成这个严格控制IP的习惯了。嗯 ,配成30的子网掩码就行,刚好给两台路由,不浪费。
好家伙 这玩意 复杂的 我都看不懂
好像什么串联互联的这些词语还是懂。哈哈
专业性的东西,我纯违规支持。
真汗,看不懂的
你过思科认证不?
@C瓜哥, 先拿清华大学那个证,如果有机会则拿个CCNA吧!
坐等新文章。。。
Random Posts
Recent Posts
Recent Comments
By Plastic injection mould
By OOZJ
By Jusbe
By 互联网战
By 互联网战
By ixwebhosting
Blogroll
Categories
Tag Cloud
360 5800 Alexa C++ Chrome Cisco Dedecms Discuz Fcitx Fedora GFW Gravatar IE Linux Mobile ModelSim Music QT Quartus Shell Verilog VPN VPS Windows Wordpress XAMPP Xilinx xp 下载 垃圾评论 情感 手机 插件 星期九 注册 电子信息 程序设计 站长工具 缩略图 网络应用 考研 胡思乱想 西工大 视频 软件Meta