要求:
1.除R5环回地址固定以外,其他所有网段基于192.168.1.0/24进行合理的IP地址划分
2.R1-2-4路由器上均存在两个环回,用来模拟用户网段,地址使用192.168.1.0/24划分。
3.R1-R4上不能直接写去往5.5.5.5/24网段路由,但仍可访问。
4.全网可达,尽量减少每台路由器路由表路由条目。—汇总
5.R4—R5之间正常走1000M,故障走100M链路。
6.PC1和PC2使用DHCP动态获取IP地址。
先进行子网划分
R1
192.168.1.32 27
192.168.1.32 28
192.168.1.48 28
R2
192.168.1.96 27
192.168.1.96 28
192.168.1.112 28
R3
192.168.1.128 27
R4
192.168.1.64 27
192.168.1.64 28
192.168.1.80 28
R5
ip route-static 192.168.1.32 27 192.168.1.17
ip route-static 192.168.1.64 27 192.168.1.17
ip route-static 192.168.1.128 27 192.168.1.17
ip route-static 192.168.1.96 27 192.168.1.17ip route-static 192.168.1.8 30 192.168.1.17
ip route-static 192.168.1.12 30 192.168.1.17
ip route-static 192.168.1.4 30 192.168.1.17
ip route-static 192.168.1.0 30 192.168.1.17
ip route-static 192.168.1.64 27 192.168.1.21 preference 75
ip route-static 192.168.1.96 27 192.168.1.21 preference 75
ip route-static 192.168.1.128 27 192.168.1.21 preference 75
ip route-static 192.168.1.32 27 192.168.1.21 preference 75
ip route-static 192.168.1.8 30 192.168.1.21 preference 75
ip route-static 192.168.1.4 30 192.168.1.21 preference 75
ip route-static 192.168.1.12 30 192.168.1.21 preference 75ip route-static 192.168.1.0 30 192.168.1.21 preference 75
主干链路分别划分为:
192.168.1.0/30
192.168.1.4/30
192.168.1.8/30
192.168.1.10/30
192.168.1.16/30
192.168.1.20/30
在配置的过程中配上NULLO接口进行防环
进行R1的接口IP配置和环回配置
进行R2的接口IP配置和环回配置
进行R3的接口IP配置和环回配置
进行R4的接口IP配置和环回配置
进行R5的接口IP配置和环回配置
配置完成后看能不能ping通实现全网可达
在R4路由上面配置一个优先级的接口实现正常走1000M,故障走100M
最后进行DHCP宣告自动获取IP地址