LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   How to config dhcpd.conf in RHEL server 6.1 (https://www.linuxquestions.org/questions/linux-server-73/how-to-config-dhcpd-conf-in-rhel-server-6-1-a-913783/)

richard_wu0313 11-16-2011 01:50 AM

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?

chrism01 11-16-2011 07:17 PM

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.


All times are GMT -5. The time now is 03:56 PM.