环回接口不通过 RIPv2 通告

网络工程 思科 撕裂 帧中继 环回
2022-02-18 06:47:08

我的拓扑是这样的

R0 作为集线器

R1 和 R2 作为辐条

在此处输入图像描述

R2 的环回为 2.2.2.2,R3 的环回为 3.3.3.3

R1 可以 ping 这些地址,并在 RIPv2 中通告 2.0.0.0 和 3.0.0.0。

但是,当我运行“show ip route”时,R2 和 R3 似乎没有在其路由表中获取这些路由

自动摘要未生效,并且 RIP 在所有路由器上运行 v2。

任何帮助表示赞赏。

Router 1 (HUB)
!
version 12.2
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname Router
!
!
!
!
!
!
!
!
ip cef
no ipv6 cef
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
interface FastEthernet0/0
 no ip address
 duplex auto
 speed auto
 shutdown
!
interface FastEthernet1/0
 no ip address
 duplex auto
 speed auto
 shutdown
!
interface Serial2/0
 ip address 172.12.123.1 255.255.255.0
 encapsulation frame-relay
 frame-relay interface-dlci 102
 frame-relay interface-dlci 103
!
interface Serial3/0
 no ip address
 shutdown
!
interface FastEthernet4/0
 no ip address
 shutdown
!
interface FastEthernet5/0
 no ip address
 shutdown
!
router rip
 version 2
 network 2.0.0.0
 network 3.0.0.0
 network 172.12.0.0
 no auto-summary
!
ip classless
!
ip flow-export version 9
!
!
!
!
!
!
!
line con 0
!
line aux 0
!
line vty 0 4
 login
!
!
!
end

-----------------------------------
R2 (SPOKE)
!
version 12.2
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname Router
!
!
!
!
!
!
!
!
ip cef
no ipv6 cef
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
interface Loopback2
 ip address 2.2.2.2 255.255.255.0
!
interface FastEthernet0/0
 no ip address
 duplex auto
 speed auto
 shutdown
!
interface FastEthernet1/0
 no ip address
 duplex auto
 speed auto
 shutdown
!
interface Serial2/0
 ip address 172.12.123.2 255.255.255.0
 encapsulation frame-relay
 frame-relay interface-dlci 201
!
interface Serial3/0
 no ip address
 shutdown
!
interface FastEthernet4/0
 no ip address
 shutdown
!
interface FastEthernet5/0
 no ip address
 shutdown
!
router rip
 version 2
 network 2.0.0.0
 network 172.12.0.0
 no auto-summary
!
ip classless
ip route 172.12.123.3 255.255.255.255 172.12.123.1 
ip route 2.2.2.2 255.255.255.255 172.12.123.1 
!
ip flow-export version 9
!
!
!
!
!
!
!
line con 0
!
line aux 0
!
line vty 0 4
 login
!
!
!
end
------------------------------
R3
!
version 12.2
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname Router
!
!
!
!
!
!
!
!
ip cef
no ipv6 cef
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
interface Loopback3
 ip address 3.3.3.3 255.255.255.0
!
interface FastEthernet0/0
 no ip address
 duplex auto
 speed auto
 shutdown
!
interface FastEthernet1/0
 no ip address
 duplex auto
 speed auto
 shutdown
!
interface Serial2/0
 ip address 172.12.123.3 255.255.255.0
 encapsulation frame-relay
 frame-relay interface-dlci 301
!
interface Serial3/0
 no ip address
 shutdown
!
interface FastEthernet4/0
 no ip address
 shutdown
!
interface FastEthernet5/0
 no ip address
 shutdown
!
router rip
 version 2
 network 3.0.0.0
 network 172.12.0.0
 no auto-summary
!
ip classless
ip route 172.12.123.2 255.255.255.255 172.12.123.1 
ip route 3.3.3.3 255.255.255.255 172.12.123.1 
!
ip flow-export version 9
!
!
!
!
!
!
!
line con 0
!
line aux 0
!
line vty 0 4
 login
!
!
!
end

编辑:是不是因为 R1 正在通过 S2/0 学习环回,所以它不会将它们通告出去?

Edit2:我收回了,接口正在运行帧中继,这不可能吗?

1个回答

编辑:是不是因为 R1 正在通过 S2/0 学习环回,所以它不会将它们通告出去?

Edit2:我收回了,接口正在运行帧中继,这不可能吗?

您所关心的是帧中继上的 IP 水平分割

但是,您不应该遇到此问题,因为您在 R1 上使用多点物理接口帧中继并且默认情况下禁用水平分割,但这可能是数据包跟踪器 IOS 或 IOS 版本本身的问题。

最好的验证方法是在 R1 上运行以下命令

`show ip int s2/0 | i Split horizon`

如果你看到Split horizon is enabled了,那就是问题所在。no ip split-horizon您可以通过在 R1 的 s2/0 配置下发出来关闭它并再次检查。


在 R1 上,命令network 2.0.0.0network 3.0.0.0根本不起作用,因为网络命令是在设备上连接的接口上启用/运行 RIP,而不是“广告”。


另一点是在 R2 和 R3 上,您不需要两条静态路由,因为它们不是必需的和不正确的。要让 R2 和 R3 到达彼此的接口和环回 IP,请添加frame-relay map ip 172.12.123.3 201 broadcastR2 和frame-relay map ip 172.12.123.2 301 broadcastR3 。您可以检查帧中继地图show frame-relay map


最佳实践是使用点对点子接口