如何在我的网络中配置 EIGRP?

网络工程 路由 网络 eigrp
2022-02-17 11:59:50

我有以下网络 它是配置接口之前的图像

使用以下路由表:

在此处输入图像描述

路由器1的配置

Building configuration...

Current configuration : 1056 bytes
!
version 15.1
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname R1
!
!
!
!
!
!
!
!
no ip cef
no ipv6 cef
!
!
!
!
license udi pid CISCO2911/K9 sn FTX1524KELG-
!
!
!
!
!
!
!
!
!
no ip domain-lookup
!
!
spanning-tree mode pvst
!
!
!
!
!
!
interface GigabitEthernet0/0
 ip address 189.135.190.142 255.255.255.252
 duplex auto
 speed auto
!
interface GigabitEthernet0/1
 ip address 189.135.190.146 255.255.255.252
 duplex auto
 speed auto
!
interface GigabitEthernet0/2
 no ip address
 duplex auto
 speed auto
 shutdown
!
interface Serial0/3/0
 ip address 189.135.190.150 255.255.255.252
 clock rate 2000000
!
interface Serial0/3/1
 no ip address
 clock rate 2000000
 shutdown
!
interface Vlan1
 no ip address
 shutdown
!
router eigrp 1
 network 189.135.0.0
 network 189.135.190.140 0.0.0.3
 network 189.135.190.144 0.0.0.3
 network 189.135.190.148 0.0.0.3
 auto-summary
!
ip classless
!
ip flow-export version 9
!
!
!
!
!
!
!
!
line con 0
!
line aux 0
!
line vty 0 4
 login
!
!
!
end

路由器2的配置

Building configuration...

Current configuration : 1388 bytes
!
version 15.1
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname R2
!
!
!
!
!
!
!
!
no ip cef
no ipv6 cef
!
!
!
!
license udi pid CISCO2911/K9 sn FTX15242TEU-
!
!
!
!
!
!
!
!
!
no ip domain-lookup
!
!
spanning-tree mode pvst
!
!
!
!
!
!
interface GigabitEthernet0/0
 ip address 189.135.190.154 255.255.255.252
 duplex auto
 speed auto
!
interface GigabitEthernet0/1
 ip address 189.135.190.158 255.255.255.252
 duplex auto
 speed auto
!
interface GigabitEthernet0/2
 no ip address
 duplex auto
 speed auto
 shutdown
!
interface Serial0/2/0
 ip address 189.135.190.162 255.255.255.252
!
interface Serial0/2/1
 no ip address
 clock rate 2000000
 shutdown
!
interface Serial0/3/0
 ip address 189.135.190.166 255.255.255.252
!
interface Serial0/3/1
 ip address 189.135.190.170 255.255.255.252
 clock rate 2000000
!
interface Vlan1
 no ip address
 shutdown
!
router eigrp 1
 network 189.135.0.0
 network 189.135.190.152 0.0.0.3
 network 189.135.190.156 0.0.0.3
 network 189.135.190.160 0.0.0.3
 network 189.135.190.164 0.0.0.3
 network 189.135.190.168 0.0.0.3
 network 189.135.190.140 0.0.0.3
 network 189.135.190.144 0.0.0.3
 network 189.135.190.148 0.0.0.3
 network 189.135.190.0 0.0.0.3
 auto-summary
!
ip classless
!
ip flow-export version 9
!
!
!
!
!
!
!
!
line con 0
!
line aux 0
!
line vty 0 4
 login
!
!
!
end

路由器3的配置:

Current configuration : 954 bytes
!
version 15.1
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname R3
!
!
!
!
!
!
!
!
no ip cef
no ipv6 cef
!
!
!
!
license udi pid CISCO2901/K9 sn FTX1524XOO5-
!
!
!
!
!
!
!
!
!
no ip domain-lookup
!
!
spanning-tree mode pvst
!
!
!
!
!
!
interface GigabitEthernet0/0
 ip address 189.135.190.174 255.255.255.252
 duplex auto
 speed auto
!
interface GigabitEthernet0/1
 ip address 189.135.190.178 255.255.255.252
 duplex auto
 speed auto
!
interface Serial0/3/0
 ip address 189.135.190.182 255.255.255.252
!
interface Serial0/3/1
 ip address 189.135.190.186 255.255.255.252
!
interface Vlan1
 no ip address
 shutdown
!
router eigrp 1
 network 189.135.190.172 0.0.0.3
 network 189.135.190.176 0.0.0.3
 network 189.135.190.180 0.0.0.3
 network 189.135.190.184 0.0.0.3
 
!
ip classless
!
ip flow-export version 9
!
!
!
!
!
!
!
!
line con 0
!
line aux 0
!
line vty 0 4
 login
!
!
!
end

路由器4的配置:

Building configuration...

Current configuration : 924 bytes
!
version 15.1
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname R4
!
!
!
!
!
!
!
!
no ip cef
no ipv6 cef
!
!
!
!
license udi pid CISCO2911/K9 sn FTX1524GKO1-
!
!
!
!
!
!
!
!
!
no ip domain-lookup
!
!
spanning-tree mode pvst
!
!
!
!
!
!
interface GigabitEthernet0/0
 ip address 189.135.190.190 255.255.255.252
 duplex auto
 speed auto
!
interface GigabitEthernet0/1
 ip address 189.135.190.194 255.255.255.252
 duplex auto
 speed auto
!
interface GigabitEthernet0/2
 no ip address
 duplex auto
 speed auto
 shutdown
!
interface Serial0/3/0
 ip address 189.135.190.198 255.255.255.252
 clock rate 2000000
!
interface Serial0/3/1
 ip address 189.135.190.202 255.255.255.252
 clock rate 2000000
!
interface Vlan1
 no ip address
 shutdown
!
ip classless
!
ip flow-export version 9
!
!
!
!
!
!
!
!
line con 0
!
line aux 0
!
line vty 0 4
 login
!
!
!
end

如您所见,我已经尝试将网络与相应的网络 ID 链接在一起,但没有出现“eigrp route linked”的图例,所以我做错了。任何帮助表示赞赏,谢谢。

1个回答

链路两端的路由器接口必须在同一个子网中。例如,R1 和 R2 之间的链路不在每一端的同一子网中寻址。