1.要求如图:
2.拓扑图:
3.分析:
根据拓扑结构,划分如上图的网段; r1、r2需要设置环回; 需要在AR3设置缺省路由; 需要手工汇总路由表; 需要认证加密;
4.配置:
1).创建环回以及和接口配置ip地址
[r1]int loopb 11
[r1-LoopBack11]ip add 192.168.1.1 27
[r1]int loopb 12
[r1-LoopBack12]ip add 192.168.1.33 27
[r1]int g0/0/0
[r1-GigabitEthernet0/0/0]ip add 192.168.1.129 27
[r2]int loopb 21
[r2-LoopBack21]ip add 192.168.1.65 27
[r2]int loopb 22
[r2-LoopBack22]ip add 192.168.1.97 27
[r2]int g0/0/0
[r2-GigabitEthernet0/0/0]ip add 192.168.1.130 27
[r2]int g0/0/1
[r2-GigabitEthernet0/0/1]ip add 192.168.1.162 27
[r3]int loopb 31
[r3-LoopBack31]ip add 3.3.3.1 24
[r3]int g0/0/0
[r3-GigabitEthernet0/0/0]ip add 192.168.1.161 27
2).开启rip进程、选择V2版本、宣告
[r1]rip 2
[r2-rip-2]version 2
[r1-rip-2]net 192.168.1.0
[r2]rip 2
[r2-rip-2]version 2
[r2-rip-2]net 192.168.1.0
[r3]rip 2
[r3-rip-2]version 2
[r3-rip-2]network 192.168.1.0
3).手工汇总
[r1]int g0/0/0
[r1-GigabitEthernet0/0/0]rip summary-address 192.168.1.0 255.255.255.192
[r2]int g0/0/0
[r2-GigabitEthernet0/0/0]rip summary-address 192.168.1.64 255.255.255.192
[r2]int g0/0/1
[r2-GigabitEthernet0/0/1]rip summary-address 192.168.1.64 255.255.255.192
4).设置密码
[r1]int g0/0/0
[r1-GigabitEthernet0/0/0]rip aut md5 u c a12345
[r2]int g0/0/0
[r2-GigabitEthernet0/0/0]rip aut md5 u c a12345
[r2]int g0/0/1
[r2-GigabitEthernet0/0/1]rip aut md5 u c a12345
[r3]int g0/0/0
[r3-GigabitEthernet0/0/0]rip aut md5 u c a12345
5).缺省路由
[r3-rip-2]default-route originate
6).空接口
[r1]ip route-static 192.168.1.0 26 NELL 0
[r2]ip route-static 192.168.1.64 26 NELL 0
5.测试: