** Moved from sparc@ to misc@; reply-to's set **

On 2012/11/13 23:59, Kaya Saman wrote:
> Hi,
> 
> I'm trying to migrate the dhcp configuration from within a Cisco
> router to OpenBSD. So far everything has gone really smoothly and
> basic things are working fine.
> 
> What I'm currently quite stuck with however is vendor specific option
> codes.... I have a few Polycom IP phones which I used a handful of
> codes with:
> 
> 4, 7, 42, 66, 150, 151, 160
> 
> How do I add these into the dhcpd.conf file?

This isn't listed anywhere other than the source code,
/usr/src/usr.sbin/dhcpd/tables.c, but these are:-

4       time-servers
7       log-servers
42      ntp-servers
66      tftp-server-name
150     voip-configuration-server
151     option-151
160     option-160

dhcp-options(5) lists the names, but not the numbers.

> Currently reading through the "dhcp-options" man page it suggests to add:
> 
> option option-66 <HEX of IP address separated by :>

The option-XX notation is only available for options which don't
already have a name.

Also note tftp-server-name is a text string not a hex IP address.


> Unfortunately the syntax was wrong and produced an error.
> 
> 
> How would I be able to add for example:
> 
> option 66 ip 10.10.10.10
> 
> ??
> 
> 
> So far I specified:
> 
> subnet 10.10.10.0 netmask 255.255.255.192{
>                     option routers 10.10.10.1;
>                     range 10.10.10.2 10.10.10.62;
> }
> 
> 
> which is all fine bar the options..... unfortunately the web wasn't
> any help as some places claimed to add:
> 
> option option-66 string;
> 
> to the top of the file then add the rest in the "pool" this however
> also produced an error so I am out of ideas.
> 
> 
> 
> Regards,
> 
> Kaya

Reply via email to