题目:
建立拓扑图并进行标注:
为每个接口配置ip地址:
AR1
AR2
AR3
AR4
AR5
手动配置静态路由:
AR1
[r1]ip route-static 192.168.1.64 27 192.168.1.2
[r1]ip route-static 192.168.1.128 27 192.168.1.2
[r1]ip route-static 192.168.1.96 27 192.168.1.13
[r1]ip route-static 192.168.1.128 27 192.168.1.13
[r1]ip route-static 192.168.4.0 30 192.168.1.2
[r1]ip route-static 192.168.8.0 30 192.168.1.13
[r1]ip route-static 192.168.16.0 30 192.168.1.2
[r1]ip route-static 192.168.16.0 30 192.168.1.13
[r1]ip route-static 192.168.20.0 30 192.168.1.2
[r1]ip route-static 192.168.20.0 30 192.168.1.13
[r1]ip route-static 0.0.0.0 0 192.168.1.2 //配置缺省路由
[r1]ip route-static 0.0.0.0 0 192.168.1.13 //配置缺省路由
[r1]display ip routing-table //查看路由表
AR2
[r2]ip route-static 192.168.1.32 27 192.168.1.1
[r2]ip route-static 192.168.1.96 27 192.168.1.1
[r2]ip route-static 192.168.1.128 27 192.168.1.6
[r2]ip route-static 192.168.1.96 27 192.168.1.6
[r2]ip route-static 192.168.12.0 30 192.168.1.1
[r2]ip route-static 192.168.8.0 30 192.168.1.6
[r2]ip route-static 192.168.16.0 30 192.168.1.6
[r2]ip route-static 192.168.20.0 30 192.168.1.6
[r2]ip route-static 0.0.0.0 0 192.168.1.6 //配置缺省路由
[r2]display ip routing-table //查看路由表
AR3
[r3]ip route-static 192.168.1.32 27 192.168.1.14
[r3]ip route-static 192.168.1.128 27 192.168.1.9
[r3]ip route-static 192.168.1.64 27 192.168.1.14
[r3]ip route-static 192.168.1.64 27 192.168.1.9
[r3]ip route-static 192.168.1.0 30 192.168.1.14
[r3]ip route-static 192.168.4.0 30 192.168.1.9
[r3]ip route-static 192.168.16.0 30 192.168.1.9
[r3]ip route-static 192.168.20.0 30 192.168.1.9
[r3]ip route-static 0.0.0.0 0 192.168.1.9 //配置缺省路由
[r3]display ip routing-table //查看路由表
AR4
[r4]ip route-static 192.168.1.32 27 192.168.1.5
[r4]ip route-static 192.168.1.32 27 192.168.1.10
[r4]ip route-static 192.168.1.64 27 192.168.1.5
[r4]ip route-static 192.168.1.96 27 192.168.1.10
[r4]ip route-static 192.168.1.0 30 192.168.1.5
[r4]ip route-static 192.168.12.0 30 192.168.1.10
[r4]ip route-static 0.0.0.0 0 192.168.1.18 //配置缺省路由
[r4]ip route-static 0.0.0.0 0 192.168.1.22 preference 61 //设置路由优先级来浮动静
[r4]display ip routing-table //查看路由表
AR5
[r5]ip route-static 0.0.0.0 0 192.168.1.17 //所有路由朝这个出口走
[r5]ip route-static 0.0.0.0 0 192.168.1.21 preference 61 //设置路由优先级来浮动静
[r5]display ip routing-table //查看路由表