免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1338 | 回复: 1
打印 上一主题 下一主题

[求助]路由器模拟器的问题 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2004-05-07 17:54 |只看该作者 |倒序浏览
请看一下我的路由设置,为什么不通

pc1的设置
ip:192.168.1.5
mask:255.255.255.0
gateway:192.168.1.1

pc2的设置
ip:192.168.2.5
mask:255.255.255.0
gateway:192.168.2.1

switch1的设置
ip:192.168.1.2 255.255.255.0

switch2的设置
ip:192.168.2.2 255.255.255.0

--------------------------------------------------------------------------------------------------

router1 的设置

Press Enter to Start

Router>;
Router>;en
Router#conf
Router(config)#hostname router1
router1(config)#int e0
router1(config-if)#ip addr 192.168.1.1 255.255.255.0
router1(config-if)#no shut
router1(config-if)#^Z

router1#conf
router1(config)#int s0
router1(config-if)#ip addr 192.168.3.1 255.255.255.0
router1(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 down(为什么又变成down了?)
router1(config-if)#^Z

router1#conf
router1(config)#ip route 0.0.0.0 0.0.0.0 192.168.3.2
router1(config)#^Z

---------------------------------------------------------------------------------------------------------

router2的设置

Press Enter to Start

Router>;
Router>;en
Router#conf
Router(config)#hostname router2
router2(config)#int e0
router2(config-if)#ip addr 192.168.2.1 255.255.255.0
router2(config-if)#no shut
router2(config-if)#^Z

router2#conf
router2(config)#int s0
router2(config-if)#ip addr 192.168.3.2 255.255.255.0
router2(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 down
router2(config-if)#^Z

router2#conf
router2(config)#ip route 0.0.0.0 0.0.0.0 192.168.3.1
router2(config)#^Z

论坛徽章:
0
2 [报告]
发表于 2004-05-07 17:55 |只看该作者

[求助]路由器模拟器的问题

为什么ping不通的?是不是我还漏掉了什么?

Boson BOSS 5.0
Copyright 1998-2003 Boson Software, Inc.
Use the command help to get started

Press Enter to begin
C:>;
C:>;winipcfg
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.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:

Request timed out.
Request timed out.
Request timed out.
Request timed out.
Request timed out.

Ping statistics for 192.168.3.2:
     Packets: Sent = 5, Received = 0, Lost = 5 (100% loss),
Approximate round trip times in milli-seconds:
     Minimum = 0ms, Maximum =  0ms, Average =  0ms
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP