和我的上一个问题一样,我正在为我的 CCNA 考试而学习,目前我正在努力解决“7.2.2.4 GRE 故障排除”的问题。
稍后我将解释拓扑。首先让我记录一下,到目前为止我已经采取了哪些步骤:
- t0 和 G0/0 上的 RA 的 Ip 地址被交换了。我纠正了他们
- RA 的隧道 0 接口具有错误的源地址和目标地址。我将它们设置为 s:172.31.0.1 d: 192.168.1.1
现在,在 RB 上有这条消息:
%LINEPROTO-5-UPDOWN: Line protocol on Interface Tunnel0, changed state to up
%ADJ-5-PARENT: Midchain parent maintenance for IP midchain out of 0 65E900C0 - looped chain attempting to stack
%TUN-5-RECURDOWN: 0 temporarily disabled due to recursive routing
拓扑:
如图所示,每个 IP 地址/网络地址都是正确的。
这是show interface tunnel 0
在 RA:
Tunnel0 is up, line protocol is up (connected)
Hardware is Tunnel
Internet address is 192.168.1.1/30
MTU 17916 bytes, BW 100 Kbit/sec, DLY 50000 usec,
reliability 255/255, txload 1/255, rxload 1/255
Encapsulation TUNNEL, loopback not set
Keepalive not set
Tunnel source 172.31.0.1 (GigabitEthernet0/0), destination 192.168.1.2
Tunnel protocol/transport GRE/IP
Show interface tunnel 0
RB:
Tunnel0 is up, line protocol is up (connected)
Hardware is Tunnel
Internet address is 192.168.1.1/30
MTU 17916 bytes, BW 100 Kbit/sec, DLY 50000 usec,
reliability 255/255, txload 1/255, rxload 1/255
Encapsulation TUNNEL, loopback not set
Keepalive not set
Tunnel source 172.31.0.1 (GigabitEthernet0/0), destination 192.168.1.2
Tunnel protocol/transport GRE/IP
Key disabled, sequencing disabled
Checksumming of packets disabled
Show ip route
RA:
Gateway of last resort is 0.0.0.0 to network 0.0.0.0
172.31.0.0/16 is variably subnetted, 2 subnets, 2 masks
C 172.31.0.0/24 is directly connected, GigabitEthernet0/0
L 172.31.0.1/32 is directly connected, GigabitEthernet0/0
192.168.1.0/24 is variably subnetted, 2 subnets, 2 masks
C 192.168.1.0/30 is directly connected, Tunnel0
L 192.168.1.1/32 is directly connected, Tunnel0
209.165.122.0/24 is variably subnetted, 2 subnets, 2 masks
C 209.165.122.0/30 is directly connected, Serial0/0/0
L 209.165.122.2/32 is directly connected, Serial0/0/0
S* 0.0.0.0/0 is directly connected, Serial0/0/0
Show ip route
RB:
Gateway of last resort is 0.0.0.0 to network 0.0.0.0
64.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C 64.103.211.0/30 is directly connected, Serial0/0/0
L 64.103.211.2/32 is directly connected, Serial0/0/0
172.31.0.0/16 is variably subnetted, 2 subnets, 2 masks
C 172.31.1.0/24 is directly connected, GigabitEthernet0/0
L 172.31.1.1/32 is directly connected, GigabitEthernet0/0
192.168.1.0/32 is subnetted, 1 subnets
L 192.168.1.2/32 is directly connected, Tunnel0
S* 0.0.0.0/0 is directly connected, Serial0/0/0
请通过解释我在这里遗漏的内容以及如何解决此问题来帮助我理解此错误。
亲切的问候。
**//EDIT: ** 需要完成的任务是来自双方 172.31.xx 网络的流量需要建立隧道。
//EDIT2:事实证明我在说废话**。以下是迄今为止采取的步骤:
- t0 和 G0/0 上的 RA 的 Ip 地址被交换了。我纠正了他们
RA 的隧道 0 接口具有错误的源地址和目标地址。我将它们设置为 s:172.31.0.1 d: 192.168.1.1
将 RA 上隧道 0 的源地址更改为
172.31.0.1
- 将 RB 上隧道 0 的目标地址更改为
209.165.122.2
copy run start
在 RB 上然后reload
- RB 上的隧道 0 现在已启动并已连接。
//编辑3:
我终于解决了。我在我的课程中回到了之前的任务,它确实指导我完成了整个配置任务。
隧道的两个路由器上的源是S0/0/0
接口,目的地是其他路由器的S0/0/0
接口 IP 地址。这是非常违反直觉的,因为在我的脑海中我的印象是,源是来自本地 LAN(172 个接口)的流量,因为来自那里的流量需要通过隧道传输。
只是为了更好的衡量,我为两个路由器添加了 2 个静态路由,以确保数据包以这种方式路由,以防 OSPF/EIGRP 或 RIP 另有想法。
我对这两个答案都投了赞成票,但接受了 Ron 的答案,因为他首先回答了正确的设置。