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

Assistance with DHCP server setup.

        Hi all.  The last few days I've attempted to setup a DHCP server
on our small SOHO network, and went round in a big circle to where I

        What I would like to achieve is:

           /-> eth0 192.168.1.? -> DSL router -> internet.
Server     \
(dell.local)\->eth1 -> LAN 

        To begin with the Linksys router was serving addresses so I
turned this function off.  From the sample .conf, various howtos and
posts to this list I came up with a very simple dhcpd.conf which could
be added to later as extra functionality is needed, as follows:

[root dell ~]# cat /etc/dhcpd.conf
#Sample /etc/dhcpd.conf
# (add your comments here)
default−lease−time 600;
max−lease−time 7200;
option subnet−mask;
option broadcast−address;
option routers;
#option domain−name−servers,;
#option domain−name "mydomain.org";
subnet netmask {

        host dell.local {
                hardware ethernet 00:1F:1F:09:38:A2;

[root dell ~]#

        The first problem is, should eth0 take an address via dhcp or be
set one? Should it be bound to a MAC address in the dhcpd.conf?  Does
this file look okay?

        The second situation is that:

[root dell ~]# service dhcpd start
Starting dhcpd:                                            [FAILED]
[root dell ~]#

with a Selinux denial:

 SELinux is preventing dhcpd (dhcpd_t) "read write" unconfined_t. 

with SEtroubleshooter giving no suggestions for a fix.  How should I
progress here?

        I have set things back to the way they were after install ( I
think).  The /var/lib/dhcpd.leases file exists.  Ports 67 & 68 are
allowed through the firewall and all eth* devices are trusted (using
system-config-firewall).  Any advice will be most thankfully welcomed.

Simon Slater
Registered Linux User #463789. Be counted at: http://counter.li.org/

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