<div dir="auto">This config didn't start out as a Windows file with cr lf line endings did it? (And is still in that format?)</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Feb 11, 2023, 6:30 AM Thomas Köller <<a href="mailto:thomas@koeller.dyndns.org">thomas@koeller.dyndns.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
in my DHCP server configuration I have these lines:<br>
<br>
host raspi-400 {<br>
host-identifier option dhcp6.client-id <br>
00:02:00:00:99:5c:df:c4:9e:c6:7c:c1:7f:3e;<br>
switch (binary-to-ascii(16, 32, ".", substring(option dhcp6.ia-na, 0, <br>
4))) {<br>
case "0":<br>
fixed-address6 fd46:1ffa:d8e0::9;<br>
option host-name "raspi-400";<br>
break;<br>
case "2":<br>
fixed-address6 fd46:1ffa:d8e0:1::9;<br>
option host-name "raspi-400-sshvpn";<br>
break;<br>
}<br>
}<br>
<br>
The intention is to return different data to the client, based on the <br>
IAID received. However, I apparently got the syntax wrong, although I <br>
cannot spot any mistake:<br>
<br>
[root@sarkovy ~]# dhcpd -6 -cf /etc/dhcp/dhcpd6.conf -t<br>
Internet Systems Consortium DHCP Server 4.4.3-P1<br>
Copyright 2004-2022 Internet Systems Consortium.<br>
All rights reserved.<br>
For info, please visit <a href="https://www.isc.org/software/dhcp/" rel="noreferrer noreferrer" target="_blank">https://www.isc.org/software/dhcp/</a><br>
lease_id_format is: hex<br>
/etc/dhcp/dhcpd6.conf line 80: right brace expected.<br>
fixed-address6<br>
^<br>
/etc/dhcp/dhcpd6.conf line 83: case statement in inappropriate scope.<br>
case<br>
^<br>
/etc/dhcp/dhcpd6.conf line 87: expecting a declaration<br>
}<br>
^<br>
Configuration file errors encountered -- exiting<br>
<br>
This version of ISC DHCP is based on the release available<br>
on <a href="http://ftp.isc.org" rel="noreferrer noreferrer" target="_blank">ftp.isc.org</a>. Features have been added and other changes<br>
have been made to the base software release in order to make<br>
it work better with this distribution.<br>
<br>
Please report issues with this software via:<br>
<a href="https://bugzilla.redhat.com/" rel="noreferrer noreferrer" target="_blank">https://bugzilla.redhat.com/</a><br>
<br>
exiting.<br>
<br>
Can anybody explain what's wrong?<br>
<br>
Thomas<br>
-- <br>
ISC funds the development of this software with paid support subscriptions. Contact us at <a href="https://www.isc.org/contact/" rel="noreferrer noreferrer" target="_blank">https://www.isc.org/contact/</a> for more information.<br>
<br>
dhcp-users mailing list<br>
<a href="mailto:dhcp-users@lists.isc.org" target="_blank" rel="noreferrer">dhcp-users@lists.isc.org</a><br>
<a href="https://lists.isc.org/mailman/listinfo/dhcp-users" rel="noreferrer noreferrer" target="_blank">https://lists.isc.org/mailman/listinfo/dhcp-users</a><br>
</blockquote></div>