标题: [求助]路由器模拟器的问题 [打印本页] 作者: Vries.Stevens 时间: 2004-05-07 17:54 标题: [求助]路由器模拟器的问题 请看一下我的路由设置,为什么不通\r\n\r\npc1的设置\r\nip:192.168.1.5\r\nmask:255.255.255.0\r\ngateway:192.168.1.1\r\n\r\npc2的设置\r\nip:192.168.2.5\r\nmask:255.255.255.0\r\ngateway:192.168.2.1\r\n\r\nswitch1的设置\r\nip:192.168.1.2 255.255.255.0\r\n\r\nswitch2的设置\r\nip:192.168.2.2 255.255.255.0\r\n\r\n--------------------------------------------------------------------------------------------------\r\n\r\nrouter1 的设置\r\n\r\nPress Enter to Start\r\n\r\nRouter>;\r\nRouter>;en\r\nRouter#conf\r\nRouter(config)#hostname router1\r\nrouter1(config)#int e0\r\nrouter1(config-if)#ip addr 192.168.1.1 255.255.255.0\r\nrouter1(config-if)#no shut\r\nrouter1(config-if)#^Z\r\n\r\nrouter1#conf\r\nrouter1(config)#int s0\r\nrouter1(config-if)#ip addr 192.168.3.1 255.255.255.0\r\nrouter1(config-if)#no shut\r\n%LINK-3-UPDOWN: Interface Serial0, changed state to up\r\n%LINK-3-UPDOWN: Interface Serial0, changed state to down\r\n%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0, changed state to down(为什么又变成down了?)\r\nrouter1(config-if)#^Z\r\n\r\nrouter1#conf\r\nrouter1(config)#ip route 0.0.0.0 0.0.0.0 192.168.3.2\r\nrouter1(config)#^Z\r\n\r\n---------------------------------------------------------------------------------------------------------\r\n\r\nrouter2的设置\r\n\r\nPress Enter to Start\r\n\r\nRouter>;\r\nRouter>;en\r\nRouter#conf\r\nRouter(config)#hostname router2\r\nrouter2(config)#int e0\r\nrouter2(config-if)#ip addr 192.168.2.1 255.255.255.0\r\nrouter2(config-if)#no shut\r\nrouter2(config-if)#^Z\r\n\r\nrouter2#conf\r\nrouter2(config)#int s0\r\nrouter2(config-if)#ip addr 192.168.3.2 255.255.255.0\r\nrouter2(config-if)#no shut\r\n%LINK-3-UPDOWN: Interface Serial0, changed state to up\r\n%LINK-3-UPDOWN: Interface Serial0, changed state to down\r\n%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0, changed state to down\r\nrouter2(config-if)#^Z\r\n\r\nrouter2#conf\r\nrouter2(config)#ip route 0.0.0.0 0.0.0.0 192.168.3.1\r\nrouter2(config)#^Z\r\n作者: Vries.Stevens 时间: 2004-05-07 17:55 标题: [求助]路由器模拟器的问题 为什么ping不通的?是不是我还漏掉了什么?\r\n\r\nBoson BOSS 5.0\r\nCopyright 1998-2003 Boson Software, Inc.\r\nUse the command help to get started\r\n\r\nPress Enter to begin\r\nC:>;\r\nC:>;winipcfg\r\nC:>;ping 192.168.1.2\r\nPinging 192.168.1.2 with 32 bytes of data:\r\n\r\nReply from 192.168.1.2: bytes=32 time=60ms TTL=241\r\nReply from 192.168.1.2: bytes=32 time=60ms TTL=241\r\nReply from 192.168.1.2: bytes=32 time=60ms TTL=241\r\nReply from 192.168.1.2: bytes=32 time=60ms TTL=241\r\nReply from 192.168.1.2: bytes=32 time=60ms TTL=241\r\n\r\nPing statistics for 192.168.1.2: Packets: Sent = 5, Received = 5, Lost = 0 (0% loss),\r\nApproximate round trip times in milli-seconds:\r\n Minimum = 50ms, Maximum = 60ms, Average = 55ms\r\n\r\nC:>;ping 192.168.3.1\r\nPinging 192.168.3.1 with 32 bytes of data:\r\n\r\nReply from 192.168.3.1: bytes=32 time=60ms TTL=241\r\nReply from 192.168.3.1: bytes=32 time=60ms TTL=241\r\nReply from 192.168.3.1: bytes=32 time=60ms TTL=241\r\nReply from 192.168.3.1: bytes=32 time=60ms TTL=241\r\nReply from 192.168.3.1: bytes=32 time=60ms TTL=241\r\n\r\nPing statistics for 192.168.3.1: Packets: Sent = 5, Received = 5, Lost = 0 (0% loss),\r\nApproximate round trip times in milli-seconds:\r\n Minimum = 50ms, Maximum = 60ms, Average = 55ms\r\n\r\nC:>;ping 192.168.3.2\r\nPinging 192.168.3.2 with 32 bytes of data:\r\n\r\nRequest timed out.\r\nRequest timed out.\r\nRequest timed out.\r\nRequest timed out.\r\nRequest timed out.\r\n\r\nPing statistics for 192.168.3.2:\r\n Packets: Sent = 5, Received = 0, Lost = 5 (100% loss),\r\nApproximate round trip times in milli-seconds:\r\n Minimum = 0ms, Maximum = 0ms, Average = 0ms