LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   how to add private options in dhcpd.conf (https://www.linuxquestions.org/questions/linux-server-73/how-to-add-private-options-in-dhcpd-conf-930821/)

leon.zcom 02-23-2012 02:47 AM

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!

bmarx 02-25-2012 12:24 PM

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?

leon.zcom 02-27-2012 03:57 AM

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 .


All times are GMT -5. The time now is 11:48 AM.