ping不通直连

来源:百度知道 编辑:UC知道 时间:2024/05/27 03:33:43
R2---R1
R2的e0/1连接R1的e0/2,在两台路由器上的配置如下:
R1上:
interface Ethernet0/2
ip address 192.168.1.1 255.255.255.0
no shutdown
R2上:
interface Ethernet0/1
ip address 192.168.1.2 255.255.255.0
no shutdown
结果在R1上:
R1#ping 192.168.1.2

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.1.2, timeout is 2 seconds:
.....
Success rate is 0 percent (0/5)
发现不通,我就
R1#debug ip packet
然后再ping,发现一下报封装失败,如下:
*Mar 1 00:06:37.883: IP: tableid=0, s=192.168.1.1 (local), d=192.168.1.2 (Ethernet0/2), routed via RIB
*Mar 1 00:06:37.887: IP: s=192.168.1.1 (local), d=192.168.1.2 (Ethernet0/2), len 100, sending
*Mar 1 00:06:37.895: IP: s=192.168.1.1 (local), d=192.168.1.2 (Ethernet0/2), len 100, encapsulation failed.
——————————————————————————————————
这样的问题怎么解决?
我肯定是进去了的赛!我晕,如果我不进入特权模式怎么配置IP嘛,我这个是小凡模拟器的做出来的!就是说用两个模拟器之间这样做的!

要想配置生效,应该先进全局模式吧(conf t),而你是直接在接口模式下进行配置的,就算你no shut了也不能生效的,(命令可以速写的)。 配置都没生效当然ping不通。

不明白你说的意思,这是做两个软路由吗,还是单机网卡对网卡,路由IP PING路由IP吗