首页 > 技术文章 > RIP的优化

ccku 2020-09-14 21:37 原文

1.拒绝从某接口上收发rip消息
正常情况下,PC连接路由器会接收和发送rip消息

1	0.000000	192.168.1.254	224.0.0.9	RIPv2	Response
2	32.125000	192.168.1.254	224.0.0.9	RIPv2	Response

配置PC不收发与路由器的rip消息

undo rip output
# 拒绝从该接口发出rip消息

undo rip input
# 拒绝从该接口接收rip消息

2.抑制接口(抑制接口组播或广播报文的发送)

[R1-rip-1]silent-interface g0/0/0

如何使网络中不出现广播/组播的rip消息呢?

使用抑制口,对端rip中互相peer对端的ip

peer x.x.x.x(对端ip地址)
1	0.000000	12.1.1.1	12.1.1.2	RIPv2	Response
2	5.985000	12.1.1.2	12.1.1.1	RIPv2	Response

注意:抑制接口的优先级高于rip outputrip input

3.路由聚合

loopback环回接口 -- 代表一个地址/网段

interface loopback 1
ip add x.x.x.x x

配置路由聚合,使用CIDR无类域间路由聚合算出最优网络

# 在出接口上
[R2-GigabitEthernet0/0/1]rip summary-address 10.0.0.0 255.0.0.0

推荐阅读