免费注册 查看新帖 |

Chinaunix

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

跨路由的机器Ping不通 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2009-04-22 18:00 |只看该作者 |倒序浏览
现在我有以下环境:



具体配置如下:

PC1: 10.1.1.3/24
Router1's Eth0: 10.1.1.1/24
Router1's Serial0:192.168.1.1/24

PC2: 12.5.10.3/24

Router2's Eth0: 12.2.10.1/24
Router2's Serial0:192.168.1.2/24

下面是Router1的信息:


***************************************
R1#show version
Boson Operating Simulation Software
BOSS (tm) C2500 Software (C2500-Enterprise), Version 12.1, RELEASE SOFTWARE
Copyright (c) 1998-2003 by Boson Software, Inc.
BOSS ROM: System Bootstrap, Version 12.2, RELEASE SOFTWARE
R1 Uptime Is 0 days, 0 hours, 16 minutes
System restarted by power-on
System image file is ""flash:c2500-enterprise.12.1.boss"", booted via flash
Boson 2500 (BOSS) processor (revision 5.0)
1 Ethernet/IEEE 802.3 interface(s)
2 Serial network interface(s)
3 ISDN Basic Rate interface(s)
32K bytes of simulated non-volatile configuration memory.
8192K bytes of simulated System flash (Read/Write)

Configuration register is 0X2102
R1#show running-config
Building configuration...
!
Version 12.1
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
!
hostname R1
!
!
!
ip subnet-zero
spanning-tree vlan 1 priority
!
!
!
!
!
!
!
!
interface Serial0
ip address 192.168.1.1 255.255.255.0
no ip directed-broadcast
clock rate 64000
!
interface Serial1
no ip address
no ip directed-broadcast
shutdown
!
interface Ethernet0
ip address 10.1.1.1 255.255.255.0
no ip directed-broadcast
!
interface Bri0
no ip address
no ip directed-broadcast
shutdown
!
!
router rip
network 10.0.0.0
network 192.168.1.0
!
ip classless
no ip http server
!
!
!
!
line con 0
transport input none
line aux 0
line vty 0 4
!
no scheduler allocate
end

R1#show ip route
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
       D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
       E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
       i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, * - candidate default
       U - per-user static route
Gateway of last resort is not set
     10.0.0.0/24 is subnetted, 1 subnets
C       10.1.1.0 is directly connected, Ethernet0
C    192.168.1.0 is directly connected, Serial0
R    12.0.0.0 [120/1] via 192.168.1.2, 00:05:28, Serial0
R1#show ip protocols
Routing Protocol is "rip"
  Sending updates every 30 seconds, next due in 8 seconds
  Invalid after 180 seconds, hold down 180, flushed after 240
  Outgoing update filter list for all interfaces is
  Incoming update filter list for all interfaces is
  Redistributing:   rip
  Default version control: send version 1, receive any version
    Interface        Send  Recv   Key-chain
    Serial0            1    1 2
    Ethernet0          1    1 2
  Routing for Networks:
    10.0.0.0
    192.168.1.0
  Routing Information Sources:
    192.168.1.2           120      00:00:03
  Distance: (default is 120)

***************************************

R2#show version
Boson Operating Simulation Software
BOSS (tm) C2500 Software (C2500-Enterprise), Version 12.1, RELEASE SOFTWARE
Copyright (c) 1998-2003 by Boson Software, Inc.
BOSS ROM: System Bootstrap, Version 12.2, RELEASE SOFTWARE
R2 Uptime Is 0 days, 0 hours, 17 minutes
System restarted by power-on
System image file is ""flash:c2500-enterprise.12.1.boss"", booted via flash
Boson 2500 (BOSS) processor (revision 5.0)
1 Ethernet/IEEE 802.3 interface(s)
2 Serial network interface(s)
3 ISDN Basic Rate interface(s)
32K bytes of simulated non-volatile configuration memory.
8192K bytes of simulated System flash (Read/Write)

Configuration register is 0X2102
R2#show running-config
Building configuration...
!
Version 12.1
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
!
hostname R2
!
!
!
ip subnet-zero
spanning-tree vlan 1 priority
!
!
!
!
!
!
!
!
interface Serial0
ip address 192.168.1.2 255.255.255.0
no ip directed-broadcast
!
interface Serial1
no ip address
no ip directed-broadcast
shutdown
!
interface Ethernet0
ip address 12.5.10.1 255.255.255.0
no ip directed-broadcast
!
interface Bri0
no ip address
no ip directed-broadcast
shutdown
!
!
router rip
network 12.0.0.0
network 192.168.1.0
!
ip classless
no ip http server
!
!
!
!
line con 0
transport input none
line aux 0
line vty 0 4
!
no scheduler allocate
end
R2#show ip route
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
       D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
       E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
       i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, * - candidate default
       U - per-user static route
Gateway of last resort is not set
C    192.168.1.0 is directly connected, Serial0
     12.0.0.0/24 is subnetted, 1 subnets
C       12.5.10.0 is directly connected, Ethernet0
R    10.0.0.0 [120/1] via 192.168.1.1, 00:02:13, Serial0
R2#show ip protocols
Routing Protocol is "rip"
  Sending updates every 30 seconds, next due in 23 seconds
  Invalid after 180 seconds, hold down 180, flushed after 240
  Outgoing update filter list for all interfaces is
  Incoming update filter list for all interfaces is
  Redistributing:   rip
  Default version control: send version 1, receive any version
    Interface        Send  Recv   Key-chain
    Serial0            1    1 2
    Ethernet0          1    1 2
  Routing for Networks:
    12.0.0.0
    192.168.1.0
  Routing Information Sources:
    192.168.1.1           120      00:00:06
  Distance: (default is 120)

***************************************

妈的,我又Ping不通了。。。。


[ 本帖最后由 sokillwhat 于 2009-4-26 15:45 编辑 ]

论坛徽章:
0
2 [报告]
发表于 2009-04-22 20:50 |只看该作者
你两个路由器网段都一样了,路由器1ping路由器2端机器A时会误以为A与自己同一网段,解决办法是设更为精确的路由~
原帖由 sokillwhat 于 2009-4-22 18:00 发表
现在我有以下环境:

327198

具体配置如下:

PC1: 10.1.1.3/24
Router1's Eth0: 10.1.1.1/24
Router1's Serial0:192.168.0.1/24

PC2:10.1.1.13/24
Router2's Eth0:10.1.1.10/24
Router2's Seria ...

论坛徽章:
0
3 [报告]
发表于 2009-04-22 21:36 |只看该作者
还没见过类似问题~~

论坛徽章:
0
4 [报告]
发表于 2009-04-23 08:01 |只看该作者
原帖由 bripengandre 于 2009-4-22 20:50 发表
你两个路由器网段都一样了,路由器1ping路由器2端机器A时会误以为A与自己同一网段,解决办法是设更为精确的路由~

应该是这个问题

论坛徽章:
0
5 [报告]
发表于 2009-04-23 09:21 |只看该作者
原帖由 bripengandre 于 2009-4-22 20:50 发表
你两个路由器网段都一样了,路由器1ping路由器2端机器A时会误以为A与自己同一网段,解决办法是设更为精确的路由~

我试一下:)

论坛徽章:
0
6 [报告]
发表于 2009-04-23 10:21 |只看该作者
原帖由 bripengandre 于 2009-4-22 20:50 发表
你两个路由器网段都一样了,路由器1ping路由器2端机器A时会误以为A与自己同一网段,解决办法是设更为精确的路由~

OK,的确像你所说的那样,现在两台PC可以PING的通了,不过我又有新的疑问了:

1。如果PC1和PC2属于同一个VLAN,也就是说PC1和PC2必须在同一网段内,但是路由器1和路由器2的Ethernet0口又不能设置成同一网段。。。这是个问题
2。PC1属于VLAN10并且两台交换机都是1900系列,所以封装的TRUNK只支持ISL,那么在路由器1上的Ethernet口上如何设置ISL呢?(我设置了encapsulation ISL 10也不行)

论坛徽章:
5
IT运维版块每日发帖之星
日期:2015-08-06 06:20:00IT运维版块每日发帖之星
日期:2015-08-10 06:20:00IT运维版块每日发帖之星
日期:2015-08-23 06:20:00IT运维版块每日发帖之星
日期:2015-08-24 06:20:00IT运维版块每日发帖之星
日期:2015-11-12 06:20:00
7 [报告]
发表于 2009-04-23 11:04 |只看该作者
RIP 在干吗???

论坛徽章:
0
8 [报告]
发表于 2009-04-24 10:23 |只看该作者
做路由选择啊

论坛徽章:
5
IT运维版块每日发帖之星
日期:2015-08-06 06:20:00IT运维版块每日发帖之星
日期:2015-08-10 06:20:00IT运维版块每日发帖之星
日期:2015-08-23 06:20:00IT运维版块每日发帖之星
日期:2015-08-24 06:20:00IT运维版块每日发帖之星
日期:2015-11-12 06:20:00
9 [报告]
发表于 2009-04-24 12:10 |只看该作者
你帖配置?

论坛徽章:
0
10 [报告]
发表于 2009-04-26 15:46 |只看该作者
原帖由 ssffzz1 于 2009-4-24 12:10 发表
你帖配置?

已经在一楼更新了
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP