锐捷网管交换机RIP 发布聚合路由配置举例

一、组网需求
如下图,Device B和Device A、C和D之间通过RIPv2路由协议实现互联互通。
为缩小Device A的路由表,在Device B上配置路由聚合成172.16.0.0/21。

二、 组网图
RIP 发布聚合路由配置组网图

三、配置要点
(1) 所有设备配置接口IP地址(略)。
(2) 所有设备配置RIP基本功能(略)。
(3) Device B关闭自动汇总,并配置路由汇聚。

四、 配置步骤
(1) 配置各接口的IP地址和启动单播路由协议(略)。
(2) 配置设备配置RIP基本功能(略)。
(3) Device B关闭自动汇总。
Device B> enable
Device B# configure terminal
Device B(config)# router rip
Device B(config-router)# version 2
Device B(config-router)# no auto-summary
Device B(config-router)# exit

(4) Device B GigabitEthernet 0/1接口上配置172.16.0.0/21路由汇聚。
Device B(config)# interface gigabitethernet 0/1
Device B(config-if-GigabitEthernet 0/1)# ip rip summary-address 172.16.0.0 255.255.248.0

五、验证配置结果
# 检查设备A路由表,生成172.16.0.0/16表项。
Device A# show ip route rip
R 172.16.0.0/21 [120/2] via 192.168.1.2, 00:01:04, GigabitEthernet 0/1

六、 配置文件
Device B配置文件。
!
interface gigabitethernet 0/1
ip address 196.38.165.1 255.255.255.0
!
router rip
version 2
no auto-summary
!

ICP备案号:晋ICP备18007549号-1
站长微信:13613567205