I want to hand out a user-defined option, 184.
In that option, I want to give out two ip addresses and a 6-byte field
(ip address and then "9*)
I looked at the man pages for dhcp-options and I added the two option
lines below.
It starts up fine without those two "options" lines - so it reads the
subnet and range fine.
(there is a 192.168.0/24 interface on eth1)
subnet 192.168.0.0 netmask 255.255.255.0 {
range 192.168.0.10 192.168.0.30;
option o184 code 299 = string;
option o184 01:04:c0:a8:00:0a:02:04:c0:a8:00:0a:03:04:c0:a8:00 :0a:
04:06:c0:a8:00:38:09:aa;
}
When I comment out the first option line, it gives this error:
/etc/dhcpd.conf line 5: unknown option dhcp.o184
option o184 01:
^
Configuration file errors encountered -- exiting
When I comment out the second line, it gives this error:
/etc/dhcpd.conf line 4: option definitions may not be scoped.
option o184 code
^
Configuration file errors encountered -- exiting
I can't tell from the man pages which line I should be using, or
both. It looks like I just need the second line, but it also appears
that the man pages have a typo, i.e. shouldn't that second line have
"code 195" in it?
Here are the man pages:
DATA STRING
option new-name code new-code = string ;
An option whose type is a data string is essentially just a
collection
of bytes, and can be specified either as quoted text, like
the text
type, or as a list of hexadecimal contents seperated by
colons whose
values must be between 0 and FF. For example:
option sql-identification-token code 195 = string;
option sql-identification-token 17:23:19:a6:42:ea:99:7c:22;
Any suggestions would be appreciated.
|