ISC DHCP site specific options

Laxmikant Rashinkar lk at thinlinx.com
Wed Feb 20 19:10:36 UTC 2013


What I really want to do is setup something like this:

On server:

option my_remote_server code 224 = text;
option my_remote_server = "aspiration";

On client:
request my_remote_server;

But this does not work for me.

I must be doing something wrong.

thanks for your help
L.K


On 02/19/2013 05:31 PM, Neff, Glen wrote:
> I think the option you want is next-server.
>
> -G
>
> Sent from my Droid phone.  Please excuse any typos, brevity, or carbon 
> scoring.
>
> -----Original Message-----
> *From:* Laxmikant Rashinkar [lk at thinlinx.com]
> *Received:* Tuesday, 19 Feb 2013, 18:59
> *To:* dhcp-users at lists.isc.org [dhcp-users at lists.isc.org]
> *Subject:* Re: ISC DHCP site specific options
>
> Hi Shawn,
>
> thanks for your feedback.
>
> In my isc dhcp server dhcpd.conf file I have this line:
>
> option tftp-server-name "192.168.1.64";
>
> and in my isc dhcp client dhclient.conf file I have this line:
>
> request subnet-mask, broadcast-address, time-offset, routers,
>          domain-name, domain-name-servers, domain-search, host-name,
>          netbios-name-servers, netbios-scope, interface-mtu,
>          rfc3442-classless-static-routes, ntp-servers, tftp-server-name;
>
> When I successfully run /sbin/dhclient on my debian system,
> I don't see anything about a tftp server in my environment
> variables.
>
> Am I doing something wrong?
>
> thanks for your help.
> L.K
>
> On 02/15/2013 04:47 PM, Shawn Routhier wrote:
> > For the ISC DHCP client the option information is presented to the
> > system by setting environment variables and then calling a script
> > to process them.  In the ISC tarball the example/default scripts
> > are found in client/scripts.  Where the client looks for the script
> > can be controlled by compile time configuration or by use of the
> > "-sf" argument on the command line.
> >
> > You may want or need to use the "request" or "also request" statements
> > to the client runtime configuration file to get the server to send 
> the desired
> > options.
> >
> > Shawn
> >
> >
> > On Feb 15, 2013, at 3:13 PM, Laxmikant Rashinkar wrote:
> >
> >> Thank you James.
> >>
> >> Now, let's say I modify dhcpd.conf and add site specific options 
> that provide an FTP server IP addr (i.e option 161) and a FTP Server 
> directory (i.e option 162).
> >>
> >> How would I read these values in a Linux DHCP client?
> >>
> >> thanks for your help.
> >> L.K
> >>
> >> On 02/15/2013 11:43 AM, James Jalbert wrote:
> >>> Not sure if this is what you are looking for, but site options are 
> set in the dhcpd.conf file. Here you can tell the server what to give 
> for routers based on subnet, name server and so on. I have inclided 
> some snips of my config for you to see.
> >>>
> >>> option domain-name-servers 192.168.1.1, 8.8.8.8, 10.10.1.6;
> >>> option domain-search "mydomain", "oher domain";
> >>>
> >>> # Subnet A
> >>> subnet 192.168.1.0 netmask 255.255.248.0 {
> >>>      option routers 192.168.1.1;
> >>>
> >>> # Subnet B
> >>> subnet 192.168.2.0 netmask 255.255.248.0 {
> >>>      option routers 192.168.2.1;
> >>> ...
> >>>
> >>> Hope this helps you.
> >>>
> >>> James Jalbert
> >>> Network Administrator
> >>> Eastern Aroostook RSU #39
> >>> Phone: 207-493-4246
> >>> E-Mail: jjalbert at rsu39.org
> >>>
> >>>
> >>>
> >>>>>> Laxmikant Rashinkar <lk at thinlinx.com> 2/15/2013 2:37 PM >>>
> >>> Hi,
> >>>
> >>> I'm hoping someone can help me with this issue because I was not 
> able to
> >>> find anything via google.
> >>>
> >>> I'm using ISC DHCP server on a Linux 32bit system.
> >>>
> >>> 1) How do I configure site specific options?
> >>>
> >>> 2) when a Linux client successfully gets a DHCP address from this
> >>> server, where can I find the site specific options received from the
> >>> DHCP server (or how do I parse them)
> >>>
> >>> thanks for your help
> >>> L.K

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/dhcp-users/attachments/20130220/6e1093da/attachment.html>


More information about the dhcp-users mailing list