|
Configuring dhcp-parameter-request-list dynamically: msg#00331network.dhcp.isc.dhcp-server
*** From dhcp-server -- To unsubscribe, see the end of this message. *** Hello all, I'm trying to pass some additional parameters in the DHCP response from the server for network booting with pxelinux. The recommended way to do this according to the pxelinux docs is to use the "append" keyword, however this appears to only be valid for the dhclient.conf file rather than the dhcpd.conf file. I tried to work around this using the normal evaluation syntax, but it doesn't seem to work. I've posted my dhcpd.conf file below. I'm using the ISC DHCP server v 3.0.1rc9 on Red Hat Linux 7.3 using a pre-compiled binary (RPM) from one of the links off the ISC site. Can anyone either tell me what I'm doing wrong, or confirm that this is a bug in the DHCP server code? (BTW, you'll see from the commented lines below, I've tried several things, none of which work, except for the uncommented line, which is, of course, not dynamic). ddns-update-style interim; use-host-decl-names on; allow bootp; allow booting; option space pxelinux; option pxelinux.magic code 208 = string; option pxelinux.configfile code 209 = text; option pxelinux.pathprefix code 210 = text; option pxelinux.reboottime code 211 = unsigned integer 32; subnet 10.90.90.0 netmask 255.255.255.0 { option dhcp-renewal-time 536870910; option dhcp-rebinding-time 536870911; option dhcp-lease-time -1; option routers 10.90.90.1; option domain-name-servers 10.90.90.1; option domain-name "bay13"; next-server 10.90.90.1; filename "pxelinux.0"; option root-path "11.1.1.254:/opt/ltsp/i386000"; option vendor-encapsulated-options 01:04:00:00:00:00; option vendor-class-identifier "PXEClient"; option pxelinux.magic f1:00:74:7e; site-option-space "pxelinux"; if exists dhcp-parameter-request-list { #append dhcp-parameter-request-list 208, 209, 210, 211; -- This actually replaces the entire list, rather than appending these values #option dhcp-parameter-request-list = concat(binary-to-ascii(10,8,",",option dhcp-parameter-request-list),",208,209"); #option dhcp-parameter-request-list = concat( "1,2,3,","208,209" ); -- Just for testing a simple case #option dhcp-parameter-request-list = "1,2,3,208,209"; -- Even this does not work option dhcp-parameter-request-list 1,2,3,208,209; } log (info,concat("*** dhcp-parameter-request-list: ",binary-to-ascii(10,8,",",config-option dhcp-parameter-request-list)," ***")); option pxelinux.configfile = concat("pxelinux.cfg/", binary-to-ascii(16, 8, "-", substring(hardware,1,6))); range dynamic-bootp 10.90.90.3 10.90.90.254; } Thanks, Andy ----------------------------------------------------------------------- List Archives : http://www.isc.org/ml-archives/dhcp-server/ Unsubscribe : http://www.isc.org/dhcp-lists.html -or- : mailto:dhcp-server-request@xxxxxxx?Subject=unsubscribe ----------------------------------------------------------------------- |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | on commit/release/expiration: 00331, Brzozowski, John Jason (p) |
|---|---|
| Next by Date: | RE: Configuring dhcp-parameter-request-list dynamically: 00331, Andy Wray |
| Previous by Thread: | DDNS: help updates timing out.i: 00331, paul |
| Next by Thread: | RE: Configuring dhcp-parameter-request-list dynamically: 00331, Andy Wray |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |