多个路由器相连后,设置了静态路由,两台PC能通,但ping中间IP出现 Destination host unreachable.,为什

R1路由器show run:
!
interface FastEthernet0/0
ip address 192.168.1.1 255.255.255.0
duplex auto
speed auto
!
interface FastEthernet0/1
ip address 192.168.2.1 255.255.255.0
duplex auto
speed auto
!
interface Vlan1
no ip address
shutdown
!
ip classless
ip route 192.168.4.0 255.255.255.0 192.168.2.2

R2路由器show run:
interface FastEthernet0/0
ip address 192.168.3.1 255.255.255.0
duplex auto
speed auto
!
interface FastEthernet0/1
ip address 192.168.2.2 255.255.255.0
duplex auto
speed auto
!
interface Vlan1
no ip address
shutdown
!
ip classless
ip route 192.168.4.0 255.255.255.0 192.168.3.2
ip route 192.168.1.0 255.255.255.0 192.168.2.1
!
R3路由器show run:
interface FastEthernet0/0
ip address 192.168.3.2 255.255.255.0
duplex auto
speed auto
!
interface FastEthernet0/1
ip address 192.168.4.1 255.255.255.0
duplex auto
speed auto
!
interface Vlan1
no ip address
shutdown
!
ip classless
ip route 192.168.1.0 255.255.255.0 192.168.3.1

PC1能ping通PC2,但ping 3.1 3.2时提示:
PC>ping 192.168.3.2

Pinging 192.168.3.2 with 32 bytes of data:

Reply from 192.168.1.1: Destination host unreachable.

PC2 ping PC1能通 只是ping 2.2 2.1 时跟上面的提示一样 Destination host unreachable.

是什么原因?应该所以地址都能ping通的啊

静态路由设置错了啊,R1没设置192.168.3.0/24的路由肯定不通的,其他路由器静态路由都要相应改变
R1静态路由:
ip route 192.168.4.0 255.255.255.0 192.168.2.2
ip route 192.168.3.0 255.255.255.0 192.168.2.2
R2静态路由:
ip route 192.168.1.0 255.255.255.0 192.168.2.1
ip route 192.168.4.0 255.255.255.0 192.168.3.2
R3静态路由:
ip route 192.168.2.0 255.255.255.0 192.168.3.1
ip route 192.168.1.0 255.255.255.0 192.168.3.1
温馨提示:内容为网友见解,仅供参考
第1个回答  2012-05-04
要想让电脑PING通 首先得连上局域网。然后保证PC机子在同一网段 就是IP地址和网关。这个是必须的。
第2个回答  2012-05-03
你两台电脑分别在两个网关下的两个子网。。。你把电脑子网掩码设成255.255.0.0,网关留空,试试看
第3个回答  2012-05-03
为什么不通过LAN口来连接呢
相似回答