EIGRP 邻居问题

网络工程 eigrp
2022-02-15 08:39:23

为什么 R1 会给出这些错误信息?

IP-EIGRP(Default-IP-Routing-Table:400): Neighbor 192.168.2.1 not on common subnet for FastEthernet1/0

IP-EIGRP(Default-IP-Routing-Table:400): Neighbor 192.168.2.2 not on common subnet for FastEthernet1/0

在此处输入图像描述

R1 能够 ping 每个路由器。

配置:

R1 路由表

     20.0.0.0/29 is subnetted, 1 subnets
D       20.20.20.0 [90/30720] via 192.168.1.2, 00:06:56, FastEthernet1/0
     10.0.0.0/29 is subnetted, 1 subnets
C       10.10.10.0 is directly connected, FastEthernet0/0
     192.168.1.0/29 is subnetted, 1 subnets
C       192.168.1.0 is directly connected, FastEthernet1/0
     192.168.2.0/29 is subnetted, 1 subnets
D       192.168.2.0 [90/30720] via 10.10.10.2, 00:06:56, FastEthernet0/0

R1

!
!
!

!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname R1
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
memory-size iomem 5
no ip icmp rate-limit unreachable
!
!
ip cef
no ip domain lookup
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
ip tcp synwait-time 5
! 
!
!
!
!
interface FastEthernet0/0
 ip address 10.10.10.1 255.255.255.248
 duplex auto
 speed auto
!
interface FastEthernet1/0
 ip address 192.168.1.1 255.255.255.248
 duplex auto
 speed auto
!
router eigrp 400
 network 10.10.10.0 0.0.0.7
 network 192.168.1.0 0.0.0.7
 no auto-summary
!
no ip http server
no ip http secure-server
!
!
!
no cdp log mismatch duplex
!
!
!
control-plane
!
!
!
!
!
!
!
!
!
!
line con 0
 exec-timeout 0 0
 privilege level 15
 logging synchronous
line aux 0
 exec-timeout 0 0
 privilege level 15
 logging synchronous
line vty 0 4
 login
!
!
end

R2

!
!
!

!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname R2
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
memory-size iomem 5
no ip icmp rate-limit unreachable
!
!
ip cef
no ip domain lookup
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
ip tcp synwait-time 5
! 
!
!
!
!
interface FastEthernet0/0
 ip address 20.20.20.1 255.255.255.248
 duplex auto
 speed auto
!
interface FastEthernet1/0
 ip address 192.168.1.2 255.255.255.248
 duplex auto
 speed auto
!
router eigrp 400
 network 20.20.20.0 0.0.0.7
 network 192.168.1.0 0.0.0.7
 no auto-summary
!
no ip http server
no ip http secure-server
!
!
!
no cdp log mismatch duplex
!
!
!
control-plane
!
!
!
!
!
!
!
!
!
!
line con 0
 exec-timeout 0 0
 privilege level 15
 logging synchronous
line aux 0
 exec-timeout 0 0
 privilege level 15
 logging synchronous
line vty 0 4
 login
!
!
end

R3

!
!
!

!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname R3
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
memory-size iomem 5
no ip icmp rate-limit unreachable
!
!
ip cef
no ip domain lookup
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
ip tcp synwait-time 5
! 
!
!
!
!
interface FastEthernet0/0
 ip address 10.10.10.2 255.255.255.248
 duplex auto
 speed auto
!
interface FastEthernet1/0
 ip address 192.168.2.1 255.255.255.248
 duplex auto
 speed auto
!
router eigrp 400
 network 10.10.10.0 0.0.0.7
 network 192.168.2.0 0.0.0.7
 no auto-summary
!
no ip http server
no ip http secure-server
!
!
!
no cdp log mismatch duplex
!
!
!
control-plane
!
!
!
!
!
!
!
!
!
!
line con 0
 exec-timeout 0 0
 privilege level 15
 logging synchronous
line aux 0
 exec-timeout 0 0
 privilege level 15
 logging synchronous
line vty 0 4
 login
!
!
end

R4

!
!
!

!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname R4
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
memory-size iomem 5
no ip icmp rate-limit unreachable
!
!
ip cef
no ip domain lookup
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
ip tcp synwait-time 5
! 
!
!
!
!
interface FastEthernet0/0
 ip address 20.20.20.2 255.255.255.248
 duplex auto
 speed auto
!
interface FastEthernet1/0
 ip address 192.168.2.2 255.255.255.248
 duplex auto
 speed auto
!
router eigrp 400
 network 20.20.20.0 0.0.0.7
 network 192.168.2.0 0.0.0.7
 no auto-summary
!
no ip http server
no ip http secure-server
!
!
!
no cdp log mismatch duplex
!
!
!
control-plane
!
!
!
!
!
!
!
!
!
!
line con 0
 exec-timeout 0 0
 privilege level 15
 logging synchronous
line aux 0
 exec-timeout 0 0
 privilege level 15
 logging synchronous
line vty 0 4
 login
!
!
end
2个回答

编辑:

EIGRP 使用多播 hello 数据包与其他 EIGRP 邻居通信。当 EIGRP 接收到来自未在其接收接口上配置的子网上的 IP 地址的 EIGRP hello 数据包时,它会生成 not on common subnet 错误消息。

这些是此错误消息的一般原因:

  • 接口或交换机端口配置错误或布线问题。
  • 邻居接口上的主/从 IP 地址不匹配。
  • 交换机/集线器正在将多播数据包泄漏到其他端口。
  • 如果使用 LAN 交换机,则 vlan 可能已将路由器连接在一起。
  • 另一台路由器在与该路由器相同的子网/vlan 上使用 EIGRP 通告,并且配置错误的 AS 编号。

为了解决此问题,请检查以下项目:

  • 验证电缆是否正确连接。
  • 仔细检查本地和相邻路由器上错误配置的 IP 地址的接口配置。
  • 验证接口的主地址是否与邻居路由器的主地址在同一子网中。
  • 如果 EIGRP 邻居连接通过 LAN 集线器加入,请使用单独的集线器来分解每个逻辑 LAN 段的广播域,或配置 no eigrp log-neighbor-warnings 以消除错误。
  • 如果涉及到交换机,请检查交换机配置以确保不同的 LAN 网段未配置为共享同一广播域的同一 VLAN。

我建议检查物理连接和配置。

我能够使用 IOS 12.4 在 GNS3 中完全复制您的拓扑,没有任何问题或错误消息,并且您提供的配置没有任何更改。

R2 可能有一次配置不正确,导致 R1 上出现错误消息。另一种可能性是 R1、R3 和 R4 同时连接到单个 SW1。

也可以使用您的拓扑通过单根电缆连接 SW1 和 SW2 来复制错误。

如果您主动收到错误消息,我建议您仔细检查您的 EIGRP 配置。您可以使用以下命令来验证 EIGRP 配置和邻居关系。

show ip eigrp neighbors
show running-config | section eigrp