使用 RIP 的路由器看不到自己的路由 Serial Interface

网络工程 思科 路由 路由器 思科-ios 撕裂
2022-02-21 18:10:26

我有两个路由器,R2 和 R3,我已经配置了没有自动汇总的 RIP,串行接口也已注册,但路由器看不到它们,在这种情况下,R2 se0/0/1 和 R3se0/0 /1。请问我该如何解决。

R2#
Building configuration...

Current configuration : 792 bytes
!
version 12.4
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname R2
!
!
ip cef
no ipv6 cef
!
!
spanning-tree mode pvst
!
!
interface FastEthernet0/0
 ip address 192.168.18.129 255.255.255.128
 duplex auto
 speed auto
!
interface FastEthernet0/1
 no ip address
 duplex auto
 speed auto
 shutdown
!
interface Serial0/0/0
 ip address 172.17.0.2 255.255.255.252
!
interface Serial0/0/1
 ip address 10.1.1.9 255.255.255.252
!
interface Vlan1
 no ip address
 shutdown
!
router rip
 network 10.0.0.0
 network 172.17.0.0
 network 192.168.18.0
 no auto-summary
!
ip classless
!
ip flow-export version 9
!
!
!
no cdp run
!
!
line con 0
!
line aux 0
!
line vty 0 4
 login
!
!
!
end

________

Gateway of last resort is not set

     172.17.0.0/30 is subnetted, 1 subnets
C       172.17.0.0 is directly connected, Serial0/0/0
     192.168.18.0/25 is subnetted, 1 subnets
C       192.168.18.128 is directly connected, FastEthernet0/0
R2#

_________________________________________

R3#s
Building configuration...

Current configuration : 829 bytes
!
version 12.4
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname R3
!
!
ip cef
no ipv6 cef
!
!
spanning-tree mode pvst
!
!
interface FastEthernet0/0
 ip address 172.19.3.1 255.255.255.224
 duplex auto
 speed auto
!
interface FastEthernet0/1
 no ip address
 duplex auto
 speed auto
 shutdown
!
interface Serial0/0/0
 ip address 172.17.0.13 255.255.255.252
!
interface Serial0/0/1
 ip address 10.1.1.10 255.255.255.252
 clock rate 2000000
 shutdown
!
interface Vlan1
 no ip address
 shutdown
!
router rip
 version 2
 network 10.0.0.0
 network 172.17.0.0
 network 172.19.0.0
 no auto-summary
!
ip classless
!
ip flow-export version 9
!
!
!
no cdp run
!
!
!
!
!
line con 0
!
line aux 0
!
line vty 0 4
 login
!
!
!
end

______________
Gateway of last resort is not set

     172.17.0.0/30 is subnetted, 1 subnets
C       172.17.0.12 is directly connected, Serial0/0/0
     172.19.0.0/27 is subnetted, 1 subnets
C       172.19.3.0 is directly connected, FastEthernet0/0
R3#
2个回答

看起来您已按照R3 中的方式进行interface Serial0/0/1配置。shutdown这意味着两个路由器之间的链接已关闭。关闭接口的路由从路由表中撤消,路由器不会通告不在其路由表中的路由,因此路由器不会通告该路由。

您必须打开链接,然后路由器将通告网络。

R2 正在运行 RIPv1。R3 正在运行 RIPv2。他们都必须说相同的协议。这必须是 v2,因为 v1 不是无类别的。