RIP实验
RIP实验
实验拓扑

实验需求
- 按照图示配置 IP 地址
- 配置 RIP 实现全网路由互通
- 要求全网路由器不能出现明细路由(直连网段除外),不影响网络正常访问
- 业务网段不允许出现协议报文
- R1 和 R2 之间需要开启接口身份验证来保证协议安全性,密钥为
runtime
配置步骤
1.配置 IP 地址
路由器1的配置如下:int g0/0ip add 192.168.1.1 24int g0/1ip add 172.16.0.1 24int g0/2ip add 172.16.1.1 24
路由器2的配置如下:int g0/0ip add 192.168.1.2 24int g0/1ip add 192.168.2.2 24
路由器3的配置如下:int g0/0ip add 192.168.2.3 24int g0/1ip add 172.16.2.3 24int g0/2ip add 172.16.3.3 242.配置 RIP 实现全网路由互通
路由器1的配置如下:rip 1version 2undo summarynetwork 172.16.0.0network 192.168.1.0
路由器2的配置如下:rip 1version 2undo summarynetwork 192.168.1.0network 192.168.2.0
路由器3的配置如下:rip 1version 2undo summarynetwork 172.16.0.0network 192.168.2.03.要求全网路由器不能出现明细路由(直连网段除外),不影响网络正常访问
步骤 1:在 AR1 的 g0/0 接口配置手动路由聚合
int g0/0rip summary-address 172.16.0.0 23步骤 2:在 AR3 的 g0/0 接口配置手动路由聚合
int g0/0rip summary-address 172.16.2.0 23步骤 3:在 R2 上查看路由表,发现学习到的是 R1 和 R3 发布的聚合路由
注意:基于 RIP 的工作原理,旧的明细路由需要一定时间延迟才会从路由表中彻底删除
[AR2]display ip routing-table
Destinations : 15 Routes : 15
Destination/Mask Proto Pre Cost NextHop Interface0.0.0.0/32 Direct 0 0 127.0.0.1 InLoop0127.0.0.0/8 Direct 0 0 127.0.0.1 InLoop0127.0.0.1/32 Direct 0 0 127.0.0.1 InLoop0127.255.255.255/32 Direct 0 0 127.0.0.1 InLoop0172.16.0.0/23 RIP 100 1 192.168.1.1 GE0/0172.16.2.0/23 RIP 100 1 192.168.2.3 GE0/1192.168.1.0/24 Direct 0 0 192.168.1.2 GE0/0192.168.1.2/32 Direct 0 0 127.0.0.1 InLoop0192.168.1.255/32 Direct 0 0 192.168.1.2 GE0/0192.168.2.0/24 Direct 0 0 192.168.2.2 GE0/1192.168.2.2/32 Direct 0 0 127.0.0.1 InLoop0192.168.2.255/32 Direct 0 0 192.168.2.2 GE0/1224.0.0.0/4 Direct 0 0 0.0.0.0 NULL0224.0.0.0/24 Direct 0 0 0.0.0.0 NULL0255.255.255.255/32 Direct 0 0 127.0.0.1 InLoop04.业务网段不允许出现协议报文
分析: 基于 network 命令的两层含义,R1 和 R3 对直连的业务网段进行宣告后,会往该网段发送 RIP 的协议报文。这些协议报文是完全没有意义的,还会消耗网络带宽,所以需要配置静默接口 步骤 1:把 AR1 连接业务网段的 g0/1 和 g0/2 接口配置为静默接口
rip 1silent-interface g0/1silent-interface g0/2步骤 2:把 AR3 连接业务网段的 g0/1 和 g0/2 接口配置为静默接口
rip 1silent-interface g0/1silent-interface g0/25.R1 和 R2 之间需要开启接口身份验证来保证协议安全性,密钥为 runtime
步骤 1:在 AR1 的 g0/0 接口配置接口验证,密钥 runtime
int g0/0rip authentication-mode simple plain runtime步骤 2:在 AR2 的 g0/0 接口配置接口验证,密钥必须和 R1 一致
int g0/0rip authentication-mode simple plain runtime说明:通过重置 RIP 进程观察是否能够学习到路由来判断接口验证是否通过


