I have some issue with dnsmasq. I'm trying to use the existing dhcp that is provide by my router to create a pxe server but dnsmasq give me an errror.
/etc/dnsmasq.conf :
port=0
log-dhcp
dhcp-range=192.168.0.0,proxy
dhcp-boot=pxelinux.0
pxe-service=x86PC,'Network Boot',pxelinux
enable-tftp
tftp-root=/tftpboot
the error :
● dnsmasq.service - DNS caching server.
Loaded: loaded (/usr/lib/systemd/system/dnsmasq.service; disabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Sat 2022-05-07 14:50:57 CEST; 1s ago
Process: 22959 ExecStart=/usr/sbin/dnsmasq -k (code=exited, status=2)
Main PID: 22959 (code=exited, status=2)
mai 07 14:50:57 host.dynamic.voo.be systemd[1]: Started DNS caching server..
mai 07 14:50:57 host.dynamic.voo.be dnsmasq[22959]: dnsmasq: failed to bind DHCP server socket: Address already in use
mai 07 14:50:57 host.dynamic.voo.be dnsmasq[22959]: failed to bind DHCP server socket: Address already in use
mai 07 14:50:57 host.dynamic.voo.be systemd[1]: dnsmasq.service: Main process exited, code=exited, status=2/INVALIDARGUMENT
mai 07 14:50:57 host.dynamic.voo.be dnsmasq[22959]: FAILED to start up
mai 07 14:50:57 host.dynamic.voo.be systemd[1]: dnsmasq.service: Failed with result 'exit-code'.
The interface configuration :
2: eno1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
link/ether 10:e7:c6:16:55:8b brd ff:ff:ff:ff:ff:ff
inet 192.168.0.100/24 brd 192.168.0.255 scope global noprefixroute eno1
valid_lft forever preferred_lft forever
inet6 2a02:2788:7d4:66b::9/128 scope global dynamic noprefixroute
valid_lft 912066sec preferred_lft 307266sec
inet6 2a02:2788:7d4:66b:aca7:f9f4:3c57:9d62/64 scope global dynamic noprefixroute
valid_lft 1209592sec preferred_lft 604792sec
inet6 fe80::7f8c:47f6:d123:7c38/64 scope link noprefixroute
valid_lft forever preferred_lft forever
My dhcp parameter on my router :
ip of my router : 192.168.0.1
1st address : 192.168.0.10
last address : 192.168.0.99
release time in sec : 604800
regards,
stickman