[Dnsmasq-discuss] Translating dhcpd.conf file
Simon Kelley
simon at thekelleys.org.uk
Wed Apr 9 16:56:37 BST 2008
n22e113 wrote:
> Running Leaf Bering 3.0.x with Dnsmasq version 2.38 (C)2000-2007 Simon
> Kelley
> Compile time options IPv6 GNU-getopt no-ISC-leasefile no-DBus no-I18N
> no-TFTP
>
> Hi, I am having trouble translating the following:
>
> # /etc/dhcpd.conf
> # Set option 66 as a string variable & defined later
> option boot-server code 66 = string;
> ddns-update-style ad-hoc; subnet 192.168.200.0 netmask 255.255.255.0 {
> option routers 192.168.200.254;
> option subnet-mask 255.255.255.0;
> option domain-name "asterisk.local";
> option domain-name-servers 192.168.200.254;
> option time-offset -28800; # Pacific Standard Time, -28000 PST, 3600/hr
> option ntp-servers clock.redhat.com;
>
> #Polycom phones configuration starts here
> group {
> option boot-server "ftp://polycom:12345@192.168.200.100";
>
> host x150 {
> hardware ethernet 00:30:18:AD:9D:E2; #MAC address of phone
> fixed-address 192.168.200.101; #IP you want assigned to the phone
> }
> } # end of group
> } # end of subnet block
>
> So far, I have:
>
> bogus-priv #Someone mentioned this is needed, not sure?
> domain=asterisk.local
> dhcp-option=42,192.168.200.100
> dhcp-option=66,"192.168.200.100" # Doesn't work!?
> dhcp-host=00:30:18:AD:9D:E2,192.168.200.101,infinite
>
> Q1. How do I translate the two lines: 1. option boot-server
> "ftp://polycom:12345@192.168.200.100";?
> 2. option time-offset -28800;?
>
> Thanks,
> Kwon
>
>
The first one can be done like this:
dhcp-boot="","ftp://polycom:12345@192.168.200.100"
and the second
dhcp-option=2,-28800
Cheers,
Simon.
> _______________________________________________
> Dnsmasq-discuss mailing list
> Dnsmasq-discuss at lists.thekelleys.org.uk
> http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
>
More information about the Dnsmasq-discuss
mailing list