设为首页收藏本站language 语言切换
查看: 1914|回复: 2
收起左侧

[求助] eigrp建立不了邻居关系,R2路由表没有显示eigrp路由表

[复制链接]
发表于 2018-12-21 18:49:17 | 显示全部楼层 |阅读模式
10鸿鹄币
corp#show run
Building configuration...

Current configuration : 1068 bytes
!
version 12.4
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname corp

spanning-tree mode pvst

interface FastEthernet0/0
no ip address
duplex auto
speed auto
shutdown
!
interface FastEthernet0/1
ip address 10.1.5.1 255.255.255.0
duplex auto
speed auto
!
interface FastEthernet0/3/0
switchport mode access
shutdown
!
interface FastEthernet0/3/1
switchport mode access
shutdown
!
interface FastEthernet0/3/2
switchport mode access
shutdown
!
interface FastEthernet0/3/3
switchport mode access
shutdown
!
interface Serial1/0
ip address 10.1.2.1 255.255.255.0
!
interface Serial1/1
ip address 10.1.3.1 255.255.255.0
!
interface Serial1/2
ip address 10.1.4.1 255.255.255.0
!
interface Serial1/3
no ip address
shutdown
!
interface Vlan1
no ip address
shutdown

router eigrp 30
network 10.0.0.0
network 192.168.30.0
network 192.168.40.0
no auto-summary

ip classless

line con 0
!
line aux 0
!
line vty 0 4
login

end
corp的路由表:
corp#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
       N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
       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, ia - IS-IS inter area
       * - candidate default, U - per-user static route, o - ODR
       P - periodic downloaded static route

Gateway of last resort is not set

     10.0.0.0/24 is subnetted, 4 subnets
C       10.1.2.0 is directly connected, Serial1/0
C       10.1.3.0 is directly connected, Serial1/1
C       10.1.4.0 is directly connected, Serial1/2
C       10.1.5.0 is directly connected, FastEthernet0/1
     172.16.0.0/24 is subnetted, 1 subnets
D       172.16.10.0 [90/30720] via 10.1.5.2, 00:07:27, FastEthernet0/1
D    192.168.10.0/24 [90/20514560] via 10.1.3.2, 00:07:20, Serial1/1
                     [90/20514560] via 10.1.2.2, 00:07:20, Serial1/0
D    192.168.20.0/24 [90/20514560] via 10.1.3.2, 00:07:20, Serial1/1
                     [90/20514560] via 10.1.2.2, 00:07:20, Serial1/0

R1#show run
Building configuration...

Current configuration : 728 bytes

version 12.4
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname R1

spanning-tree mode pvst

interface FastEthernet0/0
ip address 192.168.10.1 255.255.255.0
duplex auto
speed auto
!
interface FastEthernet0/1
ip address 192.168.20.1 255.255.255.0
duplex auto
speed auto
!
interface Serial0/3/0
ip address 10.1.2.2 255.255.255.0
!
interface Serial0/3/1
ip address 10.1.3.2 255.255.255.0
!
interface Vlan1
no ip address
shutdown
!
router eigrp 30
network 10.0.0.0
network 192.168.10.0
network 192.168.20.0
no auto-summary
!
ip classless

line con 0
!
line aux 0
!
line vty 0 4
login

end
R1的路由表
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
       N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
       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, ia - IS-IS inter area
       * - candidate default, U - per-user static route, o - ODR
       P - periodic downloaded static route

Gateway of last resort is not set

     10.0.0.0/24 is subnetted, 4 subnets
C       10.1.2.0 is directly connected, Serial0/3/0
C       10.1.3.0 is directly connected, Serial0/3/1
D       10.1.4.0 [90/21024000] via 10.1.3.1, 00:09:46, Serial0/3/1
                 [90/21024000] via 10.1.2.1, 00:09:46, Serial0/3/0
D       10.1.5.0 [90/2172416] via 10.1.3.1, 00:09:46, Serial0/3/1
                 [90/2172416] via 10.1.2.1, 00:09:46, Serial0/3/0
     172.16.0.0/24 is subnetted, 1 subnets
D       172.16.10.0 [90/2174976] via 10.1.3.1, 00:09:46, Serial0/3/1
                    [90/2174976] via 10.1.2.1, 00:09:46, Serial0/3/0
C    192.168.10.0/24 is directly connected, FastEthernet0/0
C    192.168.20.0/24 is directly connected, FastEthernet0/1

R2#show run
Building configuration...

Current configuration : 700 bytes
!
version 12.4
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname R2


spanning-tree mode pvst

interface FastEthernet0/0
ip address 192.168.30.1 255.255.255.0
duplex auto
speed auto
!
interface FastEthernet0/1
ip address 192.168.40.1 255.255.255.0
duplex auto
speed auto
!
interface Serial0/3/0
ip address 10.1.4.2 255.255.255.0
!
interface Serial0/3/1
no ip address
shutdown
!
interface Vlan1
no ip address
shutdown
!
router eigrp 30
network 192.168.30.0
network 192.168.40.0
no auto-summary
!
ip classless

line con 0
!
line aux 0
!
line vty 0 4
login
!
!
!

end
R2的路由表:
R2#show ip rou
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
       N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
       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, ia - IS-IS inter area
       * - candidate default, U - per-user static route, o - ODR
       P - periodic downloaded static route

Gateway of last resort is not set

     10.0.0.0/24 is subnetted, 1 subnets
C       10.1.4.0 is directly connected, Serial0/3/0
C    192.168.30.0/24 is directly connected, FastEthernet0/0
C    192.168.40.0/24 is directly connected, FastEthernet0/1   R2只显示直连路由


R3#show run
Building configuration...

Current configuration : 954 bytes
!
version 12.4
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname R3
!
!
!
!
!
!
!
!
!
!
!
!
!
!
spanning-tree mode pvst
!
!
!
!
interface FastEthernet0/0
ip address 10.1.5.2 255.255.255.0
duplex auto
speed auto
!
interface FastEthernet0/1
ip address 172.16.10.1 255.255.255.0
duplex auto
speed auto
!
interface Dot11Radio0/3/0
no ip address
shutdown
speed 12.0 18.0 24.0 36.0 48.0 54.0 6.0 9.0 basic-1.0 basic-11.0 basic-2.0 basic-5.5
station-role root
!
interface Dot11Radio0/3/1
no ip address
shutdown
speed 18.0 36.0 48.0 54.0 9.0 basic-12.0 basic-24.0 basic-6.0
station-role root
!
interface FastEthernet1/0
no ip address
duplex auto
speed auto
shutdown
!
interface Vlan1
no ip address
shutdown
!
router eigrp 30
network 10.0.0.0
network 172.16.0.0
no auto-summary
!
ip classless
!
!
!
!
!
!
!
line con 0
!
line aux 0
!
line vty 0 4

login
R3路由表
R3#show ip rou
R3#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
       N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
       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, ia - IS-IS inter area
       * - candidate default, U - per-user static route, o - ODR
       P - periodic downloaded static route

Gateway of last resort is not set

     10.0.0.0/24 is subnetted, 4 subnets
D       10.1.2.0 [90/20514560] via 10.1.5.1, 00:14:02, FastEthernet0/0
D       10.1.3.0 [90/20514560] via 10.1.5.1, 00:14:02, FastEthernet0/0
D       10.1.4.0 [90/20514560] via 10.1.5.1, 00:14:02, FastEthernet0/0
C       10.1.5.0 is directly connected, FastEthernet0/0
     172.16.0.0/24 is subnetted, 1 subnets
C       172.16.10.0 is directly connected, FastEthernet0/1
D    192.168.10.0/24 [90/20517120] via 10.1.5.1, 00:13:56, FastEthernet0/0

D    192.168.20.0/24 [90/20517120] via 10.1.5.1, 00:13:56, FastEthernet0/0

T拓扑图.png

最佳答案

查看完整内容

R2的EIGRP配置中没有宣告直连接口10.1.4.2的路由,路由模式下,network 10.0.0.0就行了
发表于 2018-12-21 18:49:18 | 显示全部楼层
R2的EIGRP配置中没有宣告直连接口10.1.4.2的路由,路由模式下,network 10.0.0.0就行了
沙发 2018-12-21 18:49:18 回复 收起回复
回复

使用道具 举报

发表于 2018-12-22 10:46:17 | 显示全部楼层
指令network後未接遮罩,視同ABC網段。

指令network設定路由協定包含的位址範圍,凡interface的位址處於設定範圍的interface即納入路由協定運作。

在corp中

network 10.0.0.0

已包含4個設定位址的interface,因而

network 192.168.30.0
network 192.168.40.0

不包含任何設定位址interface的指令是多餘的。

但在R2中的設定僅有

network 192.168.30.0
network 192.168.40.0

不包含interface Serial0/3/0的位址(10.1.4.2),因而interface Serial0/3/0没有納入路由協定運作,也就無法與corp形成鄰居。

依1樓bukesiyi的說明,加入

network 10.0.0.0

即可。
板凳 2018-12-22 10:46:17 回复 收起回复
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 论坛注册

本版积分规则

QQ|Archiver|手机版|小黑屋|sitemap|鸿鹄论坛 ( 京ICP备14027439号 )  

GMT+8, 2025-4-29 22:38 , Processed in 0.467694 second(s), 26 queries , Redis On.  

  Powered by Discuz!

  © 2001-2025 HH010.COM

快速回复 返回顶部 返回列表