当前位置:网站首页>华为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已经配置好了,操作完毕,实验结束。
边栏推荐
- go defer的使用说明
- 冰河的海报封面
- 接口設計時的一些建議
- Managed service network: application architecture evolution in the cloud native Era
- js 3D爆炸碎片图片切换js特效
- Understand Alibaba cloud's secret weapon "dragon architecture" in the article "science popularization talent"
- Detailed explanation of multi-mode input event distribution mechanism
- Redis:Redis配置文件相关配置、Redis的持久化
- 五子棋 上班摸鱼工具 可局域网/人机
- 仿ps样式js网页涂鸦板插件
猜你喜欢
What if win11u disk refuses access? An effective solution to win11u disk access denial
Understand Alibaba cloud's secret weapon "dragon architecture" in the article "science popularization talent"
科普达人丨一文看懂阿里云的秘密武器“神龙架构”
哈希表、哈希函数、布隆过滤器、一致性哈希
工厂从自动化到数字孪生,图扑能干什么?
Alibaba testers use UI automated testing to achieve element positioning
What are the functional modules of RFID warehouse management system solution
Leetcode+ 81 - 85 monotone stack topic
How does wincc7.5 SP1 find variables and their positions through cross indexing?
Idea restore default shortcut key
随机推荐
LeetCode 7. 整数反转
go defer的使用说明
Implementation of redis distributed lock
字节测试工程师十年经验直击UI 自动化测试痛点
Flet tutorial 06 basic introduction to textbutton (tutorial includes source code)
阿里云国际版CDN的优势
admas零件名重复
网件r7000梅林系统虚拟内存创建失败,提示USB磁盘读写速度不满足要求解决办法,有需要创建虚拟内存吗??
UTF encoding and character set in golang
Reinforcement learning - learning notes 2 | value learning
【服务器数据恢复】某品牌服务器存储raid5数据恢复案例
What should I do if my computer sharing printer refuses access
【1200. 最小绝对差】
[Shenbo introduction] VI How to contact your favorite doctoral tutor
Hands on deep learning (III) -- convolutional neural network CNN
LeetCode+ 81 - 85 单调栈专题
LeetCode 7. Integer inversion
How does the computer save web pages to the desktop for use
HWiNFO硬件检测工具v7.26绿色版
Automatic generation of interface automatic test cases by actual operation