[Dnsmasq-discuss] i need dhcp-match to find a match for an encapsulated value
Beta Tester
alpha-beta-release at gmx.net
Thu Jan 28 17:53:02 UTC 2021
> Gesendet: Donnerstag, 28. Januar 2021 um 12:30 Uhr
> Von: "Geert Stappers" <stappers at stappers.nl>
> > i need a match for the byte values 0x01 0x15 0x01
> >
> > i tried several combinations like:
> > dhcp-match=set:ipxe.version_1_21_1, 175, 235, 1b, 21b ,1b
> > dhcp-match=set:ipxe.version_1_21_1, 175, 235, 1:21:1
> > dhcp-match=set:ipxe.version_1_21_1, 175, 235, 01:15:01
> >
> > with no luck...
>
> Try
> dhcp-match=set:ipxe.vera, 175, 235, 1,21,1
> dhcp-match=set:ipxe.verc, 175, 235, 1,24,5
>
> Elaborated
> short name
> vera for 1.21.1
> verc for 1.24.5
> all comma separated decimal values
thank you Geert, for your answer.
unfortunately this does not work at all, because dnsmasq doesn't start up anymore with that line.
dhcp-match=set:ipxe.vera, 175, 235, 1,21,1
for that reason i tried to give the values separated by ':' or adding 'b' (for byte?) to each value
in "journalctl -xe" i found this error message:
dnsmasq[11379]: dnsmasq: syntax check OK.
dnsmasq[11380]: dnsmasq: bad IPv4 address at line 185 of /etc/dnsmasq.d/10-pxe-server
dnsmasq[11380]: bad IPv4 address at line 185 of /etc/dnsmasq.d/10-pxe-server
dnsmasq[11380]: FAILED to start up
it looks like dnsmasq try to interprets that numbers as IPv4 address.
BTW: in case it is important, i am using a debian distro, dnsmasq version is:
$ dnsmasq --version
Dnsmasq version 2.80 Copyright (c) 2000-2018 Simon Kelley
Compile time options: IPv6 GNU-getopt DBus i18n IDN DHCP DHCPv6 no-Lua TFTP conntrack ipset auth DNSSEC loop-detect inotify dumpfile
More information about the Dnsmasq-discuss
mailing list