静态路由+DHCP实验(四路由器八PC)

一.200.1.1.0/24子网划分

1.划分八个子网

2.选用前5个,第五个子网再划分4个子网作为骨干

二.规划路由

三.配置(下一跳)

1.先依次实现四个路由器之间全网可通

2.为路由器配置地址池,使用全局模式获取dhcp,指定网关和dns

3.PC测试


 

一.200.1.1.0/24子网划分

1.划分八个子网

200.1.1.0/27

200.1.1.32/27

200.1.1.64/27

200.1.1.96/27

200.1.1.128/27

200.1.1.160/27

200.1.1.192/27

200.1.1..224/27

2.选用前5个,第五个子网再划分4个子网作为骨干

200.1.1.128/29

200.1.1.136/29

200.1.1.144/29

200.1.1.152/29

二.规划路由

AR1:

到达200.1.1.0/27一条

到达200.1.1.64/27一条

到达200.1.1.96/27两条

到达200.1.1.144/29一条

到达200.1.1.152/29一条

AR2:

到达200.1.1.0/27两条

到达200.1.1.32/27一条

到达200.1.1.96/27一条

到达200.1.1.128/29一条

到达200.1.1.152/29一条

AR3:

到达200.1.1.32/27两条

到达200.1.1.64/27一条

到达200.1.1.0/27一条

到达200.1.1.128/29一条

到达200.1.1.136/29一条

AR4:

到达200.1.1.64/27两条

到达200.1.1.32/27一条

到达200.1.1.64/27一条

到达200.1.1.136/29一条

到达200.1.1.144/29一条

三.配置(下一跳)

1.先依次实现四个路由器之间全网可通

[Huawei]ip route-static 200.1.1.136 29 200.1.1.130
#根据规划路由依次写静态路由实现通信

AR1:

[r1]display ip routing-table protocol static
Route Flags: R - relay, D - download to fib
------------------------------------------------------------------------------
Public routing table : Static
         Destinations : 5        Routes : 6        Configured Routes : 6

Static routing table status : <Active>
         Destinations : 5        Routes : 6

Destination/Mask    Proto   Pre  Cost      Flags NextHop         Interface

      200.1.1.0/27  Static  60   0          RD   200.1.1.129     GigabitEthernet
0/0/1
     200.1.1.64/27  Static  60   0          RD   200.1.1.138     GigabitEthernet
0/0/0
     200.1.1.96/27  Static  60   0          RD   200.1.1.129     GigabitEthernet
0/0/1
                    Static  60   0          RD   200.1.1.138     GigabitEthernet
0/0/0
    200.1.1.144/29  Static  60   0          RD   200.1.1.138     GigabitEthernet
0/0/0
    200.1.1.152/29  Static  60   0          RD   200.1.1.129     GigabitEthernet
0/0/1

Static routing table status : <Inactive>
         Destinations : 0        Routes : 0

AR2:

[r2]display ip routing-table protocol static 
Route Flags: R - relay, D - download to fib
------------------------------------------------------------------------------
Public routing table : Static
         Destinations : 5        Routes : 6        Configured Routes : 6

Static routing table status : <Active>
         Destinations : 5        Routes : 6

Destination/Mask    Proto   Pre  Cost      Flags NextHop         Interface

      200.1.1.0/27  Static  60   0          RD   200.1.1.146     GigabitEthernet
0/0/0
                    Static  60   0          RD   200.1.1.137     GigabitEthernet
0/0/1
     200.1.1.32/27  Static  60   0          RD   200.1.1.137     GigabitEthernet
0/0/1
     200.1.1.96/27  Static  60   0          RD   200.1.1.146     GigabitEthernet
0/0/0
    200.1.1.128/29  Static  60   0          RD   200.1.1.137     GigabitEthernet
0/0/1
    200.1.1.152/29  Static  60   0          RD   200.1.1.146     GigabitEthernet
0/0/0

Static routing table status : <Inactive>
         Destinations : 0        Routes : 0

AR3:

[r3]display ip routing-table protocol static 
Route Flags: R - relay, D - download to fib
------------------------------------------------------------------------------
Public routing table : Static
         Destinations : 5        Routes : 6        Configured Routes : 6

Static routing table status : <Active>
         Destinations : 5        Routes : 6

Destination/Mask    Proto   Pre  Cost      Flags NextHop         Interface

      200.1.1.0/27  Static  60   0          RD   200.1.1.154     GigabitEthernet
0/0/0
     200.1.1.32/27  Static  60   0          RD   200.1.1.154     GigabitEthernet
0/0/0
                    Static  60   0          RD   200.1.1.145     GigabitEthernet
0/0/1
     200.1.1.64/27  Static  60   0          RD   200.1.1.145     GigabitEthernet
0/0/1
    200.1.1.128/29  Static  60   0          RD   200.1.1.154     GigabitEthernet
0/0/0
    200.1.1.136/29  Static  60   0          RD   200.1.1.145     GigabitEthernet
0/0/1

Static routing table status : <Inactive>
         Destinations : 0        Routes : 0

AR4:

[r4]display ip routing-table protocol static 
Route Flags: R - relay, D - download to fib
------------------------------------------------------------------------------
Public routing table : Static
         Destinations : 5        Routes : 6        Configured Routes : 6

Static routing table status : <Active>
         Destinations : 5        Routes : 6

Destination/Mask    Proto   Pre  Cost      Flags NextHop         Interface

     200.1.1.32/27  Static  60   0          RD   200.1.1.130     GigabitEthernet
0/0/0
     200.1.1.64/27  Static  60   0          RD   200.1.1.130     GigabitEthernet
0/0/0
                    Static  60   0          RD   200.1.1.153     GigabitEthernet
0/0/1
     200.1.1.96/27  Static  60   0          RD   200.1.1.153     GigabitEthernet
0/0/1
    200.1.1.136/29  Static  60   0          RD   200.1.1.130     GigabitEthernet
0/0/0
    200.1.1.144/29  Static  60   0          RD   200.1.1.153     GigabitEthernet
0/0/1

Static routing table status : <Inactive>
         Destinations : 0        Routes : 0

2.为路由器配置地址池,使用全局模式获取dhcp,指定网关和dns

[r1]dhcp enable 
[r1]ip pool s1
[r1-ip-pool-s1]network 200.1.1.32 mask 27 
[r1-ip-pool-s1]dns-list 114.114.114.114 8.8.8.8
[r1-ip-pool-s1]gateway-list 200.1.1.33
[r1]interface GigabitEthernet 0/0/2
[r1-GigabitEthernet0/0/2]dhcp select global 
#四个路由器同样做此配置

AR1:

[r1]ip pool s1
[r1-ip-pool-s1]display this 
[V200R003C00]
#
ip pool s1
 gateway-list 200.1.1.33 
 network 200.1.1.32 mask 255.255.255.224 
 dns-list 114.114.114.114 8.8.8.8 
#
return

AR2:

[r2]ip pool S2
[r2-ip-pool-s2]display this 
[V200R003C00]
#
ip pool s2
 gateway-list 200.1.1.65 
 network 200.1.1.64 mask 255.255.255.224 
 dns-list 114.114.114.114 8.8.8.8 
#
return

AR3:

[r3]ip pool s3
[r3-ip-pool-s3]display this 
[V200R003C00]
#
ip pool s3
 gateway-list 200.1.1.97 
 network 200.1.1.96 mask 255.255.255.224 
 dns-list 114.114.114.114 8.8.8.8 
#
return

AR4:

[r4]ip pool s4
[r4-ip-pool-s4]dis	
[r4-ip-pool-s4]display th	
[r4-ip-pool-s4]display this 
[V200R003C00]
#
ip pool s4
 gateway-list 200.1.1.1 
 network 200.1.1.0 mask 255.255.255.224 
 dns-list 114.114.114.114 8.8.8.8 
#
return

3.PC测试

PC>ipconfig             #PC8

Link local IPv6 address...........: fe80::5689:98ff:fe61:7b69
IPv6 address......................: :: / 128
IPv6 gateway......................: ::
IPv4 address......................: 200.1.1.29
Subnet mask.......................: 255.255.255.224
Gateway...........................: 200.1.1.1
Physical address..................: 54-89-98-61-7B-69
DNS server........................: 114.114.114.114
                                    8.8.8.8

PC>ping 200.1.1.62

Ping 200.1.1.62: 32 data bytes, Press Ctrl_C to break
Request timeout!
Request timeout!
From 200.1.1.62: bytes=32 seq=3 ttl=126 time=78 ms
From 200.1.1.62: bytes=32 seq=4 ttl=126 time=78 ms
From 200.1.1.62: bytes=32 seq=5 ttl=126 time=94 ms

--- 200.1.1.62 ping statistics ---
  5 packet(s) transmitted
  3 packet(s) received
  40.00% packet loss
  round-trip min/avg/max = 0/83/94 ms

PC>ping 200.1.1.61

Ping 200.1.1.61: 32 data bytes, Press Ctrl_C to break
Request timeout!
From 200.1.1.61: bytes=32 seq=2 ttl=126 time=62 ms
From 200.1.1.61: bytes=32 seq=3 ttl=126 time=79 ms
From 200.1.1.61: bytes=32 seq=4 ttl=126 time=93 ms
From 200.1.1.61: bytes=32 seq=5 ttl=126 time=78 ms

--- 200.1.1.61 ping statistics ---
  5 packet(s) transmitted
  4 packet(s) received
  20.00% packet loss
  round-trip min/avg/max = 0/78/93 ms

PC>ping 200.1.1.94

Ping 200.1.1.94: 32 data bytes, Press Ctrl_C to break
Request timeout!
Request timeout!
Request timeout!
Request timeout!
From 200.1.1.94: bytes=32 seq=5 ttl=125 time=78 ms

--- 200.1.1.94 ping statistics ---
  5 packet(s) transmitted
  1 packet(s) received
  80.00% packet loss
  round-trip min/avg/max = 0/78/78 ms

PC>ping 200.1.1.93

Ping 200.1.1.93: 32 data bytes, Press Ctrl_C to break
Request timeout!
From 200.1.1.93: bytes=32 seq=2 ttl=125 time=94 ms
From 200.1.1.93: bytes=32 seq=3 ttl=125 time=46 ms
From 200.1.1.93: bytes=32 seq=4 ttl=125 time=79 ms
From 200.1.1.93: bytes=32 seq=5 ttl=125 time=78 ms

--- 200.1.1.93 ping statistics ---
  5 packet(s) transmitted
  4 packet(s) received
  20.00% packet loss
  round-trip min/avg/max = 0/74/94 ms

PC>ping 200.1.1.125

Ping 200.1.1.125: 32 data bytes, Press Ctrl_C to break
Request timeout!
From 200.1.1.125: bytes=32 seq=2 ttl=126 time=78 ms
From 200.1.1.125: bytes=32 seq=3 ttl=126 time=78 ms
From 200.1.1.125: bytes=32 seq=4 ttl=126 time=47 ms
From 200.1.1.125: bytes=32 seq=5 ttl=126 time=62 ms

--- 200.1.1.125 ping statistics ---
  5 packet(s) transmitted
  4 packet(s) received
  20.00% packet loss
  round-trip min/avg/max = 0/66/78 ms

PC>ping 200.1.1.126

Ping 200.1.1.126: 32 data bytes, Press Ctrl_C to break
Request timeout!
From 200.1.1.126: bytes=32 seq=2 ttl=126 time=62 ms
From 200.1.1.126: bytes=32 seq=3 ttl=126 time=78 ms
From 200.1.1.126: bytes=32 seq=4 ttl=126 time=63 ms
From 200.1.1.126: bytes=32 seq=5 ttl=126 time=62 ms

--- 200.1.1.126 ping statistics ---
  5 packet(s) transmitted
  4 packet(s) received
  20.00% packet loss
  round-trip min/avg/max = 0/66/78 ms

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.mfbz.cn/a/4136.html

如若内容造成侵权/违法违规/事实不符,请联系我们进行投诉反馈qq邮箱809451989@qq.com,一经查实,立即删除!

相关文章

Springboot是什么

目录 为什么会要用springboot 1、之前 2、现在 springboot优点 springboot四大核心 自动装配介绍 1、自动装配作用是什么 2、自动装配原理 springboot starter是什么 1、starter作用 2、比如&#xff1a;我们想搭建java web框架 3、starter原理 SpringBootApplica…

Endor Labs:2023年十大开源安全风险

近日&#xff0c;Endor Labs发布了一份新报告&#xff0c;确定了2023年的十大开源安全风险。报告显示&#xff0c;许多软件公司依赖于开源软件代码&#xff0c;但在如何衡量和处理与开源软件相关的风险和漏洞方面缺乏一致性。调查发现&#xff0c;在应用程序中超过80%的代码可能…

Go 结构体

目录 什么是结构体 定义结构体 基本的方式实例化结构体 访问结构体的成员变量 指针类型的方式实例化结构体 取结构体地址的方式实例化 知识扩展&#xff1a;*号 和 &号 构造函数 成员函数&#xff08;成员方法&#xff09; 匿名成员变量 方法传入指针类型的结构…

Mac M1通过VMWare Fusion安装Centos7记录(镜像和网络有大坑)

以前用linux系统基本都在我的服务器上或者是在win上进行&#xff0c;从没有在M1上进行创建&#xff0c;因此走了一些坑吧&#xff0c;这里会列出我的详细安装步骤。 下载镜像 镜像的下载网站&#xff1a;https://www.centos.org/download/ 在该网站中&#xff0c;不管是Every…

多级评论单表结构设计

这里的多级&#xff0c;本质上其实也就二级&#xff0c;例如微博的评论&#xff0c; 一级评论&#xff1a; 对微博的评论 二级评论&#xff1a; 对微博下的评论的回复评论 &#xff0c;这里包括二种 1. 回复的是一级评论&#xff0c; 2, 回复的是二级评论 效果如下 表数据 查…

基于微信小程序的图书馆选座系统源码

开发环境及工具&#xff1a; 大等于jdk1.8&#xff0c;大于mysql5.5&#xff0c;idea&#xff08;eclipse&#xff09;&#xff0c;微信开发者工具 技术说明&#xff1a; springboot mybatis 小程序 代码注释齐全&#xff0c;没有多余代码&#xff0c;适合学习&#xff08;…

Android Studio模拟器运行无反应

当Android Studio模拟器点击运行无反应 报以下错误&#xff1a; Emulator: PANIC: Cannot find AVD system path. Please define ANDROID_SDK_ROOT 问题分析 大多是由于默认路径带有中文&#xff0c;所以找不到 解决方法 1&#xff0c;删除镜像 2&#xff0c;配置环境变量 …

Unity强化学习之ML-Agents的使用

Github下载链接&#xff1a;https://github.com/Unity-Technologies/ml-agents ML-Agents是游戏引擎Unity3D中的一个插件&#xff0c;也就是说&#xff0c;这个软件的主业是用来开发游戏的&#xff0c;实际上&#xff0c;它也是市面上用得最多的游戏引擎之一。而在几年前随着人…

Maven配置—idea版

在java开发中&#xff0c;maven是个不可或缺的工具&#xff0c;可以简单理解成maven是个仓库&#xff0c;可以远程下载各种需要的插件&#xff0c;而且对于项目的打包编译等也非常简单&#xff1b;下面来说说如何配置maven 1. 首先下载maven的工具包&#xff0c;解压之后放在D…

OCR之论文笔记TrOCR

文章目录TrOCR: Transformer-based Optical Character Recognition with Pre-trained Models一. 简介二. TrOCR2.1. Encoder2.2 Decoder2.3 Model Initialiaztion2.4 Task Pipeline2.5 Pre-training2.6 Fine-tuning2.7 Data Augmentation三. 实验3.1 Data3.2 Settings3.2 Resul…

测试用例设计指南

作者&#xff1a;京东物流 王玉坤 软件测试设计是测试过程中重要的测试活动&#xff0c;怎么样设计测试用例能提高我们测试的效率和质量&#xff0c;从以下几个方面做了简单的讲解。 1 测试用例设计原则 测试用例设计的基本原则包括&#xff1a;有效性、清晰性、可复用性、可维…

Linux 0.11

调试介绍 Linux 0.11-调试 Linux 最早期的代码-36 启动跟踪 BIOS 加载 电脑启动&#xff0c;CPU指向0xFFFFFFF0处&#xff0c;这里正好是系统ROM BIOS存放的地址。即开始执行BIOS指令。为了保持向下兼容&#xff0c;就会把与原PC兼容的BIOS代码和数据复制到低端1M末端的64K…

0基础实现微信推送天气,生日等(女朋友快乐眼)

最近微信小程序推送的功能很火&#xff0c;我也是去看了很多攻略&#xff0c;最后选了一个0基础的版本&#xff0c;最后也是实现了推送功能&#xff0c;如图 如何实现&#xff1f; 首先&#xff0c;打开微信官方提供的一个接口生成网址&#xff0c;微信扫码登录&#xff0c;然…

数据挖掘(作业汇总)

目录 环境配置 实验1 数据 作业2 环境配置 实验开始前先配置环境 以实验室2023安装的版本为例&#xff1a; 1、安装anaconda&#xff1a;&#xff08;anaconda自带Python,安装了anaconda就不用再安装Python了&#xff09; 下载并安装 Anaconda3-2022.10-Windows-x86_64.ex…

剑指offer JZ77 按之字形顺序打印二叉树

Java JZ77 按之字形顺序打印二叉树 文章目录Java JZ77 按之字形顺序打印二叉树一、题目描述二、双栈法三、队列reverse()法使用双栈法和队列reverse()法解决剑指offer JZ77 按之字形顺序打印二叉树的问题。 一、题目描述 给定一个二叉树&#xff0c;返回该二叉树的之字形层序遍…

【pytorch】深度学习模型调参策略(五):采用贝叶斯工具进行最优参数搜索及最佳步数确认

目录1.如何决定是否应用某个新的超参数配置2.参数优化工具optuna确定最终最优配置为什么在调整的探索阶段使用准随机搜索而不是更复杂的黑盒优化算法&#xff1f;optuna库简介pytorch实现代码搜索参数详解输出结果3.确定每次训练运行的步数使用学习率扫描选择max_train_steps初…

设置鼠标右键打开方式,添加IDEA的打开方式

一、问题描述 已下载IDEA&#xff0c;但是右键打开之前保存的项目文件&#xff0c;无法显示以IDEA方式打开。 二、解决步骤 1. 打开注册表 winR键输入regedit 2、查找路径为计算机\HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\shell &#xff08;我找了半天没看到Class…

在芯片设计行业,从项目的初期到交付,不同的岗位的工程师主要负责什么?

大家都知道在芯片设计行业&#xff0c;项目是至关重要的一环。从项目的初期到交付&#xff0c;不同的岗位的工程师在项目的各环节主要负责什么?他们是怎样配合的?下面看看资深工程师怎么说。 一个项目&#xff0c;从初期到交付的过程是比较漫长的。我们知道最早的时候&#…

deskvideosys 办公行为管理软件的部署架构

deskvideosys 办公行为管理软件服务器端使用的是 B/S 架构&#xff0c;采用 golangvue 框架来编程&#xff0c;agent 端直接使用的是 vc编程框架&#xff0c;然后通过tcp协议连接服务器端&#xff0c;所以deskvideosys架构 可以作为终端安全管理&#xff0c;上网行为管理&#…

小程序 table组件

最近有在小程序中用table的需求&#xff0c;但是没有找到有符合要求的组件&#xff0c;所以自己弄了一个&#xff0c;能满足基本需求。 组件下载:https://download.csdn.net/download/weixin_67585820/85047405 引入 "usingComponents": {"table": "…
最新文章