LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 06-16-2008, 04:35 PM   #1
endfx
Member
 
Registered: May 2003
Location: Canada
Distribution: Debian
Posts: 105

Rep: Reputation: 15
DHCP Server - Option 43 Suboption 15


I need to setup my dhcp server to respond to clients that have dhcp option 43 suboption 15 set to something particular (let's say "abcd").


Basically, the server gets a request from a client specifying "abcd" as option 43 sub-option 15, then I need to specify a particular tftp server in the response (or file)

Does anyone have experience with setting up dhcp server took look for this option? (vendor specific options is what they are referred to).

I'm using a standard ISC dhcp server.

Thanks.
 
Old 06-17-2008, 01:57 PM   #2
vortmax
Member
 
Registered: Nov 2005
Posts: 91

Rep: Reputation: 17
I'm not sure 100%, but I can at least point you in the right direction.

You can do it with classes. Define a class like:

Code:
class "SomeClass" {
        match if substring(option vendor-class-identifier,0,6) = "ABCD";
        option tftp-server-name "172.16.16.7";
        next-server 172.16.16.7;

}
that will tag all of those clients as being a particular class. I use classes to allow or disallow access to subnets. I've never assigned options based on class. You may be able to add the tftp options into the class definition, or you may have to build a group. I'm sure there is a simple way of doing it though.

edit: Just looked it up and you should be able to append normal options into the class statement. So that code above would take all computer matching ABCD as their vendor string and give assign 172.16.16.7 as the tftp address.

Last edited by vortmax; 06-17-2008 at 02:16 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
DHCP server not using 'option interface-mtu'? Moloko Linux - Networking 2 01-09-2010 11:30 AM
DHCP Authentication Suboption gedanken Linux - Security 3 11-06-2006 03:16 AM
DHCP Server: Is there a Classid option equivilant Swakoo Linux - Networking 2 10-24-2005 04:17 AM
dhcp, option routers lalu Linux - General 1 09-13-2001 08:07 AM
DHCP-server. option routers lalu Linux - General 0 09-13-2001 01:46 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 11:23 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration