拓补图:
第一步: 为了实现要求1,如图分配
R1
[r1]int g0/0/1
[r1-GigabitEthernet0/0/1]ip ad 192.168.1.1 30
[r1-GigabitEthernet0/0/1]q
[r1]int l0
[r1-LoopBack0]ip ad 192.168.1.65 27
[r1-LoopBack0]q
[r1]int l1
[r1-LoopBack1]ip ad 192.168.1.97 27
R2
[r2]int g0/0/0
[r2-GigabitEthernet0/0/0]ip ad 192.168.1.2 30
[r2-GigabitEthernet0/0/0]q
[r2]int g0/0/1
[r2-GigabitEthernet0/0/1]ip ad 192.168.1.5 30
[r2-GigabitEthernet0/0/1]q
[r2]int l0
[r2-LoopBack0]ip ad 192.168.1.129 27
[r2-LoopBack0]q
[r2]int l1
[r2-LoopBack1]ip ad 192.168.1.161 27
R3
[r3]int g0/0/0
[r3-GigabitEthernet0/0/0]ip ad 192.168.1.6 30
[r3]int l0
[r3-LoopBack0]ip ad 3.3.3.3 24
第二步:配置RIPV2路由
R1
[r1]rip
[r1-rip-1]vers 2
[r1-rip-1]net
[r1-rip-1]network 192.168.1.0
R2
[r2]rip
[r2-rip-1]vers 2
[r2-rip-1]net
[r2-rip-1]network 192.168.1.0
R3
[r3]rip
[r3-rip-1]vers
[r3-rip-1]version 2
[r3-rip-1]net 192.168.1.0
第三步:为了实现要求2,且全网可达,在R3上配置缺省路由
R3
[r3]rip
[r3-rip-1]default-route originate
R1
R2
全网可达:
第四步:路由表手工汇总
R1
[r1]int g0/0/1
[r1-GigabitEthernet0/0/1]rip sum
[r1-GigabitEthernet0/0/1]rip summary-address 192.168.1.64 255.255.255.192
R2
[r2]int g0/0/1
[r2-GigabitEthernet0/0/1]rip sum
[r2-GigabitEthernet0/0/1]rip summary-address 192.168.1.128 255.255.255.192
R3
第五步:为了防环,在各路由器中配置空接口 ,谁做汇总谁防环
R1
[r1]ip route-static 192.168.1.64 26 NULL 0
R2
[r2]ip route-static 192.168.1.128 26 NULL 0
第六步:为了保障更新安全,在各路由器间进行RIPV2的认证
R1
[r1]int g0/0/1
[r1-GigabitEthernet0/0/1]rip authentication-mode md5 usual cipher 19900207
R2
[r2]int g0/0/0
[r2-GigabitEthernet0/0/0]rip authentication-mode md5 u cipher 19900207
[r2-GigabitEthernet0/0/0]q
[r2]int g0/0/1
[r2-GigabitEthernet0/0/1]rip authentication-mode md5 u ci 08042
R3
[r3]int g0/0/0
[r3-GigabitEthernet0/0/0]rip authentication-mode md5 u ci 08042
第七步:为了加快收敛速度,在各路由器中对计时器进行修改
R1
[r1]rip
[r1-rip-1]ti
[r1-rip-1]timers rip 15 90 150
R2
[r2]rip
[r2-rip-1]tim
[r2-rip-1]timers rip 15 90 150
R3
[r3]rip
[r3-rip-1]tim
[r3-rip-1]timers rip 15 90 150