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

dhcpd,conf error - dhpcd won't start



My /etc/dhcpd.conf is as follows:

--------------------------------
# dhcpd.conf
#
subnet 192.168.0.20  netmask 255.255.255.0 {}
-------------------------------------

This produces the following error in syslog:

------------------------------------------------------
No subnet declaration for eth0 (192.168.0.20).
Jan 14 19:43:42 localhost dhcpd: Please write a subnet declaration in your dhcpd.conf file for the
Jan 14 19:43:42 localhost dhcpd: network segment to which interface eth0 is attached.
Jan 14 19:43:42 localhost dhcpd: exiting.
-------------------------------------------------------

ifconfig -a shows the following:

------------------------------------------------------------------
dummy0    Link encap:Ethernet  HWaddr 00:00:00:00:00:00  
          BROADCAST NOARP  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)

eth0      Link encap:Ethernet  HWaddr 00:0B:2B:02:32:FB  
          inet addr:192.168.0.20  Bcast:192.168.0.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:333 errors:0 dropped:0 overruns:0 frame:0
          TX packets:372 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:111234 (108.6 KiB)  TX bytes:44201 (43.1 KiB)
          Interrupt:11 

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:2 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:100 (100.0 b)  TX bytes:100 (100.0 b)
------------------------------------------------------------------


Any ideas what should be in the conf file please?

AC

-- 
ac@acampbell.org.uk    ||  http://www.acampbell.org.uk
using Linux GNU/Debian ||  for book reviews, electronic 
Windows-free zone      ||  books and skeptical articles



Reply to: