一, 除R5的环回地址以固定外,整个其他所有的网段基于192.168.1.0/24进行合理的IP地址划分
二,R1-R4每天路由器存在两个环回接口,用于模拟连接pc的网段;地址也在192.168.1.0/24这个网络范围内
三R1-R4上不能直接编写到达5.5.5.0/24的静态路由,但依然可以访问
四,4全网可达,尽量减少每台路由器,路由表条目的数量;避免环路出现
五 R4与R5间,正常1000M链路通信,故障时自动改为100M
现将192.168.1.0 /24划分为16个网段,取14个
192.168.1.0 /28 192.168.1.128 /28
192.168.1.16/ 28 192.168.1.144/28
192.168.1.48 /28、 192.168.1.160/28
192.168.1.64 /28 192.168.1.176/28
192.168.1.80 /28 192.168.1.192/ 28
192.168.1.96/28 192.168.1.208 /28
192.168.1.112 /28 192.168.1.32/28
R1-R2:192.168.1.0 28
R1-R4:192.168.1.48 28
R2-R3:192.168.1.16 28
R3-R4:192.168.1.32 28
R3-R5:192.168.1.64 28------1000M
192.168.1.80 28 ---------100M
R1环回:
192.168.1.96 28
192.168.1.112 28
汇总:192.168.1.96 27
R2环回:
192.168.1.128 28
192.168.1.144 28
汇总:192.168.1.128 27
R3环回:
192.168.1.160 28
192.168.1.176 28
汇总:192.168.1.160 27
R4环回:
192.168.1.192 28
192.168.1.208 28
汇总:192.168.1.192 27
R5环回
5.5.5.1 24
配置静态路由
R1:
[r1]ip route-static 192.168.1.16 28 192.168.1.2
[r1]ip route-static 192.168.1.32 28 192.168.1.50
[r1]ip route-static 192.168.1.128 27 192.168.1.2
[r1]ip route-static 192.168.1.192 27 192.168.1.50
[r1]ip route-static 192.168.1.160 27 192.168.1.18
[r1]ip route-static 192.168.1.160 27 192.168.1.33
[r1]ip route-static 192.168.1.64 28 192.168.1.18
[r1]ip route-static 192.168.1.64 28 192.168.1.33
[r1]ip route-static 192.168.1.80 28 192.168.1.18
[r1]ip route-static 192.168.1.80 28 192.168.1.33
R2:
[r2]ip route-static 192.168.1.32 28 192.168.1.18
[r2]ip route-static 192.168.1.48 28 192.168.1.1
[r2]ip route-static 192.168.1.64 28 192.168.1.18
[r2]ip route-static 192.168.1.80 28 192.168.1.18
[r2]ip route-static 192.168.1.96 27 192.168.1.1
[r2]ip route-static 192.168.1.160 27 192.168.1.18
[r2]ip route-static 192.168.1.192 27 192.168.1.50
[r2]ip route-static 192.168.1.192 27 192.168.1.34
R3:
[r3]ip route-static 192.168.1.0 28 192.168.1.17
[r3]ip route-static 192.168.1.48 28 192.168.1.34
[r3]ip route-static 192.168.1.128 27 192.168.1.17
[r3]ip route-static 192.168.1.192 27 192.168.1.34
[r3]ip route-static 192.168.1.96 27 192.168.1.1
[r3]ip route-static 192.168.1.96 27 192.168.1.49
[r3]ip route-static 5.5.5.0 24 192.168.1.66
[r3]ip route-static 5.5.5.0 24 192.168.1.82
更改优先级:
[r3]ip route-static 5.5.5.0 24 192.168.1.82 preference 61
R4:
[r4]ip route-static 192.168.1.0 28 192.168.1.49
[r4]ip route-static 192.168.1.16 28 192.168.1.33
[r4]ip route-static 192.168.1.64 28 192.168.1.33
[r4]ip route-static 192.168.1.80 28 192.168.1.33
[r4]ip route-static 192.168.1.96 27 192.168.1.49
[r4]ip route-static 192.168.1.160 27 192.168.1.33
[r4]ip route-static 192.168.1.128 27 192.168.1.2
[r4]ip route-static 192.168.1.128 27 192.168.1.17
配置缺省路由访问5.5.5.1 24
R1:
[r1]ip route-static 0.0.0.0 0 192.168.1.50
[r1]ip route-static 0.0.0.0 0 192.168.1.2
R2:
[r2]ip route-static 0.0.0.0 0 192.168.1.18
R3:
[r3]ip route-static 0.0.0.0 0 192.168.1.66
R4:
[r4]ip route-static 0.0.0.0 0 192.168.1.33