静态路由综合实验

实验报告(静态路由综合实验)

1.拓扑图

在这里插入图片描述

2.需求分析

首先要对192.168.1.0/24进行划分,分为主干链路,DHCP, AR1~AR5的环回,然后再根据需求进行划分,之后再进行IP地址的设置。接着,运用DHCP(全局)为pc分配地址,接着,进行静态路由的配置,最后设置空接口,防止环路产生。最后测试

在这里插入图片描述

3.步骤

AR1


[Huawei]int g 0/0/0
[Huawei-GigabitEthernet0/0/0]ip address 192.168.1.1 30
[Huawei]int g 0/0/1
[Huawei-GigabitEthernet0/0/1]ip address 192.168.1.5 30
[Huawei]int l 0
[Huawei-LoopBack0]ip address 192.168.1.33 28
[Huawei]int l 1
[Huawei-LoopBack1]ip address 192.168.1.49 28
[Huawei-LoopBack1]q
[Huawei]ip route-static 192.168.1.64 27
[Huawei]ip route-static 192.168.1.96 27 192.168.1.6
[Huawei]ip route-static 192.168.1.8 30 192.168.1.2
[Huawei]ip route-static 192.168.1.12 30 192.168.1.6
[Huawei]ip route-static 0.0.0.0 0 192.168.1.2
[Huawei]ip route-static 0.0.0.0 0 192.168.1.6
[Huawei]undo ip route-static 192.0.0.0 192.0.0.0 192.168.1.2
[Huawei]ip route-static 192.168.1.32 27 NULL 0

AR2

[Huawei]int g 0/0/0
[Huawei-GigabitEthernet0/0/0]ip address 192.168.1.2 30
[Huawei]int g 0/0/1
[Huawei-GigabitEthernet0/0/1]ip address 192.168.1.9 30
[Huawei]int l 0
[Huawei-LoopBack0]ip address 192.168.1.65 28
[Huawei]int l 1
[Huawei-LoopBack1]ip address 192.168.1.81 28
[Huawei-LoopBack1]q
[Huawei]ip route-static 192.168.1.32 27 192.168.1.1
[Huawei]ip route-static 192.168.1.4 30 192.168.1.1
[Huawei]ip route-static 192.168.1.96 27 192.168.1.1
[Huawei]ip route-static 192.168.1.96 27 192.168.1.10
[Huawei]ip route-static 0.0.0.0 0 192.168.1.1
[Huawei]ip route-static 192.168.1.64 27 NULL 0

AR3

[Huawei]int g 0/0/0
[Huawei-GigabitEthernet0/0/0]ip address 192.168.1.6 30
[Huawei]int g 0/0/1
[Huawei-GigabitEthernet0/0/1]ip address 192.168.1.13 30
[Huawei-GigabitEthernet0/0/1]int l 0
[Huawei-LoopBack0]ip address 192.168.1.97 28
[Huawei]int l 1
[Huawei-LoopBack1]ip address 192.168.1.113 28
[Huawei]ip route-static 192.168.1.32 27 192.168.1.5
[Huawei]ip route-static 192.168.1.0 30 192.168.1.5
[Huawei]ip route-static 192.168.1.64 27 192.168.1.5
[Huawei]ip route-static 192.168.1.64 27 192.168.1.14
[Huawei]ip route-static 0.0.0.0 0 192.168.1.14
[Huawei]ip route-static 192.168.1.96 27 NULL 0

AR4

[Huawei]int g 0/0/0
[Huawei-GigabitEthernet0/0/0]ip address 192.168.1.10 30
[Huawei]int g 0/0/1
[Huawei-GigabitEthernet0/0/1]ip address 192.168.1.14 30
[Huawei]int g 0/0/2
[Huawei-GigabitEthernet0/0/2]ip address 192.168.1.17 30
[Huawei]int g 4/0/0
[Huawei-GigabitEthernet4/0/0]ip address 192.168.1.21 30
[Huawei]int l 0
[Huawei-LoopBack0]ip address 192.168.1.129 28
[Huawei]int l 1
[Huawei-LoopBack1]ip address 192.168.1.145 28
[Huawei]ip route-static 192.168.1.32 27 192.168.1.9
[Huawei]ip route-static 192.168.1.32 27 192.168.1.13
[Huawei]ip route-static 192.168.1.0 30 192.168.1.9
[Huawei]ip route-static 192.168.1.4 30 192.168.1.13
[Huawei]ip route-static 192.168.1.64 27 192.168.1.9
[Huawei]ip route-static 192.168.1.96 27 192.168.1.13
[Huawei]ip route-static 0.0.0.0 0 192.168.1.18
[Huawei]ip route-static 0.0.0.0 0 192.168.1.22 preference 61
[Huawei]ip route-static 192.168.1.128 27 NULL 0

AR5

Interface                         IP Address/Mask      Physical   Protocol  
GigabitEthernet0/0/0              192.168.1.18/30      up         up        
GigabitEthernet0/0/1              192.168.1.22/30      up         up        
GigabitEthernet0/0/2              192.168.1.193/27     up         up        
LoopBack0                         192.168.1.161/28     up         up(s)     
LoopBack1                         192.168.1.177/28     up         up(s)     
NULL0                             unassigned           up         up(s)     

[Huawei]ip route-static 192.168.1.0 24 192.168.1.17	
[Huawei]ip route-static 192.168.1.0 24 192.168.1.21 preference 61
[Huawei]dhcp enable
Info: The operation may take a few seconds. Please wait for a moment.done.
[Huawei]ip pool dizhichi
Info: It's successful to create an IP address pool.
[Huawei-ip-pool-dizhichi]network 192.168.1.192 mask 27
[Huawei-ip-pool-dizhichi]gateway-list 192.168.1.193
[Huawei-ip-pool-dizhichi]dns-list 114.114.114.114
[Huawei-ip-pool-dizhichi]q
[Huawei]int g 0/0/2
[Huawei-GigabitEthernet0/0/2]dhcp select global
[Huawei-GigabitEthernet0/0/2]q
[Huawei]ip route-static 192.168.1.24 29 NULL 0
[Huawei]ip route-static 192.168.1.224 27 NULL 0
[Huawei]ip route-static 192.168.1.160 27 NULL 0

4.测试

在这里插入图片描述
在这里插入图片描述

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值