DHCP option 161

Ryan Setiawan H ryan.setiawan at ocbcnisp.com
Fri Feb 10 09:02:32 UTC 2012


Hi All,
     David, Glenn, thanks both of you, the dhcp-option man page on 
freebsd is not complete, there isn't section for Defining new option. 
it's solved after I read the "other" man page...
     for those who have same problem :
     add *option ftpserver code 161 = ip-address;* on global config to 
define the ftpserver, and *option ftpserver 172.30.108.50;* to put your 
ftp server on your subnet declaration

Have a nice day
Ryan Setiawan H

On 2/9/2012 7:00 PM, dhcp-users-request at lists.isc.org wrote:
> ------------------------------
>
> Message: 3
> Date: Thu, 9 Feb 2012 10:58:12 +0200
> From: "David Ganor"<david at oliver-solutions.com>
> To: "'Users of ISC DHCP'"<dhcp-users at lists.isc.org>
> Subject: RE: DHCP option 161
> Message-ID:<002201cce708$f679bdf0$e36d39d0$@oliver-solutions.com>
> Content-Type: text/plain; charset="us-ascii"
>
> 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
>
>
>




More information about the dhcp-users mailing list