DHCP option 161
Glenn Satchell
glenn.satchell at uniq.com.au
Thu Feb 9 12:44:30 UTC 2012
David, you got it right.
Ryan, there is a section towards the end of the dhcp-options man page
titled "DEFINING NEW OPTIONS". You need to define the option format once,
then assign the value to it in the appropriate scope(s).
regards,
-glenn
> Just a thought (meaning I haven't test it myself.) - It seems the server
> doesn't recognize "ftpserver", so maybe you should define it to map to
> option 161 by:
>
>
>
> option ftpserver code 161 = string;
>
>
>
> And then use it, wherever you need, by:
>
>
>
> option ftpserver "172.30.108.50";
>
>
>
>
>
> HTH,
>
> David Ganor
>
>
>
> From: dhcp-users-bounces+david=oliver-solutions.com at lists.isc.org
> [mailto:dhcp-users-bounces+david=oliver-solutions.com at lists.isc.org] On
> Behalf Of Ryan Setiawan H
> Sent: Thursday, February 09, 2012 5:48 AM
> To: dhcp-users at lists.isc.org
> Subject: DHCP option 161
>
>
>
> Hi All,
> need help ... I'm using FreeBSD 8.2 with ISC DHCP 4.1.2-P1, I
> configure
> 2 server with failover.
> recently because of VDI piloting, we'll deploy many wyse thin client,
> that load the config from FTP server ( NOT TFTP ). according to the wyse
> manual book, the wyse FTP parameter could be set by DHCP option code 161.
> I've googling how to add dhcp option 161. many answer exist, but none
> work...
> here some of them :
> -->option ftpserver code 161 = 172.30.108.50;
> Internet Systems Consortium DHCP Server 4.1.2-P1
> Copyright 2004-2011 Internet Systems Consortium.
> All rights reserved.
> For info, please visit https://www.isc.org/software/dhcp/
> /usr/local/etc/dhcpd.conf line 7: unknown data type 172
> option ftpserver code 161 = 172.
> ^
> Configuration file errors encountered -- exiting
>
> -->option ftpserver code 161 = "172.30.108.50";
> /usr/local/etc/dhcpd.conf line 7: unknown data type 172.30.108.50
> option ftpserver code 161 = "172.30.108.50"
> ^
> Configuration file errors encountered -- exiting
>
> -->option ftpserver code 161 "172.30.108.50";
> /usr/local/etc/dhcpd.conf line 7: expecting "="
> option ftpserver code 161 "172.30.108.50"
> ^
> Configuration file errors encountered -- exiting
>
> -->option option-161 "172.30.108.50"; ( this is from the man 5
> dhcp-options
> )
> /usr/local/etc/dhcpd.conf line 8: unknown option dhcp.option-161
> option option-161 "172.30.108.50"
> ^
> Configuration file errors encountered -- exiting
>
> is there working configuration for this particular version ( 4.1.2-P1 )
>
> See my full config :
>
> authoritative;
> ddns-update-style none;
> default-lease-time 86400; #1 day
> max-lease-time 604800; #1 week
> option domain-name "xxx.com";
> omapi-port 7911;
>
>
> failover peer "dhcp-failover" {
> primary; # declare this to be the primary server
> address 192.168.13.151;
> port 647;
> peer address 192.168.28.151;
> peer port 647;
> max-response-delay 30;
> max-unacked-updates 10;
> load balance max seconds 3;
> mclt 1800;
> split 128;
> }
>
>
> shared-network BDG-AA-3-V200 {
> subnet 192.168.5.0 netmask 255.255.255.128 {
> option broadcast-address 192.168.5.127;
> option subnet-mask 255.255.255.128;
> option routers 192.168.5.1;
> option domain-name-servers 192.168.11.96, 192.168.11.69;
> option ntp-servers 192.168.11.19;
> # option ftpserver code 161 = 172.30.108.50;
> # option option-161 172.30.108.50;
> # option option-162 "pub/config";
> pool {
> host me { hardware ethernet xx:xx:xx:20:1d:f4;
> fixed-address
> 192.168.5.14; option host-name "me"; }
> range 192.168.5.31 192.168.5.125;
> failover peer "dhcp-failover";
> }
> }
> }
>
> Thanks,
> Ryan Setiawan H
>
> _______________________________________________
> dhcp-users mailing list
> dhcp-users at lists.isc.org
> https://lists.isc.org/mailman/listinfo/dhcp-users
More information about the dhcp-users
mailing list