一 实验拓扑
二 实验需求
1.R3环回3.3.3.0/24,不宣告此环回;
2.其他网段基于192.168.1.0/24进行划分;
3.R1与R2均存在两个环回;
4.整个网络运行ripv2;
5.全网可达,保证更新安全,减少路由条目
三 实验思路
- 划分网段:
- 配置静态路由
- 配置动态路由
- 配置到达3.3.3.0,实现全网
- 接口验证
- 接口汇总
- 防环,配置黑洞路由
- 测试
- 四实验步骤
(1)划分网段:
基于1923.168.1.0/24,为减少条目可划分四个网段:两条链路可分别192.168.1.64/26和192.168.1.192/26
而R1和R2的环回口的四个环回口汇总为两个分别为192.168.1.128/26和192.168.1.192/26
(2)配置静态路由
R1]int g0/0/0
[R1-GigabitEthernet0/0/0]ip add 192.168.1.65 26
Jun 20 2023 20:45:54-08:00 R1 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP
on the interface GigabitEthernet0/0/0 has entered the UP state.
[R1-GigabitEthernet0/0/0]quiy
^
Error: Unrecognized command found at '^' position.
[R1-GigabitEthernet0/0/0]q
[R1]int l
[R1]int LoopBack 0
[R1-LoopBack0]IP ADD 192.168.1.128 27
Error: The specified IP address is invalid.
[R1-LoopBack0]IP add 192.168.1.128 27
Error: The specified IP address is invalid.
[R1-LoopBack0]ip add 192.168.1.129 27
[R1-LoopBack0]q
[R1]int l
[R1]int LoopBack 1
[R1-LoopBack1]ip add 192.168.1.160 27
Error: The specified IP address is invalid.
[R1-LoopBack1]ip add 192.168.1.161 27
[R1-LoopBack1]
[R2]int g0/0/0
[R2-GigabitEthernet0/0/0]ip add 192.168.1.66 26
Jun 20 2023 20:46:36-08:00 R2 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP
on the interface GigabitEthernet0/0/0 has entered the UP state.
[R2-GigabitEthernet0/0/0]q
[R2]int g0/0/1
[R2-GigabitEthernet0/0/1]ip add 192.168.1.1 26
Jun 20 2023 20:47:03-08:00 R2 %%01IFNET/4/LINK_STATE(l)[1]:The line protocol IP
on the interface GigabitEthernet0/0/1 has entered the UP state.
[R2-GigabitEthernet0/0/1]q
[R2]
Please check whether system data has been changed, and save data in time
Configuration console time out, please press any key to log on
<R2>sys
Enter system view, return user view with Ctrl+Z.
[R2]int l
[R2]int LoopBack 0
[R2-LoopBack0]IP ADD 192.168.1.193 27
[R2-LoopBack0]IP ADD 192.168.1.225 27
[R2-LoopBack0]
检测
[R3]int p
[R3]int p
[R3]int l
[R3]int LoopBack 0
[R3-LoopBack0]ip add 3.3.3.3 24
[R3-LoopBack0]quit
(3)配置动态路由协议
[R1]rip 1 //配置RIP协议的进程ID
[R1-rip-1] //RIP的协议视图
[R1-rip-1]version 2 //选择RIP的版本
[R1-rip-1]undo summary //关闭自动汇总
[R1-rip-1]network 192.168.1.0 //宣告跟自己直连的网段(主类宣告)
[R1]rip
[R1-rip-1]version 2
[R1-rip-1]undo summary
[R3]rip
[R3-rip-1]undo summary
[R1-rip-1]network 192.168.1.0
测试
(4)配置动态路由,实现全网,下发路由
(5)接口验证
[R2-GigabitEthernet0/0/0]rip authentication-mode md5 usual cipher 12345 //配置rip的接口认证
[R1]int g0/0/0
[R1-GigabitEthernet0/0/0]rip authentication-mode md5 usual cipher 12345
(6)接口汇总,
[R2-GigabitEthernet0/0/0]rip summary-address 192.168.1.192 255.255.255.192
[R1-GigabitEthernet0/0/0]rip summary-address 192.168.1.128 255.255.255.192
//接口汇总