|
RE: Configuring dhcp-parameter-request-list dynamically: msg#00332network.dhcp.isc.dhcp-server
*** From dhcp-server -- To unsubscribe, see the end of this message. *** Well, I think I figured out the problem. It seems that the data type that is expected is different depending on whether is "=" is used or not. Without it an ASCII string with the parameter list specified by decimal numbers in a comma delimited list is what is used, but with it a raw number (array of unsigned 8-bit integers) is expected. I added the following line (and commented out the one that was uncommented before) and it worked: option dhcp-parameter-request-list = concat(option dhcp-parameter-request-list,d0,d1); I had tried this before, but had tried decimal instead of hexadecimal numbers and got "out of range" type errors (stating that the values were greater than 255 (and since when is 208 > 255?--when the error message is reported in a different base than the value in the config file is interpreted in ;). Actually, while I'm on the subject, is there any kind of logging I could have turned on to get some sort of mismatched data type error or something so I wouldn't have had to play with this for as long as I did? Thanks, Andy -----Original Message----- From: dhcp-server-bounce@xxxxxxx [mailto:dhcp-server-bounce@xxxxxxx] On Behalf Of Andy Wray Sent: Monday, January 27, 2003 1:03 AM To: dhcp-server@xxxxxxx Subject: Configuring dhcp-parameter-request-list dynamically *** 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 ----------------------------------------------------------------------- ----------------------------------------------------------------------- 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: | Configuring dhcp-parameter-request-list dynamically: 00332, Andy Wray |
|---|---|
| Next by Date: | DHCPd 3.0 eats CPU with large client range: 00332, Dinh_Ba . Truc |
| Previous by Thread: | Configuring dhcp-parameter-request-list dynamicallyi: 00332, Andy Wray |
| Next by Thread: | DHCPd 3.0 eats CPU with large client range: 00332, Dinh_Ba . Truc |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |