LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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-14-2012, 12:26 PM   #1
0x53h
LQ Newbie
 
Registered: May 2012
Posts: 23

Rep: Reputation: Disabled
DHCP options statement - uint8


I'm attempting to setup a dhcp server in Linux for a specific purpose. I'm following a guide written for Windows and think I am on the right path but need a little guidance.

The document has me creating a vendor class and adding options codes 141, 151, and 163 to supply the clients with a server (ip address), config file (string), and download protocol (byte).

Let me know what you think about mirroring this document with this type of config:

Code:
option server code 141 = ip-address;
option config code 151 = text;
option proto  code 163 = uint8;

subnet 192.168.0.0 netmask 255.255.255.0 {
  option server 192.168.0.10;
  option config "config.cfg";
  option proto 1;

  <...>
}
According to the dhcpd.conf and dhcp-options man pages I've found online, this should work. When loading dhcpd, however, I receive a notice the config file is not correctly setup.

Code:
<...>
option proto code 163 = uint8;
                         ^
configuration file errors encountered -- exiting
<...>
Does anyone have an idea why this data format is not working for me? I am running Slackware 13.37 and ISC-DHCP 4.2.1-P1.
 
Old 06-14-2012, 02:45 PM   #2
0x53h
LQ Newbie
 
Registered: May 2012
Posts: 23

Original Poster
Rep: Reputation: Disabled
[solved]

Code:
#option proto  code 163 = uint8;
option proto  code 163 = unsigned integer 8;
At the very top of the man page for dhcp-options it accurately lists the other format definitions (ip-address, ip6-address, text, string, etc.) along with [u]int8, [u]int16, [u]int32. The details are spelled out further down which I had not seen until I was actually to the point of grepping through the source to see if I could find what was expected.

If anyone has experience with DHCP and can provide sage advise regarding the 'translation' of my instructions from Windows to Linux I would appreciate it.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
ISC DHCP Class match statement don_wombat_73 Linux - Server 3 02-15-2011 09:03 PM
[SOLVED] [bash] if statement options. RaptorX Programming 9 08-17-2009 12:30 AM
bash case statement with multiple command line options pwc101 Programming 16 06-01-2007 11:43 AM
URGENT: dhcp-options nunuschi Linux - Networking 9 08-24-2006 01:55 PM
dhcp options nunuschi Linux - Networking 1 08-23-2006 07:33 AM

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

All times are GMT -5. The time now is 08:19 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