当前位置:网站首页>DHCP实验思路
DHCP实验思路
2022-07-26 22:44:00 【奇怪的蘑菇】
- 1.DHCP服务的完成需要Centos虚拟机作为DHCP服务器;配置subnetDHCP地址池来完成1.0网段2.0网段和100.0网段的DHCP分配

- 2.首先,我们需要Cloud来完成ensp和虚拟机的通讯

- 配置Cloud:我们通过UDP协议来完成DHCP的动态分配所以需要创建两个端口,一个是vmnet1和centos处于同一张显卡用于通讯,一个是udp用来接收udp的包
- 3.进入centos配置dhcp服务
- yum完成之后将模板文件复制到dhcpd.conf中,然后匹配中subnet网段范围池

- 其中rang是地址池
- option routers是路由指向,指向到ensp中的三层交换机的vlanif(作为各个网段的网关)
- 最后systemctl start dhcpd
- yum完成之后将模板文件复制到dhcpd.conf中,然后匹配中subnet网段范围池
- 4.配置vlan,其中vlan100为100.0网段,和虚拟机直通,其他网段通过三层交换机转发, 该配Trunk的配Trunk该配acc的配acc
- 5.在三层交换机中配置DHCP中继
- int Vlanif 10 20 100
- dhcp select relay //基于DHCP中继
- dhcp relay server-ip xxxx.xxxxx.xxxx //指向dhcp服务器的ip(centosip)
边栏推荐
- 软件测试面试题之软件基础
- 8、 Definition of array
- Traversing binary trees in non recursive pre -, middle -, and post order
- Introduction to various development software of advanced language
- LAMP.
- C语言之数据存储汇总
- Jenkins -- Basic -- 04 -- install Chinese plug-ins
- Unity ugui text text box adaptation
- [SQL injection] error injection
- Lnmp+discuz Forum
猜你喜欢

OJ question of sequence table

ESP8266-----JSON----c函数库提供字符串函数

Unity uses navmesh to realize simple rocker function

ESP8266---JSON数据交换格式

Lnmp+discuz Forum

Shell(9)函数

The difference between if and else if
![[SQL injection] extended injection method](/img/a1/d4218281bfc83a080970d8591cc6d4.png)
[SQL injection] extended injection method

ESP8266 AP_ MODE

Traversing binary trees in non recursive pre -, middle -, and post order
随机推荐
ESP8266---JSON数据交换格式
十六、awk
The difference between if and else if
Unity twitter login access
九、冒泡排序
十二、正则表达式
Iptables firewall (I)
7、 Loop statement
Dream journey
C语言之数据存储汇总
【Oracle】获取最近工作日及前N个工作日
5、 Conditional statement of shell
LAMP+DISCUZ论坛
六、if语句
OJ question of sequence table
ESP8266 STA_ Server
ESP8266 STA_ Mode
markdown
[ctf attack and defense world] questions about cookies in the web area
Unity screenshot widget


