dhcpd服务程序配置文件中使用的常见参数以及作用
DHCP新征程
管理一个简单的50人教室的IP分配

[[email protected] ~]# vim /etc/dhcp/dhcpd.conf
ddns-update-style none;
ignore client-updates;
subnet 192.168.10.0 netmask 255.255.255.0 {
range 192.168.10.50 192.168.10.150;
option subnet-mask 255.255.255.0;
option routers 192.168.10.1;
option domain-name “linuxprobe.com”;
option domain-name-servers 192.168.10.1;
default-lease-time 21600;
max-lease-time 43200;
}DHCP新征程
把配置过的dhcpd服务加入到开机启动项中,以确保当服务器下次开机后dhcpd服务依然能自动启动,并顺利地为客户端分配IP地址等信息。刘遄老师真心建议大家能养成“配置好服务程序,顺手加入开机启动项”的好习惯:

[[email protected] ~]# systemctl start dhcpd
[[email protected] ~]# systemctl enable dhcpd
ln -s ‘/usr/lib/systemd/system/dhcpd.service’ ‘/etc/systemd/system/multi-user.
target.wants/dhcpd.service’

然后打开客户端,重启网络,就能看到配置成功了

相关文章:

  • 2022-12-23
  • 2021-10-27
  • 2021-07-11
  • 2021-07-06
  • 2021-09-02
  • 2021-08-04
  • 2021-11-19
  • 2022-12-23
猜你喜欢
  • 2022-02-21
  • 2021-11-27
  • 2021-05-30
  • 2022-12-23
  • 2021-11-23
  • 2021-06-04
  • 2021-12-14
相关资源
相似解决方案