该实验具体要求如下图
首先,我们按照要求基于192.168.1.0/24进行划分,如下图
然后进行实验拓扑的搭建,如下图
接下来我们进行配置IP地址以及创建环回接口
AR1:
[r1]
[r1]interface GigabitEthernet 0/0/1
[r1-GigabitEthernet0/0/1]ip address 192.168.1.65 27
[r1-GigabitEthernet0/0/1]quit
[r1]interface LoopBack 0
[r1-LoopBack0]ip address 192.168.1.1 27
[r1-LoopBack0]quit
[r1]interface LoopBack 1
[r1-LoopBack1]ip address 192.168.1.33 27
AR2:
[r2]
[r2]interface GigabitEthernet 0/0/0
[r2-GigabitEthernet0/0/0]ip address 192.168.1.66 27
[r2-GigabitEthernet0/0/0]quit
[r2]interface GigabitEthernet 0/0/1
[r2-GigabitEthernet0/0/1]ip address 192.168.1.97 27
[r2-GigabitEthernet0/0/1]quit
[r2]interface LoopBack 0
[r2-LoopBack0]ip address 192.168.1.129 27
[r2-LoopBack0]quit
[r2]interface LoopBack 1
[r2-LoopBack1]ip address 192.168.1.161 27
AR3:
[r3]
[r3]interface GigabitEthernet 0/0/0
[r3-GigabitEthernet0/0/0]ip address 192.168.1.98 27
[r3-GigabitEthernet0/0/0]quit
[r3]interface LoopBack 0
[r3-LoopBack0]ip address 3.3.3.1 24
[r3-LoopBack0]quit
之后我们进行RIPV2的配置
AR1:
[r1]rip 启动
[r1-rip-1]version 2 选择版本2
[r1-rip-1]undo summary 关闭自动汇总
宣告
[r1-rip-1]network 192.168.1.0
AR2:
[r2]rip 启动
[r2-rip-1]version 2 选择版本2
[r2-rip-1]undo summary 关闭自动汇总
宣告
[r2-rip-1]network 192.168.1.0
AR3:
[r3]rip 启动
[r3-rip-1]version 2 选择版本2
[r3-rip-1]undo summary 关闭自动汇总
宣告
[r3-rip-1]network 192.168.1.0
最后我们进行RIP的扩展配置:
1、V2的手工汇总—在更新源路由器上,所有更新发出的接口上进行配置
AR1:
[r1]interface GigabitEthernet 0/0/1
[r1-GigabitEthernet0/0/1]rip summary-address 192.168.1.0 255.255.255.192
AR2:
[r2]interface GigabitEthernet 0/0/0
[r2-GigabitEthernet0/0/0]rip summary-address 192.168.1.128 255.255.255.192
[r2-GigabitEthernet0/0/0]quit
[r2]interface GigabitEthernet 0/0/1
[r2-GigabitEthernet0/0/1]rip summary-address 192.168.1.128 255.255.255.192
2、V2的认证 – 在RIP的更新包中,携带身份核实秘钥;若核实成功才能学习对端的路由信息
在直连邻居的接口上配置
AR1:
[r1-GigabitEthernet0/0/1]rip authentication-mode md5 usual cipher 123456(密码)
切记两端秘钥格式与密码必须完全一致
AR2和AR3操作同上
3、缺省路由—在边界路由器上定义即可,定义后将向内网发送缺省信息;使得内部的路由器产生缺省路由,下一跳指向边界路由器
AR3:
[r3]rip
[r3-rip-1]default-route originate
完成综上几步,相当于已经完成该实验,各路由器的IP路由表如下图所示
AR1:
AR2:
AR3:
全网可达:
来源:oschina
链接:https://my.oschina.net/u/4278251/blog/4812545