Am configurat dnsmasq ca server DHCP pe o VM CentOS, dar nu răspunde la solicitările DHCP. Care ar putea fi problema? Mai jos sunt jurnalele de configurare și tcpdump.
interfață=ens224
adresa-ascultă=::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-autoritar
dhcp-leasefile=/var/lib/dnsmasq/dnsmasq.leases
Mai jos este solicitarea DHCP pe care o pot vedea pe interfața ens224 de către tcpdump:
17:42:01.409959 IP 0.0.0.0.bootpc > 255.255.255.255.bootps: BOOTP/DHCP, Solicitare de la 12:34:56:00:11:02, lungime 300
Mai jos este starea dnsmasq:
# systemctl status dnsmasq -l
â dnsmasq.service - server de cache DNS.
Încărcat: încărcat (/usr/lib/systemd/system/dnsmasq.service; activat; prestabilit furnizor: dezactivat)
Activ: activ (în rulare) din miercuri 2022-01-05 17:41:11 GMT; acum 1s
PID principal: 3680 (dnsmasq)
CGroup: /system.slice/dnsmasq.service
ââ3680 /usr/sbin/dnsmasq -k
05 ianuarie 17:41:11 Sublay systemd[1]: Serverul de cache DNS a pornit..
05 ianuarie 17:41:11 Underlay dnsmasq[3680]: început, versiunea 2.76 DNS dezactivată
Ian 05 17:41:11 Underlay dnsmasq[3680]: opțiuni de timp de compilare: IPv6 GNU-getopt DBus no-i18n IDN DHCP DHCPv6 no-Lua TFTP no-conntrack ipset auth nettlehash no-DNSSEC loop-detect inotify
05 ianuarie 17:41:11 nderlay dnsmasq-dhcp[3680]: DHCP, interval IP 172.17.11.10 -- 172.17.11.50, timp de închiriere 1d