要求
1.除R5环只地址固定以外,其他所有网段基于192.168.1./24进行合理的IP地址划分
2.R1-2-4路由器上均存在两个环回,用来模拟用户网段,地址便用192.168.1.8/24划分
3.R1-R4上不能直接写去往5.5.5.5/24网段路中,但仍可访问。
4.全网可达,尽量减少每台路由器路由表路由条目。-汇总
5.R4-R5之间,正常走1000M连路,故障走1O0M链路。
6.PC1和Pc2使用DHCP动态获取IP地址
配置
ar1
[r1-LoopBack0]ip address 192.168.1.32 28
[r1-LoopBack1]ip address 192.168.1.49 28
[r1-GigabitEthernet0/0/0]ip address 192.168.1.1 30
[r1-GigabitEthernet0/0/1]ip address 192.168.1.9 30
[r1]ip route-static 192.168.1.96 27 192.168.1.2
[r1]ip route-static 192.168.1.64 27 192.168.1.2
[r1]ip route-static 192.168.1.64 27 192.168.1.10
[r1]ip route-static 192.168.1.16 30 192.168.1.2
[r1]ip route-static 192.168.1.16 30 192.168.1.10
[r1]ip route-static 192.168.1.32 27 NULL 0
ar2
[r2-LoopBack0]ip address 192.168.1.97 28
[r2-LoopBack1]ip address 192.168.1.113 28
[r2-GigabitEthernet0/0/0]ip address 192.168.1.2 30
[r2-GigabitEthernet0/0/1]ip address 192.168.1.5 30
[r2]ip route-static 192.168.1.64 27 192.168.1.6
[r2]ip route-static 192.168.1.16 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.128 27 192.168.1.1
[r2]ip route-static 192.168.1.8 30 192.168.1.1
[r2]ip route-static 192.168.1.32 27 192.168.1.1
[r2]ip route-static 0.0.0.0 0 192.168.1.6
[r2]ip route-static 192.168.1.96 27 NULL 0
ar3
[r3-GigabitEthernet0/0/2]ip address 192.168.1.129 27
[r3-GigabitEthernet0/0/1]ip address 192.168.1.13 30
[r3-GigabitEthernet0/0/0]ip address 192.168.1.10 30
[r3]ip route-static 192.168.1.32 27 192.168.1.9
[r3]ip route-static 192.168.1.32 27 192.168.1.9
[r3]ip route-static 192.168.1.0 30 192.168.1.9
[r3]ip route-static 192.168.1.96 27 192.168.1.9
[r3]ip route-static 192.168.1.96 27 192.168.1.14
[r3]ip route-static 192.168.1.4 30 192.168.1.14
[r3]ip route-static 192.168.1.64 27 192.168.1.14
[r3]ip route-static 192.168.1.16 30 192.168.1.14
[r3]ip route-static 0.0.0.0 0 192.168.1.14
ar4
[r4-LoopBack0]ip address 192.168.1.97 28
[r4-LoopBack0]ip address 192.168.1.65 28
[r4-LoopBack1]ip address 192.168.1.81 28
[r4-GigabitEthernet0/0/0]ip address 192.168.1.6 30
[r4-GigabitEthernet0/0/2]ip address 192.168.1.17 30
[r4-GigabitEthernet4/0/0]ip address 192.168.1.21 30
[r4-GigabitEthernet0/0/1]ip address 192.168.1.14 30
[r4]ip route-static 192.168.1.8 30 192.168.1.13
[r4]ip route-static 192.168.1.12 27 192.168.1.13
[r4]ip route-static 192.168.1.32 27 192.168.1.13
[r4]ip route-static 192.168.1.32 27 192.168.1.15
[r4]ip route-static 192.168.1.32 27 192.168.1.5
[r4]undo ip route-static 192.168.1.32 255.255.255.224 192.168.1.15
[r4]ip route-static 192.168.1.0 30 192.168.1.5
[r4]ip route-static 192.168.1.96 27 192.168.1.5
[r4]ip route-static 0.0.0.0 0 192.168.1.18
[r4]ip route-static 192.168.1.64 27 NULL 0
ar5
[r5-GigabitEthernet0/0/0]ip address 192.168.1.18 30
[r5-GigabitEthernet0/0/1]ip address 192.168.1.22 30
[r5-LoopBack0]ip address 5.5.5.5 24
[r5-LoopBack1]ip address 6.6.6.6 24
[r5]ip route-static 192.168.1.32 27 192.168.1.17
[r5]ip route-static 192.168.1.8 30 192.168.1.17
[r5]ip route-static 192.168.1.4 30 192.168.1.17
[r5]ip route-static 192.168.1.12 30 192.168.1.17
ping