DHCP assistance required.

picsfoo picsfoo at gmail.com
Tue Feb 17 07:57:42 UTC 2009


Hi Simon,

The same config works fine for me. I use

default-lease-time 3000;
max-lease-time 3000;

What is the version of dhcp you are using?

--
picsfoo
my travel-log : http://picsfoo.blogspot.com/


On Tue, Feb 17, 2009 at 11:26 AM, Simon Slater <pyevet at iinet.net.au> wrote:
>        G'day all,
>                I'm just starting to get to know dhcp and have got stuck very early on
> with the dhcp parser rejecting dhcpd.conf as shown below:
>
> Feb 17 16:46:36 dell dhcpd: /etc/dhcpd.conf line 4: expecting a
> parameter or declaration
> Feb 17 16:46:36 dell dhcpd: default-lease-time 600;
> Feb 17 16:46:36 dell dhcpd:                        ^
>
> The dhcpd.conf file is very basic to begin with:
>
> [root at dell network-scripts]# cat /etc/dhcpd.conf
> #Sample /etc/dhcpd.conf
> # (add your comments here)
> ddns-update-style none;
> default-lease-time 600;
> max-lease-time 7200;
> #option subnet-mask 255.255.255.0;
> #option broadcast-address 192.168.1.255;
> option routers 192.168.1.254;
> #option domain-name-servers 192.168.1.1, 192.168.1.2;
> #option domain-name "mydomain.org";
> authoritative;
> subnet 192.168.1.0 netmask 255.255.255.0 {
> range 192.168.1.100 192.168.1.199;
> }
> [root at dell network-scripts]#
>
>        All the examples I can find have a similar line for default lease time
> (line 4 here), but the parser seems to want more.  There is nothing
> after the ";" so what do I need?
>
> --
> Regards,
> Simon Slater
> Registered Linux User #463789. Be counted at: http://counter.li.org/
>
> --
> fedora-list mailing list
> fedora-list at redhat.com
> To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
> Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines
>




More information about the fedora-list mailing list