![为 ISC DHCP 服务器设置选项 66 和 67](https://linux22.com/image/890175/%E4%B8%BA%20ISC%20DHCP%20%E6%9C%8D%E5%8A%A1%E5%99%A8%E8%AE%BE%E7%BD%AE%E9%80%89%E9%A1%B9%2066%20%E5%92%8C%2067.png)
如何在 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.