dnsmasq DHCP 不工作,不回复 DHCP 请求

dnsmasq DHCP 不工作,不回复 DHCP 请求

我已在 CentOS VM 上将 dnsmasq 设置为 DHCP 服务器,但它没有响应 DHCP 请求。可能是什么问题?以下是配置和 tcpdump 日志。

interface=ens224
listen-address=::1,127.0.0.1,172.17.11.1
dhcp-range=172.17.11.10,172.17.11.50,24h
dhcp-option=option:router,172.17.11.1
dhcp-authoritative
dhcp-leasefile=/var/lib/dnsmasq/dnsmasq.leases

以下是我通过 tcpdump 在接口 ens224 上看到的 DHCP 请求:

17:42:01.409959 IP 0.0.0.0.bootpc > 255.255.255.255.bootps: BOOTP/DHCP, Request from 12:34:56:00:11:02, length 300

以下是 dnsmasq 的状态:

# systemctl status dnsmasq -l
● dnsmasq.service - DNS caching server.
   Loaded: loaded (/usr/lib/systemd/system/dnsmasq.service; enabled; vendor preset: disabled)
   Active: active (running) since Wed 2022-01-05 17:41:11 GMT; 1s ago
 Main PID: 3680 (dnsmasq)
   CGroup: /system.slice/dnsmasq.service
           └─3680 /usr/sbin/dnsmasq -k

Jan 05 17:41:11 Underlay systemd[1]: Started DNS caching server..
Jan 05 17:41:11 Underlay dnsmasq[3680]: started, version 2.76 DNS disabled
Jan 05 17:41:11 Underlay dnsmasq[3680]: compile time options: IPv6 GNU-getopt DBus no-i18n IDN DHCP DHCPv6 no-Lua TFTP no-conntrack ipset auth nettlehash no-DNSSEC loop-detect inotify
Jan 05 17:41:11 nderlay dnsmasq-dhcp[3680]: DHCP, IP range 172.17.11.10 -- 172.17.11.50, lease time 1d

相关内容