windows2019服务器迁移DHCP服务到CentOS7
1、powershell导出服务器全部作用域
Get-Dhcpserverv4Scope -computername WIN-D2F3V83UDDG >> Scope-ip.txt
2、powershell 导出服务器全部保留IP
Get-Dhcpserverv4Scope -computername WIN-D2F3V83UDDG | Get-DhcpServerv4Reservation -computername WIN-D2F3V83UDDG >> Reservation-ip.txt
3、powershell 导出排除的IPv4地址范围
Get- Dhcp Serverv4ExclusionRange >> Exclusion-ip.txt
4、修改配置文件
vi /etc/dhcp/dhcpd.conf
# dhcpd.conf
# option definitions common to all supported networks...
option domain-name "crland.hk";
option domain-name-servers 10.108.50.130;
default-lease-time 86400;
max-lease-time 86400;
# Use this to enble / disable dynamic dns updates globally.
ddns-update-style none;
# If this DHCP server is the official DHCP server for the local
# network, the authoritative directive should be uncommented.
authoritative;
# Use this to send dhcp log messages to a different log file (you also
# have to hack syslog.conf to complete the redirection).
log-facility local7;
# This is a very basic subnet declaration.
#CentOS7服务器直连网段
subnet 10.108.50.128 netmask 255.255.255.224 {
}
#网段IP分配测试
subnet 10.108.50.32 netmask 255.255.255.224 {
range 10.108.50.34 10.108.50.62;
option routers 10.108.50.33;
}
# Fixed IP addresses can also be specified for hosts. These addresses
# should not also be listed as being available for dynamic assignment.
# Hosts for which fixed IP addresses have been specified can boot using
# BOOTP or DHCP. Hosts for which no fixed address is specified can only
# be booted with DHCP, unless there is an address range on the subnet
# to which a BOOTP client is connected which has the dynamic-bootp flag
# set.
#分配静态IP测试
host test {
hardware ethernet C8:5B:76:A7:4D:9F;
fixed-address 10.108.51.44;
}
5、重启CentOS7 DHCP服务
systemctl restart dhcpd.service
6、查看CentOS7 DHCP状态
systemctl status dhcpd.service
分享到:
相关推荐
centos DHCP服务器配置方法
Centos 7.4 DHCP 双机热备 配置文档。
CentOS6.5-dhcp服务器-〉安装步骤
centos 7.9服务器 离线 搭建svn服务器 ,该文章适用于 开发人员 实施人员 项目经理用于项目文档管理 代码管理,而不指定如何在centos7.9环境下离线搭建svn服务器,因为大多数的网站只是介绍yum install 的方式,但是...
此内容是本人整理的针对服务器的系统安装详细图文安装步骤。 对centos7.6的安装步骤进行逐步的拆解,标注。
Centos系统上搭建DHCP服务器主和备冗余
联想ThinkServer服务器R110i RAID卡 安装CentOS7 Redhat7系统 方法,由于CentOS7 和Redhat7系统不带R110i RAID卡驱动,所以需要手动加载。
因为之前接触华为服务器较少,所以遇到了不少坑,我将遇到坑全部解决之后形成了这一份超详细的centos7.7的部署文档,希望帮到遇到相同问题的人。
在centos7中安装配置Samba服务器,主要介绍Samba服务涉及的配置文件以及安装过程,以及防火墙、senlinux的设置
14G R740服务器安装Centos7.3.docx
CentOS 7.x 快速搭建ARK服务器及服务器参数设置
Windows7配置PuTTY+Xming连接CentOS7 SSH服务器图形化界面.........
centos 6.4下搭建DHCP服务器。
Centos8 搭建DNS服务器
CentOS DHCP服务器配置
此文档介绍了centos7环境下搭建nas服务并完成数据迁移
华为RH2288 V3服务安装centos7操作系统,包含raid划分,服务器分区划分,整个流程,好使用请好评,谢谢
CentOS 6.5 DHCP服务器配置实例 【例题】 配置dhcp服务器,服务器IP为192.168.1.10,分配地址范围为:192.168.1.100- 192.168.1.200,网关地址为192.168.1.2,DNS地址为10.11.10.23和10.11.10.25,默认 租约为1小时...
centos7安装部署gitlab服务器,1. 安装依赖软件2.设置postfix开机自启,并启动,postfix支持gitlab发信功能3.下载gitlab安装包,然后安装4.配置GITLAB
CentOS 7搭建SVN服务器,详细安装步骤说明及配置详细步骤说明