LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 11-16-2011, 01:50 AM   #1
richard_wu0313
LQ Newbie
 
Registered: May 2011
Posts: 10

Rep: Reputation: 0
How to config dhcpd.conf in RHEL server 6.1


Hi All,
i want to add some if else sentence in dhcpd.conf, but dhcpd failed to start, and report error " else ", could sentence like "if else" be used in dhcpd.conf?
 
Old 11-16-2011, 07:17 PM   #2
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,363

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
It would be good to see your conf file and the exact error msg. This page goes through all the options pretty thoroughly http://linux.die.net/man/5/dhcpd.conf.
You can use 'match if' ... I don't think(?) there's an else clause, I think you just keep using 'match if' until it matches (like a 'switch' statement) or hits last/default block.
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
"File Name" in dhcpd.conf in rhel rmugunthan Red Hat 3 04-12-2010 11:52 AM
Adding WINS Server information to dhcpd.conf pmcdaid Linux - Networking 3 08-19-2009 04:24 AM
sshd, dhcpd failed during update and corrupt all my conf RHEL 4, OS die norainib Linux - Server 1 06-26-2009 01:16 PM
How to re-invoke dhcpd after changes were made to dhcpd.conf file. Azazwa Linux - Newbie 3 03-30-2009 04:44 AM
dhcpd subnet declaration problems in dhcpd.conf vcrispo Linux - Networking 6 07-15-2005 10:32 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 12:35 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration