当前位置:网站首页>华为ensp模拟器 给路由器配置DHCP
华为ensp模拟器 给路由器配置DHCP
2022-07-04 20:11:00 【Python-派大星】
目录
DHCP作用是自动分配IP地址,子网掩码,网关。配置完DHCP后,以后再新增PC机、手机等连接网络的设备时,就会自动分配ip地址,无需手动配置
实验目标:配置DHCP,使三台PC机无需手动配置IP即可自动获取IP。
首先我们先需要一台路由器,一台交换机,三台PC机来模拟企业环境,将他们连接起来。
多台电脑连接在交换机上,交换机连接在路由器上。

连接好后鼠标左键将所有东西框中全选,启动。

我们可以看到,给路由器配置DHCP之前,我们想要pc机有IP地址只能静态配置,也就是手动一个个配置。这样在pc机数量多的时候极其麻烦,效率低,所以我们要给路由器配置DHCP,让他可以自动分配IP地址。

一、路由器配置IP地址和掩码。
首先,给路由器配置IP地址,因为路由器是专业设备,所以需要手动分配ip地址。

二、给路由器打开DHCP服务:
dhcp enable
我们可以看到,这个路由器有多个接口,现在我们要指定哪些接口可以拥有DHCP功能,使连接这些接口的机器能自动分配IP地址。

三、选择接口,使该接口拥有DHCP分配地址的功能。
我们现在其它机器连接的是路由器的GE0/0/0接口,所以我们只需要给GE0/0/0开通分配地址的功能。

1、进入接口
interface
interface 接口名
2、选择该接口拥有DHCP分配ip的功能
dhcp select interface

四、配置完路由器后我们让pc机选择dhcp自动获取地址。
双击打开pc机,选择dhcp配置ip地址,点击应用即可。

1、查看给pc机分配的ip地址
双击打开pc机,选择命令行界面,输入ipconfig即可查看到自动分配的ip地址。
ipconfig
剩余的pc也是一样的操作,选择dhcp应用即可自动分配IP地址、子网掩码、网关、和mac地址。
我们ipconfig查看一下ip。 

我们三台pc机都有ip地址了。可以尝试互相ping一下,试试是否能ping通。
2、尝试是否能ping通


发现能够相互ping通,证明我们的dhcp已经配置好了,操作完毕,实验结束。
边栏推荐
- UTF encoding and character set in golang
- Sword finger offer II 80-100 (continuous update)
- HMS Core 机器学习服务
- Alibaba testers use UI automated testing to achieve element positioning
- What if the WiFi of win11 system always drops? Solution of WiFi total drop in win11 system
- 科普达人丨一文看懂阿里云的秘密武器“神龙架构”
- go defer的使用说明
- 记录线上bug解决list(未完待续7/4)
- From automation to digital twins, what can Tupo do?
- [1200. Différence absolue minimale]
猜你喜欢

Advantages of RFID warehouse management system solution

Alibaba testers use UI automated testing to achieve element positioning

Introduction to pressure measurement of JMeter

RFID仓库管理系统解决方案有哪些功能模块

The concept and application of hash table

【1200. 最小绝对差】

搭建一个仪式感点满的网站,并内网穿透发布到公网 1/2

In the face of the same complex test task, why can the elder sort out the solution quickly? Ali's ten-year test engineers showed their skills

Day24:文件系统

Flet tutorial 04 basic introduction to filledtonalbutton (tutorial includes source code)
随机推荐
MySQL --- 数据库查询 - 聚合函数的使用、聚合查询、分组查询
6月“墨力原创作者计划”获奖名单公布!邀您共话国产数据库
LeetCode 871. Minimum refueling times
Jmeter 之压测入门
Pytorch---使用Pytorch实现LinkNet进行语义分割
What are the functional modules of RFID warehouse management system solution
Render function and virtual DOM
MySQL statement execution details
What if the win11 shared file cannot be opened? The solution of win11 shared file cannot be opened
网件r7000梅林系统5g不稳定 5g信号经常掉线解决方法
LeetCode 8. 字符串转换整数 (atoi)
How does wincc7.5 SP1 find variables and their positions through cross indexing?
嵌入式TC 测试用例
tcp为啥是三次握手和四次挥手
RFID仓库管理系统解决方案有哪些功能模块
网件r7000梅林系统虚拟内存创建失败,提示USB磁盘读写速度不满足要求解决办法,有需要创建虚拟内存吗??
基于OpenCV haarcascades的对象检测
From automation to digital twins, what can Tupo do?
Flet tutorial 07 basic introduction to popupmenubutton (tutorial includes source code)
Day24:文件系统