Re: DHCP assistance required.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxx> 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@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@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@xxxxxxxxxx
> To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
> Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines
>

-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux