<>一、实验要求

<>二、实验分析+拓扑图

第一步就要子网划分,可以直接借4位 但是这样做法还是欠缺一点,不便于后期管理,IP地址浪费。
可以对每一个网段给他分一个 ,然后每个路由器的环回 再给他用分配的IP进行划分.
骨干链路每个都需要俩个IP;网络位延长到31位的话,这样网段里面没有可用IP;所有
最多延长到30位,这样排除俩个不可用IP,还剩俩个其可用IP,没有造成浪费。

<>三、IP地址规划
192.168.1.00000000/24 192.168.1.000 00000 /27 ----- 骨干链路 192.168.1.000 000 00
/30 ----192.168.1.0/30 192.168.1.000 001 00 /30 ----- 192.168.1.4/30 192.168
.1.000 010 00 /30 -----192.168.1.8/30 192.168.1.000 011 00 /30 ----- 192.168
.1.12/30192.168.1.000 100 00 /30 ---- 192.168.1.16/30 192.168.1.000 101 00 /30
-----192.168.1.20/30 192.168.1.000 110 00 /30 192.168.1.000 111 00 /30 192.168
.1.001 00000 /27 ---- R1192.168.1.32/27 192.168.1.001 0 0000 /28 --- 192.168
.1.32/28192.168.1.001 1 0000 /28 --- 192.168.1.48/28 192.168.1.010 00000 /27
---- R2192.168.1.64/27 192.168.1.010 0 0000 /28 ---- 192.168.1.64/28 192.168
.1.0101 0000 /28 ---- 192.168.1.80/28 192.168.1.011 00000 /27 ---- R3 192.168
.1.96/27192.168.1.011 0 0000 /28 ---- 192.168.1.96/28 192.168.1.011 1 0000 /28
----192.168.1.112/28 192.168.1.100 00000 /27 ---- R4 192.168.1.128/27 192.168
.1.1000 0000 /28 ---- 192.168.1.128/28 192.168.1.100 1 0000 /28 ---- 192.168
.1.144/28192.168.1.101 00000 /27 192.168.1.110 00000 /27 192.168.1.111 00000 /27
<>四、配置信息

1.IP配置信息
R1:
[r1]int g 0/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.5
30 [r1-GigabitEthernet0/0/1]int l 0 [r1-LoopBack0]ip add 192.168.1.33 28 [
r1-LoopBack0]int l 1 [r1-LoopBack1]ip add 192.168.1.49 28

R2:
[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.9
30 [r2-GigabitEthernet0/0/1]int l 0 [r2-LoopBack0]ip add 192.168.1.65 28 [
r2-LoopBack0]int l 1 [r2-LoopBack1]ip add 192.168.1.81 28

R3:
[r3]int g0/0/0 [r3-GigabitEthernet0/0/0]ip add 192.168.1.6 30 [
r3-GigabitEthernet0/0/0]int g 0/0/1 [r3-GigabitEthernet0/0/1]ip add 192.168.1.13
30 [r3-GigabitEthernet0/0/1]int l 0 [r3-LoopBack0]ip add 192.168.1.97 28 [
r3-LoopBack0]int l 1 [r3-LoopBack1]ip add 192.168.1.113 28

R4:
[r4]int g0/0/0 [r4-GigabitEthernet0/0/0]ip add 192.168.1.14 30 [
r4-GigabitEthernet0/0/0]int g 0/0/1 [r4-GigabitEthernet0/0/1]ip add 192.168.1.10
30 [r4-GigabitEthernet0/0/1]int l 0 [r4-LoopBack0]ip add 192.168.1.129 28 [
r4-LoopBack0]int l 1 [r4-LoopBack1]ip add 192.168.1.145 28 [r4]int g 0/0/2 [
r4-GigabitEthernet0/0/2]ip add 192.168.1.17 30 [r4-GigabitEthernet0/0/2]int
g4/0/0[r4-GigabitEthernet4/0/0]ip add 192.168.1.21 30
R5:
[r5]interface LoopBack 0 [r5-LoopBack0]ip add 5.5.5.5 24 [r5-LoopBack0]int g 0
/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

2.路由信息
R1:
[r1]ip route-static 192.168.1.64 27 192.168.1.2 [r1]ip route-static 192.168.1.8
30 192.168.1.2 [r1]ip route-static 192.168.1.128 27 192.168.1.2 [r1]ip
route-static192.168.1.128 27 192.168.1.6 [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.6 [r1]ip route-static
192.168.1.12 30 192.168.1.6 [r1]ip route-static 192.168.1.96 27 192.168.1.6 [r1]
ip route-static0.0.0.0 0 192.168.1.2 [r1]ip route-static 0.0.0.0 0 192.168.1.6

R2:
[r2]ip route-static 192.168.1.128 27 192.168.1.10 [r2]ip route-static 192.168
.1.1630 192.168.1.10 [r2]ip route-static 192.168.1.12 30 192.168.1.10 [r2]ip
route-static192.168.1.96 27 192.168.1.10 [r2]ip route-static 192.168.1.96 27
192.168.1.1 [r2]ip route-static 192.168.1.4 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.10

R3:
[r3]ip route-static 192.168.1.32 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.64 27 192.168.1.5 [r3]ip
route-static192.168.1.64 27 192.168.1.14 [r3]ip route-static 192.168.1.8 30
192.168.1.14 [r3]ip route-static 192.168.1.128 27 192.168.1.14 [r3]ip
route-static192.168.1.16 30 192.168.1.14 [r3]ip route-static 0.0.0.0 0 192.168
.1.14

R4:
[r4]ip route-static 192.168.1.96 27 192.168.1.13 [r4]ip route-static 192.168
.1.430 192.168.1.13 [r4]ip route-static 192.168.1.32 27 192.168.1.13 [r4]ip
route-static192.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.64 27 192.168.1.9 [r4]ip route 0.0.0.0
0 192.168.1.18 [r4]ip route-static 0.0.0.0 0 192.168.1.18

R5:
[r5]ip route-static 192.168.1.32 27 192.168.1.17 [r5]ip route-static 192.168
.1.030 192.168.1.17 [r5]ip route-static 192.168.1.64 27 192.168.1.17 [r5]ip
route-static192.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 [r5]ip
route-static192.168.1.128 27 192.168.1.17 [r5]ip route-static 192.168.1.96 27
192.168.1.17

R1:
[r1]ip route-static 192.168.1.32 27 nu 0 [r1]ip route-static 192.168.1.20 30
192.168.1.6 [r1]ip route-static 192.168.1.20 30 192.168.1.2
R2:
[r2]ip route-static 192.168.1.64 27 nu 0 [r2]ip route-static 192.168.1.20 30
192.168.1.10
R3:
[r3]ip route-static 192.168.1.96 27 nu 0 [r3]ip route-static 192.168.1.20 30
192.168.1.14
R4:
[r4]ip route-static 192.168.1.128 27 NULL 0 [r4]ip route-static 0.0.0.0 0
192.168.1.22 preference 61
R5:
浮动静态路由:
ip route-static 192.168.1.0 255.255.255.252 192.168.1.21 pre 61 ip route-static
192.168.1.4 255.255.255.252 192.168.1.21 pre 61 ip route-static 192.168.1.8
255.255.255.252 192.168.1.21 pre 61 ip route-static 192.168.1.12 255.255.255.252
192.168.1.21 pre 61 ip route-static 192.168.1.32 255.255.255.224 192.168.1.21
pre61 ip route-static 192.168.1.64 255.255.255.224 192.168.1.21 pre 61 ip
route-static192.168.1.96 255.255.255.224 192.168.1.21 pre 61 ip route-static
192.168.1.128 255.255.255.224 192.168.1.21 pre 61

<>五、测试

此时测试可以全网可达!!!

关闭0/0/2接口,测试100M的连通性:

测试走上1000M发现ping不通 ,但是可以ping5.5.5.5 和1.20 网段;所以100M连通性良好。

技术
今日推荐
下载桌面版
GitHub
百度网盘(提取码:draw)
Gitee
云服务器优惠
阿里云优惠券
腾讯云优惠券
华为云优惠券
站点信息
问题反馈
邮箱:[email protected]
QQ群:766591547
关注微信