Ispsrv(UOS) DHCP
题目:
域名解析服务器:按照实际需求配置 DNS 服务器地址选项;
一、安装dhcp服务
root@ispsrv:~# apt install isc-dhcp-server -y
二、修改dhcp监听网卡
ens33为网卡名
root@ispsrv:~# vim /etc/default/isc-dhcp-server INTERFACESv4="ens33"
三、备份配置文件并重新编辑
备份: root@ispsrv:~# cp /etc/dhcp/dhcpd.conf /etc/dhcp/dhcpd.conf.bak 编辑配置文件: root@ispsrv:~# vim /etc/dhcp/dhcpd.conf option domain-name "chinaski11s.cn"; option domain-name-servers 81.6.63.100; default-lease-time 600; max-lease-time 7200; ddns-update-style none; subnet 81.6.63.0 netmask 255.255.255.0 { range 81.6.63.110 81.6.63.190; option routers 81.6.63.254; }
四、重启服务
root@ispsrv:~# systemctl restart isc-dhcp-server