一、实验要求
二、实验步骤
1.首先设计对应的拓扑结构
2.根据设计好的拓扑结构,合理的规划IP地址
规划IP地址的思路:
根据题意得,该拓扑结构共有6(主干网段)+8(环回网段)=十个网段,又8个环回网段可看作为1个
所以192.168.1.0/24可划分为:
192.168.1.0/27(骨干网段);
192.168.1.0/30;192.168.1.4/30;192.168.1.8/30;192.168.1.12/30;192.168.1.16/30;192.168.1.20/30
192.168.1.32/27;
192.168.1.64/27;192.168.1.128/27;
192.168.1.96/27;(换回网段)192.168.1.160/27;
192.168.1.190/27;192.168.1.224/27;(预留网段)
根据划分好的IP依次用interface GigabitEthernet (网关号)
ip address (ip地址)两条命令写入对应路由器,再用display ip interface breif检查,当出现以下结果时表示IP地址写入成功
3.配置汇总路由
[r1]ip route-static 192.168.1.64 27 192.168.1.2
[r1]ip route-static 192.168.1.4 30 192.168.1.2
[r1]ip route-static 192.168.1.96 27 192.168.1.21
[r1]ip route-static 192.168.1.16 30 192.168.1.21
[r1]ip route-static 192.168.1.128 27 192.168.1.6
[r1]ip route-static 192.168.1.128 27 192.168.1.18
[r1]ip route-static 192.168.1.8 30 192.168.1.6
[r1]ip route-static 192.168.1.8 30 192.168.1.18
[r1]ip route-static 192.168.1.12 30 192.168.1.18
[r1]ip route-static 192.168.1.12 30 192.168.1.6
[r2]ip route-static 192.168.1.128 27 192.168.1.6
[r2]ip route-static 192.168.1.8 30 192.168.1.6
[r2]ip route-static 192.168.1.12 30 192.168.1.6
[r2]ip route-static 192.168.1.16 30 192.168.1.6
[r2]ip route-static 192.168.1.96 27 192.168.1.17
[r2]ip route-static 192.168.1.32 27 192.168.1.1
[r2]ip route-static 192.168.1.20 30 192.168.1.1
[r2]ip route-static 192.168.1.96 27 192.168.1.21
[r3]ip route-static 192.168.1.128 27 192.168.1.18
[r3]ip route-static 192.168.1.12 30 192.168.1.18
[r3]ip route-static 192.168.1.8 30 192.168.1.18
[r3]ip route-static 192.168.1.4 30 192.168.1.18
[r3]ip route-static 192.168.1.64 27 192.168.1.5
[r3]ip route-static 192.168.1.32 27 192.168.1.22
[r3]ip route-static 192.168.1.0 30 192.168.1.22
[r3]ip route-static 192.168.1.64 27 192.168.1.2
[r4]ip route-static 192.168.1.64 27 192.168.1.5
[r4]ip route-static 192.168.1.0 30 192.168.1.5
[r4]ip route-static 192.168.1.32 27 192.168.1.1
[r4]ip route-static 192.168.1.96 27 192.168.1.17
[r4]ip route-static 192.168.1.20 30 192.168.1.17
[r4]ip route-static 192.168.1.32 27 192.168.1.22
4.配置缺省路由:
[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.21
[r2]ip route-static 0.0.0.0 0 192.168.1.6
[r3]ip route-static 0.0.0.0 0 192.168.1.18
[r4]ip route-static 0.0.0.0 0 192.168.1.10
[r4]ip route-static 0.0.0.0 0 192.168.1.12
5.解决第五问:
[r4]ip route-static 0.0.0.0 0 192.168.1.14 preference 61
6.测试