![dnsmasq 和 mac 过滤器](https://linux22.com/image/541740/dnsmasq%20%E5%92%8C%20mac%20%E8%BF%87%E6%BB%A4%E5%99%A8.png)
使用 dnsmasq 作为 DHCP 提供程序,如何仅允许某些 mac 地址获取 IP 地址?
答案1
使用 dhcp-ignore:
dhcp-range=192.168.0.50,192.168.0.150,12h
dhcp-host=08:00:27:CB:23:44,net:allow
dhcp-host=08:00:27:CB:23:45,net:allow
dhcp-host=08:00:27:CB:23:46,net:allow
dhcp-ignore=#allow
使用 dnsmasq 作为 DHCP 提供程序,如何仅允许某些 mac 地址获取 IP 地址?
使用 dhcp-ignore:
dhcp-range=192.168.0.50,192.168.0.150,12h
dhcp-host=08:00:27:CB:23:44,net:allow
dhcp-host=08:00:27:CB:23:45,net:allow
dhcp-host=08:00:27:CB:23:46,net:allow
dhcp-ignore=#allow