Fedora Linux Support Community & Resources Center
  #1  
Old 4th February 2010, 11:43 PM
megaton Offline
Registered User
 
Join Date: Feb 2010
Posts: 3
windows_vistafirefox
DHCP wont start on f12

DHCP server on F12 wont to start, recieving "semicolon expected." errors everytime
have to start in on eth0 alias
my /etc/dhcp/dhcpd.conf
============================
DHCPARGS="eth0:0"
ddns-update-style interim;
ignore client-updates;
authoritative;

subnet 192.168.235.0 netmask 255.255.255.0 {
range 192.168.235.100 192.168.235.200;
option domain-name "123.net";
option domain-name-servers 192.168.235.1;
option broadcast-address 192.168.235.255;
option subnet-mask 255.255.255.0;
option routers 192.168.235.1;
option ip-forwarding off;
default-lease-time 32400;
max-lease-time 194400;
}
============================

and message log

Feb 5 01:24:14 asd dhcpd: Internet Systems Consortium DHCP Server 4.1.0p1
Feb 5 01:24:14 asd dhcpd: Copyright 2004-2009 Internet Systems Consortium.
Feb 5 01:24:14 asd dhcpd: All rights reserved.
Feb 5 01:24:14 asd dhcpd: For info, please visit http://www.isc.org/sw/dhcp/
Feb 5 01:24:14 asd dhcpd: /etc/dhcp/dhcpd.conf line 2: semicolon expected.
Feb 5 01:24:14 asd dhcpd: ddns-update-style
Feb 5 01:24:14 asd dhcpd: ^
Feb 5 01:24:14 asd dhcpd: /etc/dhcp/dhcpd.conf line 8: range declaration not allowed here.
Feb 5 01:24:14 asd dhcpd: range
Feb 5 01:24:14 asd dhcpd: ^
Feb 5 01:24:14 asd dhcpd: /etc/dhcp/dhcpd.conf line 16: expecting a declaration
Feb 5 01:24:14 asd dhcpd: max-lease-time 194400;
Feb 5 01:24:14 asd dhcpd: ^
Feb 5 01:24:14 asd dhcpd: Configuration file errors encountered -- exiting
Feb 5 01:24:14 asd dhcpd:
Feb 5 01:24:14 asd dhcpd: This version of ISC DHCP is based on the release available
Feb 5 01:24:14 asd dhcpd: on ftp.isc.org. Features have been added and other changes
Feb 5 01:24:14 asd dhcpd: have been made to the base software release in order to make
Feb 5 01:24:14 asd dhcpd: it work better with this distribution.
Feb 5 01:24:14 asd dhcpd:
Feb 5 01:24:14 asd dhcpd: Please report for this software via the Red Hat Bugzilla site:
Feb 5 01:24:14 asd dhcpd: http://bugzilla.redhat.com
Feb 5 01:24:14 asd dhcpd:
Feb 5 01:24:14 asd dhcpd: exiting.

if i comment firts 3 lines, than semicolon expected." errors will point again from next uncomented line.
is it a bug or i`m doing something wrong

Last edited by megaton; 5th February 2010 at 02:43 AM.
Reply With Quote
  #2  
Old 5th February 2010, 01:40 AM
jenaniston's Avatar
jenaniston Offline
Registered User
 
Join Date: Dec 2009
Location: Malibu, California
Posts: 318
linuxfedorafirefox
Quote:
Originally Posted by megaton View Post
DHCP server on F12 wont to start, recieving "semicolon expected." errors everytime
have to start in on eth0 alias
my /etc/dhcp/dhcpd.conf
============================

is it a bug or i`m doing something wrong
Guess what . . . not a bug . . . you are missing a semicolon on some line.

I run the dhcpd server everyday on F12 KDE to PXE boot my client laptop -
I also have used with the dhcp server on F11 gnome.

So, try to find the semicolon needed on some line before the line of the error because that part can be inaccurate.
Code:
[root@localhost ~]# cd /etc/dhcp/
[root@localhost dhcp]# vi dhcpd.conf

Once fixed just run
Code:
[root@localhost ~]# dhcpd
or
Code:
[root@localhost ~]# service dhcpd start
It helps if you vi edit the /etc/dhcp/dhcpd.conf file in a seperate terminal window and just go back and forth -
getting the errors don't hurt anything - it just won't start the dhcp server - and will just give another error until all are correct if there are several.

The semicolons ; are little buggas - t'b'sure.

Good luck
Reply With Quote
  #3  
Old 5th February 2010, 02:16 AM
JEO Offline
Registered User
 
Join Date: Jan 2006
Posts: 2,769
linuxfedorafirefox
"subnet 192.168.235.0 netmask 255.255.255.0 {"

Try changing the last character of this line to a semicolon or maybe it needs a matching }
Reply With Quote
  #4  
Old 5th February 2010, 02:45 AM
megaton Offline
Registered User
 
Join Date: Feb 2010
Posts: 3
windows_vistafirefox
line 2, 3 and 4 have semicolon, but i got errors anyway, if i comment line 2 than line 3 will come with error in log. any ideas?
Reply With Quote
  #5  
Old 5th February 2010, 02:48 AM
sonoran's Avatar
sonoran Offline
Registered User
 
Join Date: May 2005
Location: Sonoran Desert
Posts: 2,099
linuxmozilla
Why not line 1?
DHCPARGS="eth0:0";
Reply With Quote
  #6  
Old 5th February 2010, 03:09 AM
megaton Offline
Registered User
 
Join Date: Feb 2010
Posts: 3
windows_vistafirefox
no i have another error (
my dhcpd.conf

Code:
interface eth0:0;
ddns-update-style none;
ignore client-updates;
authoritative;

option domain-name "123.net";
option domain-name-servers 192.168.235.1;
option subnet-mask 255.255.255.0;
option broadcast-address 192.168.235.255;
option routers 192.168.235.1;
option ip-forwarding off;

default-lease-time 32400; # 9 hours
max-lease-time 194400; # 54 hours, 6 working days

subnet 192.168.235.0 netmask 255.255.255.0 {
range 192.168.235.75 192.168.235.99;
range 192.168.235.110 192.168.235.250;
}
and error is
Code:
Feb  5 05:20:59 asd dhcpd: /etc/dhcp/dhcpd.conf line 0: expecting a parameter or declaration
Feb  5 05:20:59 asd dhcpd:
Feb  5 05:20:59 asd dhcpd: ^
Feb  5 05:20:59 asd dhcpd: Configuration file errors encountered -- exiting
Feb  5 05:20:59 asd dhcpd:

Last edited by megaton; 7th February 2010 at 02:15 AM.
Reply With Quote
  #7  
Old 5th February 2010, 03:29 AM
sonoran's Avatar
sonoran Offline
Registered User
 
Join Date: May 2005
Location: Sonoran Desert
Posts: 2,099
linuxmozilla
in line 3 - should it be "deny client-updates" instead of "ignore client-updates"?
Reply With Quote
Reply

Tags
dhcp, f12, start

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
gnome session wont start - error /ust/bin/open-box-kde-session :line 12: exec: start LithiumKid1976 Using Fedora 0 29th December 2007 09:33 PM
FC6 wont start after FAQ. Synlaw Using Fedora 2 14th April 2007 06:55 AM
Cannot start dhcp anilbh Servers & Networking 14 27th July 2006 02:52 AM
Anaconda dont start in graph mode! First boot wont start after installation in text m dml Installation and Live Media 4 12th February 2006 11:21 PM
FC4 wont get DHCP details Trunkz EOL (End Of Life) Versions 1 15th September 2005 07:52 PM


Current GMT-time: 01:51 (Monday, 20-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat