静态综合实验

题目:

建立拓扑图并进行标注:

为每个接口配置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         //查看路由表

结果:

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值