我目前对 dnsmasq 配置感到困惑,希望有人能帮助我... 我已经使用 dnsmasq 成功设置了 DHCP 服务器,并尝试根据客户端的 MAC 地址包含一些静态主机配置。这是我的 dnsmasq.conf:
# port to listen for DNS queries. If set to 0, disables DNS functionality.
port=0
domain=fritz.box
dhcp-range=192.168.13.50,192.168.13.150,255.255.255.0,4h
dhcp-range=192.168.13.0,static,255.255.255.0,12h
dhcp-boot=pxelinux.0,pxeserver,192.168.13.10
# Gateway
dhcp-option=3,192.168.13.1
# DNS
dhcp-option=6,192.168.13.1
# Network Broadcast Address
dhcp-option=28,192.168.13.255
# Network Time Servers
dhcp-option=42,192.168.13.1
# linux-gurke
dhcp-host=00:1e:4f:d7:24:5e,192.186.13.6
pxe-prompt="Press F8 for menu.", 60
pxe-service=x86PC, "PXE boot from raspi", pxelinux
enable-tftp
tftp-root=/var/lib/tftpboot
dhcp-authoritative
但是由于某种原因,即使我有匹配的 dhcp-host 行 - 主机也没有获取静态 ip:
Oct 30 19:53:51 raspi dnsmasq-dhcp[9759]: DHCPDISCOVER(br0) 00:1e:4f:d7:24:5e
Oct 30 19:53:51 raspi dnsmasq-dhcp[9759]: DHCPOFFER(br0) 192.168.13.92 00:1e:4f:d7:24:5e
Oct 30 19:53:51 raspi dnsmasq-dhcp[9759]: DHCPREQUEST(br0) 192.168.13.92 00:1e:4f:d7:24:5e
Oct 30 19:53:51 raspi dnsmasq-dhcp[9759]: DHCPACK(br0) 192.168.13.92 00:1e:4f:d7:24:5e linux-gurke
我遗漏了什么/做错了什么? 有什么想法吗?