LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 02-23-2012, 02:47 AM   #1
leon.zcom
LQ Newbie
 
Registered: Apr 2008
Posts: 15

Rep: Reputation: 0
Wink how to add private options in dhcpd.conf


I have a problem when I config my dhcpd configfile.

The function I need is dhcpd will send the dhcp offer packet with a special option that it include an ipaddr.

so I modify the /etc/dhcp3/dhcpd.conf as below:

/************************************************
option enc-server code 200 = ip-address;
option enc-server 192.168.70.59;
**************************************************/

but it cannot work. so can someone help me to work it out? Thanks!
 
Old 02-25-2012, 12:24 PM   #2
bmarx
Member
 
Registered: Dec 2004
Distribution: Slackware, Arch, FreeBSD
Posts: 202

Rep: Reputation: 34
What happens if you use the option in your actual subnet declaration?

i.e.

subnet 192.168.70.0 netmask 255.255.255.0 {
...
option enc-server 192.168.70.59;
...
}

Also, have you tried using tcpdump to see if you are actually getting the option and your application is just not handling it correctly?
 
Old 02-27-2012, 03:57 AM   #3
leon.zcom
LQ Newbie
 
Registered: Apr 2008
Posts: 15

Original Poster
Rep: Reputation: 0
I tired, but it didnot work, i cannot find option 224 in packets which snap by wireshark .

---------- Post added 02-27-12 at 05:58 PM ----------

I tired, but it didnot work, i cannot find option 200 in packets which snap by wireshark .
 
  


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
Delete leases from dhcpd.leases when remove a subnet from dhcpd.conf phongnh Linux - Server 2 10-12-2010 04:49 AM
How to re-invoke dhcpd after changes were made to dhcpd.conf file. Azazwa Linux - Newbie 3 03-30-2009 04:44 AM
/etc/dhcpd.conf or /ltsp/dhcpd.conf ? maxsanders Ubuntu 1 07-07-2007 06:32 AM
dhcpd subnet declaration problems in dhcpd.conf vcrispo Linux - Networking 6 07-15-2005 10:32 AM
dhcpd.master or dhcpd.conf rickg Linux - Networking 0 04-11-2002 03:34 PM

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

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