如何在 DHCP 中设置选项 66 和选项 67isc-dhcp 服务器?
- 066 启动服务器主机名
- 067 引导文件名
答案1
我应该编辑 dhcpd.conf 文件
nano -w /etc/dhcp/dhcpd.conf
并添加以下条目以激活选项 66 和 67。
#option 66
option tftp-server-name "w.x.y.z";
#option 67
option bootfile-name "test.cfg";
然后重新启动 DHCP 服务器。
sudo service isc-dhcp-server restart
答案2
dhcpd.conf 命令
next-server server-name;
The next-server statement is used to specify the host
address of the server from which the initial boot file
(specified in the filename statement) is to be loaded.
Server-name should be a numeric IP address or a domain
name.