题目:
题目分析:
先规划IP(方便管理,便于汇总)
需求1,2 : R1到R4,每个路由上面两个环回,两个环回可以汇总到一个网段,有6个骨干网络,每个骨干有两个IP需求,所以子网划分到/30,/30刚好有两个网段,
需求3:缺省
需求4:汇总路由
需求5:可通过修改优先值,当1000M链路通信故障时,自动改为100M链路
子网划分:
192.168.1.0/24 借三位可以分为8个子网,只是用5个
-
192.168.1. 000 00000 :1.0/27 可以划分为8个/30网段,只用其中6个作为骨干网段
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.24/30
192.168.1.28/30 -
192.168.1. 001 00000: 1.32/27——r1
192.168.1.32/28 192.168.1.48/28 -
192.168.1. 010 00000: 1.64/27——r2
192.168.64/28 192.168.1.80/28 -
192.168.1. 011 00000: 1.96/27——r3
192.168.96/28 192.168.1.112/28 -
192.168.1. 100 00000: 1.128/27——r4
192.168.128/28 192.168.1.144/28 -
192.168.1. 101 00000: 1.160/27
-
192.168.1. 110 00000: 1.192/27
-
192.168.1. 111 00000: 1.224/27
配置:
R1:
[R1]int lo0
[R1-LoopBack0]ip add 192.168.1.33 28
[R1-LoopBack0]int lo1
[R1-LoopBack1]ip add 192.168.1.49 28
[R1]int g0/0/0
[R1-GigabitEthernet0/0/0]ip add 192.168.1.1 30
[R1-GigabitEthernet0/0/0]int g0/0/1
[R1-GigabitEthernet0/0/1]ip add 192.168.1.9 30
[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.128 27 192.168.1.10
[R1]ip route-static 192.168.1.12 30 192.168.1.10
[R1]ip route-static 192.168.1.96 27 192.168.1.2
[R1]ip route-static 192.168.1.96 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 0.0.0.0 0 192.168.1.2
R2:
[R2]int lo0
[R2-LoopBack0]ip add 192.168.1.65 28
[R2-LoopBack0]int lo1
[R2-LoopBack1]ip add 192.168.1.81 28
[R2]int g0/0/0
[R2-GigabitEthernet0/0/0]ip add 192.168.1.2 30
[R2-GigabitEthernet0/0/0]int g0/0/1
[R2-GigabitEthernet0/0/1]ip add 192.168.1.5 30
[R2]ip route-static 192.168.1.32 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.96 27 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.128 27 192.168.1.1
[R2]ip route-static 192.168.1.128 27 192.168.1.6
[R2]ip route-static 0.0.0.0 0 192.168.1.6
R3:
[R3]int lo0
[R3-LoopBack0]ip add 192.168.1.97 28
[R3-LoopBack0]int lo1
[R3-LoopBack1]ip add 192.168.1.113 28
[R3-LoopBack1]int g0/0/1
[R3-GigabitEthernet0/0/1]ip add 192.168.1.6 30
[R3-GigabitEthernet0/0/1]int g0/0/0
[R3-GigabitEthernet0/0/0]ip add 192.168.1.14 30
[R3-GigabitEthernet0/0/0]int g0/0/2
[R3-GigabitEthernet0/0/2]ip add 192.168.1.17 30
[R3-GigabitEthernet0/0/2]int g4/0/0
[R3-GigabitEthernet4/0/0]ip add 192.168.1.21 30
[R3]ip route-static 192.168.1.64 27 192.168.1.5
[R3]ip route-static 192.168.1.0 30 192.168.1.5
[R3]ip route-static 192.168.1.8 30 192.168.1.13
[R3]ip route-static 192.168.1.128 27 192.168.1.13
[R3]ip route-static 192.168.1.32 27 192.168.1.5
[R3]ip route-static 192.168.1.32 27 192.168.1.13
[R3]ip route-static 0.0.0.0 0 192.168.1.18
R4:
[R4]int lo0
[R4-LoopBack0]ip add 192.168.1.129 28
[R4-LoopBack0]int lo1
[R4-LoopBack1]ip add 192.168.1.145 28
[R4]int g0/0/0
[R4-GigabitEthernet0/0/0]ip add 192.168.1.13 30
[R4-GigabitEthernet0/0/0]int g0/0/1
[[R4-GigabitEthernet0/0/1]ip add 192.168.1.10 30
[R4-GigabitEthernet0/0/1]
[R4]ip route-static 192.168.1.32 27 192.168.1.9
[R4]ip route-static 192.168.1.0 30 192.168.1.9
[R4]ip route-static 192.168.1.4 30 192.168.1.14
[R4]ip route-static 192.168.1.96 27 192.168.1.14
[R4]ip route-static 192.168.1.64 27 192.168.1.9
[R4]ip route-static 192.168.1.64 27 192.168.1.14
[R4]ip route-static 0.0.0.0 0 192.168.1.14
R5:
[R5]int lo0
[R5-LoopBack0]ip add 5.5.5.5 24
[R5-LoopBack0]int g0/0/0
[R5-GigabitEthernet0/0/0]ip add 192.168.1.18 30
[R5-GigabitEthernet0/0/0]int g0/0/1
[R5-GigabitEthernet0/0/1]ip add 192.168.1.22 30
[R5-GigabitEthernet0/0/1]
[R5]ip route-static 192.168.1.96 27 192.168.1.17
[R5]ip route-static 192.168.1.64 27 192.168.1.17
[R5]ip route-static 192.168.1.32 27 192.168.1.17
[R5]ip route-static 192.168.1.128 27 192.168.1.17
[R5]ip route-static 192.168.1.0 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.8 30 192.168.1.17
[R5]ip route-static 192.168.1.12 30 192.168.1.17
[R5]ip route-static 192.168.1.0 255.255.255.252 192.168.1.21 pr 61
[R5]ip route-static 192.168.1.4 255.255.255.252 192.168.1.21 pr 61
[R5]ip route-static 192.168.1.8 255.255.255.252 192.168.1.21 pr 61
[R5]ip route-static 192.168.1.12 255.255.255.252 192.168.1.21 pr 61
[R5]ip route-static 192.168.1.32 255.255.255.224 192.168.1.21 pr 61
[R5]ip route-static 192.168.1.64 255.255.255.224 192.168.1.21 pr 61
[R5]ip route-static 192.168.1.96 255.255.255.224 192.168.1.21 pr 61
[R5]ip route-static 192.168.1.128 255.255.255.224 192.168.1.21 pr 61
检测: