静态综合实验

文章目录

题目

一、分析

二、步骤

1.拓扑设计以及IP地址规划

 2、创建环回接口

3、给端口配置IP地址

4、配置缺省路由

5、配置静态路由

6、设置浮动静态

7、设置故障自动改变链路通信 

测试

总结 


题目



 (1)除R5的环回地址固定以外,整个其他所有网段基于192.168.1.0/24进行合理的P地址划分

   (2)   R1-R4每个路由器存在两个环回接口,用于模拟连接pc网段;地址也要在192.168.1.0/24这个网络范围内

   (3) R1-R4上不能直接编写到达5.5.5.0/24的静态路由,但依然可以访问

 (4)全网可达,尽量减少每台路由器,路由表条目数量,避免环路出现

 (5) R4与R5间,正常1000M链路通信,故障时自动改为100M


 

一、分析

R5的环回地址固定为5.5.5.1;

R1-R4每个路由器存在两个环回接口,所以总共要将192.168.1.0/24划分成14个网段;

R1-R4上不能直接编写到达5.5.5.0/24的静态路由,但依然可以访问,所以要使用缺省路由;

避免环路出现,尽量使用最短的路径;

R4与R5间,正常1000M链路通信,故障时自动改为100M,要使用浮动静态,而且优先级取值0-255,越小越好。

二、步骤

1.拓扑设计以及IP地址规划

 2、创建环回接口

先将路由器AR1改名为r1

然后创建环回接口

先将路由器AR1改名为r1
[Huawei]sysname r1
[r1]
然后创建环回接口
[r1]interface LoopBack 0	
[r1-LoopBack0]ip address 192.168.1.1 28
[r1]interface LoopBack 1
[r1-LoopBack1]ip address 192.168.1.17 28

AR2、AR3、AR4、AR5(注意:AR5只有一个环回接口)同样如上

[Huawei]sysname r2
[r2]

  Please check whether system data has been changed, and save data in time

  Configuration console time out, please press any key to log on

[r2]interface LoopBack 0
[r2-LoopBack0]ip address 192.168.1.33 28
[r2]interface LoopBack 1
[r2-LoopBack1]ip address 192.168.1.49 28

[Huawei]sysname r3
[r3]

  Please check whether system data has been changed, and save data in time

  Configuration console time out, please press any key to log on

[r3]interface LoopBack 0
[r3-LoopBack0]ip address 192.168.1.65 28
[r3]interface LoopBack 1
[r3-LoopBack1]ip address 192.168.1.81 28
[Huawei]sysname r4
[r4]

  Please check whether system data has been changed, and save data in time

  Configuration console time out, please press any key to log on


[r4]interface LoopBack 0
[r4-LoopBack0]ip address 192.168.1.97 28
[r4]interface LoopBack 1
[r4-LoopBack1]ip address 192.168.1.113 28
[r4-LoopBack1]
[r5]interface LoopBack 0
[r5-LoopBack0]ip address 5.5.5.1 24

 


3、给端口配置IP地址

AR1

[r1]interface g0/0/0
[r1-GigabitEthernet0/0/0]ip add 192.168.1.129 28
Jul 10 2022 14:41:40-08:00 r1 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP 
on the interface GigabitEthernet0/0/0 has entered the UP state. 
[r1-GigabitEthernet0/0/0]int g0/0/1
[r1-GigabitEthernet0/0/1]ip add 192.168.1.161 28
Jul 10 2022 14:42:21-08:00 r1 %%01IFNET/4/LINK_STATE(l)[1]:The line protocol IP 
on the interface GigabitEthernet0/0/1 has entered the UP state. 

AR2

[r2]interface g0/0/0
[r2-GigabitEthernet0/0/0]ip add 192.168.1.130 28
Jul 10 2022 14:49:48-08:00 r2 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP 
on the interface GigabitEthernet0/0/0 has entered the UP state. 
[r2-GigabitEthernet0/0/0]interface g0/0/1
[r2-GigabitEthernet0/0/1]ip add 192.168.1.145 28
Jul 10 2022 14:50:21-08:00 r2 %%01IFNET/4/LINK_STATE(l)[1]:The line protocol IP 
on the interface GigabitEthernet0/0/1 has entered the UP state. 

AR3

[r3]int g0/0/0
[r3-GigabitEthernet0/0/0]ip add 192.168.1.162 28
Jul 10 2022 14:51:40-08:00 r3 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP 
on the interface GigabitEthernet0/0/0 has entered the UP state. 
[r3-GigabitEthernet0/0/0]int g0/0/1
[r3-GigabitEthernet0/0/1]ip add 192.168.1.177 28
Jul 10 2022 14:53:12-08:00 r3 %%01IFNET/4/LINK_STATE(l)[1]:The line protocol IP 
on the interface GigabitEthernet0/0/1 has entered the UP state. 
[r3-GigabitEthernet0/0/1]

AR4

[r4]int g0/0/0
[r4-GigabitEthernet0/0/0]ip add 192.168.1.146 28
Jul 10 2022 14:54:46-08:00 r4 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP 
on the interface GigabitEthernet0/0/0 has entered the UP state. 
[r4-GigabitEthernet0/0/0]int g0/0/2
[r4-GigabitEthernet0/0/2]ip add 192.168.1.178 28
Jul 10 2022 14:55:11-08:00 r4 %%01IFNET/4/LINK_STATE(l)[1]:The line protocol IP 
on the interface GigabitEthernet0/0/2 has entered the UP state. 
[r4-GigabitEthernet0/0/2]int g0/0/1
[r4-GigabitEthernet0/0/1]ip add 192.168.1.193 28
Jul 10 2022 14:55:37-08:00 r4 %%01IFNET/4/LINK_STATE(l)[2]:The line protocol IP 
on the interface GigabitEthernet0/0/1 has entered the UP state. 
[r4-GigabitEthernet0/0/1]int g4/0/0
[r4-GigabitEthernet4/0/0]ip add 192.168.1.209 28
Jul 10 2022 14:56:18-08:00 r4 %%01IFNET/4/LINK_STATE(l)[3]:The line protocol IP 
on the interface GigabitEthernet4/0/0 has entered the UP state. 

   AR5

[r5]int g0/0/0
[r5-GigabitEthernet0/0/0]ip add 192.168.1.194 28
Jul 10 2022 15:05:24-08:00 r5 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP 
on the interface GigabitEthernet0/0/0 has entered the UP state. 
[r5-GigabitEthernet0/0/0]int g0/0/1
[r5-GigabitEthernet0/0/1]ip add 192.168.1.210 28
Jul 10 2022 15:05:56-08:00 r5 %%01IFNET/4/LINK_STATE(l)[1]:The line protocol IP 
on the interface GigabitEthernet0/0/1 has entered the UP state. 

4、配置缺省路由

配置到达AR5的缺省路由

AR1

[r1]ip route-static 0.0.0.0 0.0.0.0 192.168.1.130
[r1]ip route-static 0.0.0.0 0.0.0.0 192.168.1.162

AR2

[r2]ip route-static 0.0.0.0 0.0.0.0 192.168.1.146

AR3

[r3]ip route-static 0.0.0.0 0.0.0.0 192.168.1.178

AR4

[r4]ip route-static 0.0.0.0 0.0.0.0 192.168.1.194
[r4]ip route-static 0.0.0.0 0.0.0.0 192.168.1.210

5、配置静态路由

AR1

[r1]ip route-static 192.168.1.32 27 192.168.1.130
[r1]ip route-static 192.168.1.144 28 192.168.1.130
[r1]ip route-static 192.168.1.96 27 192.168.1.130
[r1]ip route-static 192.168.1.96 27 192.168.1.162
[r1]ip route-static 192.168.1.192 28 192.168.1.162
[r1]ip route-static 192.168.1.192 28 192.168.1.130
[r1]ip route-static 192.168.1.208 28 192.168.1.130
[r1]ip route-static 192.168.1.208 28 192.168.1.162
[r1]ip route-static 192.168.1.64 27 192.168.1.162
[r1]ip route-static 192.168.1.176 28 192.168.1.162

AR2

[r2]ip route-static 192.168.1.0 27 192.168.1.129
[r2]ip route-static 192.168.1.160 28 192.168.1.129
[r2]ip route-static 192.168.1.64 27 192.168.1.129
[r2]ip route-static 192.168.1.64 27 192.168.1.146
[r2]ip route-static 192.168.1.176 28 192.168.1.146
[r2]ip route-static 192.168.1.96 27 192.168.1.146
[r2]ip route-static 192.168.1.192 28 192.168.1.146
[r2]ip route-static 192.168.1.208 28 192.168.1.146

AR3

[r3]ip route-static 192.168.1.0 27 192.168.1.161
[r3]ip route-static 192.168.1.128 28 192.168.1.161
[r3]ip route-static 192.168.1.32 27 192.168.1.161
[r3]ip route-static 192.168.1.32 27 192.168.1.178
[r3]ip route-static 192.168.1.144 28 192.168.1.178
[r3]ip route-static 192.168.1.96 27 192.168.1.178
[r3]ip route-static 192.168.1.192 28 192.168.1.178
[r3]ip route-static 192.168.1.208 28 192.168.1.178

AR4

[r4]ip route-static 192.168.1.0 27 192.168.1.145
[r4]ip route-static 192.168.1.0 27 192.168.1.177
[r4]ip route-static 192.168.1.64 27 192.168.1.177
[r4]ip route-static 192.168.1.32 27 192.168.1.145
[r4]ip route-static 192.168.1.128 28 192.168.1.145
[r4]ip route-static 192.168.1.160 28 192.168.1.177

AR5

[r5]ip route-static 192.168.1.0 27 192.168.1.193
[r5]ip route-static 192.168.1.0 27 192.168.1.209
[r5]ip route-static 192.168.1.128 28 192.168.1.193
[r5]ip route-static 192.168.1.128 28 192.168.1.209
[r5]ip route-static 192.168.1.32 27 192.168.1.193
[r5]ip route-static 192.168.1.32 27 192.168.1.209
[r5]ip route-static 192.168.1.64 27 192.168.1.193
[r5]ip route-static 192.168.1.64 27 192.168.1.209
[r5]ip route-static 192.168.1.96 27 192.168.1.193
[r5]ip route-static 192.168.1.96 27 192.168.1.209
[r5]ip route-static 192.168.1.144 28 192.168.1.193
[r5]ip route-static 192.168.1.144 28 192.168.1.209
[r5]ip route-static 192.168.1.160 28 192.168.1.193
[r5]ip route-static 192.168.1.160 28 192.168.1.209
[r5]ip route-static 192.168.1.176 28 192.168.1.193
[r5]ip route-static 192.168.1.176 28 192.168.1.209

 

6、设置浮动静态

因为有两个不同的接口,所以要设置两个

[r5]ip route-static 192.168.1.96 27 192.168.1.193 preference 61
Info: Succeeded in modifying route.
[r5]ip route-static 192.168.1.96 27 192.168.1.209 preference 61
Info: Succeeded in modifying route.

 

7、设置故障自动改变链路通信 

[r5]interface g0/0/0	
[r5-GigabitEthernet0/0/0]shutdown 
Jul 10 2022 15:59:32-08:00 r5 %%01IFPDT/4/IF_STATE(l)[0]:Interface GigabitEthern
et0/0/0 has turned into DOWN state.
[r5-GigabitEthernet0/0/0]
Jul 10 2022 15:59:32-08:00 r5 %%01IFNET/4/LINK_STATE(l)[1]:The line protocol IP 
on the interface GigabitEthernet0/0/0 has entered the DOWN state. 
删除浮动静态
[r5-GigabitEthernet0/0/0]undo shutdown
[r5-GigabitEthernet0/0/0]
Jul 10 2022 16:00:23-08:00 r5 %%01IFPDT/4/IF_STATE(l)[2]:Interface GigabitEthern
et0/0/0 has turned into UP state.
[r5-GigabitEthernet0/0/0]
Jul 10 2022 16:00:23-08:00 r5 %%01IFNET/4/LINK_STATE(l)[3]:The line protocol IP 
on the interface GigabitEthernet0/0/0 has entered the UP state. 


测试

用AR1-AR4pingAR5

 

 

用 AR5pingAR2

 用AR1pingAR3

总结 

实验全部完成,测试过全网可达,就是截图太多没有全部放上来。

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值