Hello, I'm attempting to run a DHCP server on my home network to enable PXE booting for ethernet clients, but I'm having quite a few issues getting it all up and running. I'm not entirely sure what is wrong, but I keep encountering errors in syslog as follows:
I am attempting to set this server up on a box with one ethernet interface (eth0), and a static IP address of 192.168.1.3. I have set INTERFACES="eth0" in /etc/default/dhcp3-server. Here is all the information I can provide:Code:Feb 27 02:26:46 servnerr-1 dhcpd: Wrote 0 leases to leases file. Feb 27 02:26:46 servnerr-1 dhcpd: Feb 27 02:26:46 servnerr-1 dhcpd: No subnet declaration for eth0 (192.168.1.3). Feb 27 02:26:46 servnerr-1 dhcpd: ** Ignoring requests on eth0. If this is not what Feb 27 02:26:46 servnerr-1 dhcpd: you want, please write a subnet declaration Feb 27 02:26:46 servnerr-1 dhcpd: in your dhcpd.conf file for the network segment Feb 27 02:26:46 servnerr-1 dhcpd: to which interface eth0 is attached. ** Feb 27 02:26:46 servnerr-1 dhcpd: Feb 27 02:26:46 servnerr-1 dhcpd: Feb 27 02:26:46 servnerr-1 dhcpd: Not configured to listen on any interfaces!
dhcpd.conf:
ifconfig information for eth0:Code:authoritative; default-lease-time 3600; max-lease-time 7200; option subnet-mask 255.255.255.0; option broadcast-address 192.168.1.255; option routers 192.168.1.3; option domain-name-servers 192.168.1.1; option time-offset -18000; subnet 192.168.1.0 netmask 255.255.255.0 { range 192.168.1.100 192.168.1.150; range 192.168.1.200 192.168.1.254; } option netbios-name-servers 192.168.1.3;
/etc/network/interfaces:Code:eth0 Link encap:Ethernet HWaddr 00:0a:e4:8b:e1:a2 inet addr:192.168.1.3 Bcast:192.168.1.255 Mask:255.255.254.0 inet6 addr: fe80::20a:e4ff:fe8b:e1a2/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:30004274 errors:0 dropped:0 overruns:0 frame:0 TX packets:23587990 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:875400748 (875.4 MB) TX bytes:4128397250 (4.1 GB) Interrupt:16
Networking is not exactly my strong suit, but I would like to get this up and running if at all possible. I will continue to research myself, but any information that could be helpful would be very much appreciated. Thank you!Code:auto eth0 iface eth0 inet static address 192.168.1.3 netmask 255.255.254.0 network 192.168.1.0 broadcast 192.168.1.255 gateway 192.168.1.1



Adv Reply


Bookmarks