You are not logged in.

#1 2023-02-25 14:37:47

d.ALT
Member
Registered: 2019-05-10
Posts: 921

[WORKAROUND] dnsmasq PXE-E51 No DHCP or proxyDHCP offers were received

I'm trying to serve Debian's netboot files.

  • 192.168.1.1 = modem+router+gateway (DHCP is disabled)

  • 192.168.1.40 = PXE server (my main PC)



$ LC_ALL=C nmcli device show wlp6s0:

GENERAL.DEVICE:                         wlp6s0
GENERAL.TYPE:                           wifi
GENERAL.HWADDR:                         MACADDRESS
GENERAL.MTU:                            1500
GENERAL.STATE:                          100 (connected)
GENERAL.CONNECTION:                     MYSSID
GENERAL.CON-PATH:                       /org/freedesktop/NetworkManager/ActiveConnection/4
IP4.ADDRESS[1]:                         192.168.1.40/24
IP4.GATEWAY:                            192.168.1.1
IP4.ROUTE[1]:                           dst = 192.168.1.0/24, nh = 0.0.0.0, mt = 600
IP4.ROUTE[2]:                           dst = 0.0.0.0/0, nh = 192.168.1.1, mt = 600
IP4.DNS[1]:                             185.222.222.222
IP4.DNS[2]:                             45.11.45.11
IP6.ADDRESS[1]:                         fe80::f84d:129e:1362:cfc8/64
IP6.GATEWAY:                            --
IP6.ROUTE[1]:                           dst = fe80::/64, nh = ::, mt = 1024

dnsmasq.conf:

except-interface=lo
dhcp-authoritative
dhcp-option=1,255.255.255.0
dhcp-option=3,192.168.1.1
dhcp-option=6,185.222.222.222
enable-tftp
tftp-root=/mnt/somewhere/pxe_tftp/
log-dhcp
dhcp-range=192.168.1.75,192.168.1.199
dhcp-option-force=209,pxelinux.cfg/default
dhcp-option-force=210,
pxe-service=x86PC,"PXELINUX (BIOS)",pxelinux
dhcp-host=CLIENT_MACADDRESS,192.168.1.76
dhcp-match=set:bios,option:client-arch,0
dhcp-boot=tag:bios,pxelinux.0

$ tree /mnt/somewhere/pxe_tftp/

/mnt/somewhere/pxe_tftp/
├── 2.6
│   ├── initrd.gz
│   └── linux
├── boot-screens
│   ├── f10.txt
│   ├── f1.txt
│   ├── f2.txt
│   ├── f3.txt
│   ├── f4.txt
│   ├── f5.txt
│   ├── f6.txt
│   ├── f7.txt
│   ├── f8.txt
│   ├── f9.txt
│   ├── splash.rle
│   └── syslinux.txt
├── initrd.gz
├── linux
├── pxelinux.0
├── pxelinux.cfg
│   └── default
└── pxelinux.cfg.serial-9600
    └── default

5 directories, 19 files

$ sudo journalctl -u dnsmasq.service -f:

feb 25 15:10:52 ARCH-RYZEN systemd[1]: Starting dnsmasq - A lightweight DHCP and caching DNS server...
feb 25 15:10:52 ARCH-RYZEN dnsmasq[10082]: dnsmasq: syntax check OK.
feb 25 15:10:52 ARCH-RYZEN systemd[1]: Started dnsmasq - A lightweight DHCP and caching DNS server.
feb 25 15:10:52 ARCH-RYZEN dnsmasq[10084]: started, version 2.89 cachesize 150
feb 25 15:10:52 ARCH-RYZEN dnsmasq[10084]: compile time options: IPv6 GNU-getopt DBus no-UBus i18n IDN2 DHCP DHCPv6 no-Lua TFTP conntrack ipset nftset auth cryptohash DNSSEC loop-detect inotify dumpfile
feb 25 15:10:52 ARCH-RYZEN dnsmasq[10084]: DBus support enabled: connected to system bus
feb 25 15:10:52 ARCH-RYZEN dnsmasq-dhcp[10084]: DHCP, IP range 192.168.1.75 -- 192.168.1.199, lease time 1h
feb 25 15:10:52 ARCH-RYZEN dnsmasq-tftp[10084]: TFTP root is /mnt/somewhere/pxe_tftp/
feb 25 15:10:52 ARCH-RYZEN dnsmasq[10084]: reading /etc/resolv.conf
feb 25 15:10:52 ARCH-RYZEN dnsmasq[10084]: using nameserver 185.222.222.222#53
feb 25 15:10:52 ARCH-RYZEN dnsmasq[10084]: using nameserver 45.11.45.11#53
feb 25 15:10:52 ARCH-RYZEN dnsmasq[10084]: read /etc/hosts - 3 names

$ ip address show dev wlp6s0:

$ ip address show dev wlp6s0
3: wlp6s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
    link/ether MACADDRESS brd ff:ff:ff:ff:ff:ff
    inet 192.168.1.40/24 brd 192.168.1.255 scope global noprefixroute wlp6s0
       valid_lft forever preferred_lft forever
    inet6 fe80::f84d:129e:1362:cfc8/64 scope link noprefixroute 
       valid_lft forever preferred_lft forever

\\\


Client's integrated ethernet NIC is working: I can turn-on the client via Wake-On-LAN

Last edited by d.ALT (2023-02-25 21:22:17)


<49,17,III,I>    Fama di loro il mondo esser non lassa;
<50,17,III,I>    misericordia e giustizia li sdegna:
<51,17,III,I>    non ragioniam di lor, ma guarda e passa.

Offline

#2 2023-02-25 21:21:42

d.ALT
Member
Registered: 2019-05-10
Posts: 921

Re: [WORKAROUND] dnsmasq PXE-E51 No DHCP or proxyDHCP offers were received

SOLVED/WORKAROUND:
use ethernet connection, not WiFi.


<49,17,III,I>    Fama di loro il mondo esser non lassa;
<50,17,III,I>    misericordia e giustizia li sdegna:
<51,17,III,I>    non ragioniam di lor, ma guarda e passa.

Offline

Board footer

Powered by FluxBB