Vendor Options
Michael Melia Jr.
mjm at petrocelli.com
Thu Jun 7 14:56:33 UTC 2007
Thanks Glenn. That worked for me except I made the following change:
match if option dhcp-vendor-identifier = "wyse-1000";
-to-
match if option vendor-class-identifier = "wyse-1000";
which is what you probably meant anyway.
However, everything I previously tried involved creating a option name
space, defining options in that space, creating a "vendor-classes" class
and creating a subclass for wyse. Pretty much everything out of the man
pages for dhcp-options under vendor encapsulation. However, I could not
get it to work. Is there a benefit to using that over the way you
described. Could someone rework this examples into that form so I can
understand what I was doing wrong?
Thanks.
-----Original Message-----
From: dhcp-users-bounce at isc.org [mailto:dhcp-users-bounce at isc.org] On
Behalf Of Glenn Satchell
Sent: Thursday, June 07, 2007 10:04 AM
To: dhcp-users at isc.org
Subject: Re: Vendor Options
>From: "Michael Melia Jr." <mjm at petrocelli.com>
>
>I am trying to configure my dhcp server to send certain vendor options
>to certain clients with the associated vendor-class-identifier.
>
>I know the following:
>
>- The client give the following Vendor class identifier:
>wyse-1000 (confirmed with set string below)
>
>- I need to declare the following options:
>
>o Option ftp-server code 161 = array of ip-address;
>
>o Option ftp-user code 162 = string;
>
>
>
>I have a very simple subnet declaration with the following:
>
>
>
>Subnet 192.168.1.0 netmask 255.255.255.0 {
>
> Option subnet-mask 255.255.255.0;
>
> Option routers 192.168.1.1;
>
> Option domain-name mycomany.com;
>
> Option domain-name-servers 192.168.1.2, 192.168.1.3;
>
> Range 192.168.1.11 192.168.1.20;
>
> Set vendor-string = option vendor-class-identifier;
>
>}
>
>
>
>My DHCP works fine. What I want to do is ensure that all clients in my
>subnet that give the "wyse-1000" identifier are given values for the
two
>options that I want to declare (ftp-server 192.168.1.4 and ftp-user
>anonymous). Any help would be appreciated. I am running ISC DHCP3 on
>UBUNTU 6.06 LTS with the latest patches/update for the build.
>
>
Add something like this to the global scope. There is some information
in the dhcpd.conf man page in th esection "CLIENT CLASSING".
option ftp-server code 161 = array of ip-address;
option ftp-user code 162 = string;
class "wyse1k" {
match if option dhcp-vendor-identifier = "wyse-1000";
option ftp-server 192.168.1.4;
option ftp-user "anonymous";
}
No changes are needed to the subnet definition, the devices will pick
up the options if they match the class.
regards,
-glenn
More information about the dhcp-users
mailing list