需求:1.全网可达
2.拓扑中所需地址全部基于192.168.0.0/24划分所得
3.静态路由(不允许使用动态路由)
4.R8环回需要汇总
192.168.0.0 24
192.168.0.000 00000 27
10个广播域
192.168.0.0 27——骨干链路
192.168.0.000 000 00 30
192.168.0.0 30
192.168.0.4 30
192.168.0.8 30
192.168.0.12 30
192.168.0.16 30
192.168.0.20 30
192.168.0.24 30
192.168.0.32 27——r8上环会
192.168.0.001 00 000
192.168.0.32 29
192.168.0.40 29
192.168.0.48 29
192.168.0.56 29
192.168.0.64 27两个VLAN
192.168.0.96 27
192.168.0.128 27
192.168.0.160 27
192.168.0.192 27
192.168.0.224 27
先配置VLAN
配置路由器IP
配置vlan接口
配置路由
配置R5路由
[R5]ip route-static 192.168.0.0 30 192.168.0.17
[R5]
[R5]ip route-static 192.168.0.32 27 192.168.0.17
[R5]
[R5]ip route-static 192.168.0.8 30 192.168.0.17
[R5]
[R5]ip route-static 192.168.0.4 30 192.168.0.17
[R5]
[R5]ip route-static 192.168.0.12 30 192.168.0.17
[R5]
[R5]ip route-static 192.168.0.64 27 192.168.0.17
[R5]
[R5]ip route-static 192.168.0.96 27 192.168.0.17
[R5]
[R5]ip route-static 192.168.0.128 27 192.168.0.17
[R5]
[R5]ip route-static 192.168.0.160 27 192.168.0.17
配置缺省
[R8]ip route-static 0.0.0.0 0 192.168.0.2
[R8]ip route-static 0.0.0.0 0 192.168.0.10
[R9]ip route-static 0.0.0.0 0 192.168.0.6
[R10]ip route-static 0.0.0.0 0 192.168.0.14
[R11]ip route-static 0.0.0.0 0 192.168.0.18
[R5]ip route-static 0.0.0.0 0 192.168.0.26
[R8]ip route-static 192.168.0.32 27 NULL 0
R12上配置并更改优先级
ip route-static 192.168.0.0 30 192.168.0.21 preference 70
ip route-static 192.168.0.4 30 192.168.0.21 preference 70
ip route-static 192.168.0.8 30 192.168.0.21 preference 70
ip route-static 192.168.0.12 30 192.168.0.21 preference 70
ip route-static 192.168.0.32 27 192.168.0.21 preference 70
ip route-static 192.168.0.64 27 192.168.0.21 preference 70
ip route-static 192.168.0.96 27 192.168.0.21 preference 70
ip route-static 192.168.0.128 27 192.168.0.21 preference 70
ip route-static 192.168.0.160 27 192.168.0.21 preference 70
全网可达