I have been trying to setup dchp3 and im at wits end!
I am running the latest build of ubuntu - fresh install... all i have done is literally apt-get install dhcp3-server!
So this is what i have done configuration-wise:
Edit /etc/network/interfaces config file for static IP
Code:
1.auto wlan0
2.iface wlan0 inet static
3.address 192.168.0.100
4.netmask 255.255.255.0
5.network 192.168.0.0
6.broadcast 192.168.0.255
7.gateway 192.168.0.1
Edit /etc/dhcp3/dhcpd.conf
Code:
option domain-name-servers 145.253.2.75, 193.174.32.18;
default-lease-time 86400;
max-lease-time 604800;
authoritative;
subnet 192.168.0.0 netmask 255.255.255.0 {
range 192.168.0.200 192.168.0.229;
option subnet-mask 255.255.255.0;
option broadcast-address 192.168.0.255;
option routers 192.168.0.1;
}
add INTERFACES=”wlan0″ to /etc/defaults/dhcp3-server
run /etc/init.d/dhcp3-server start (or restart... both have the same result)
Code:
root@ruddyrum:/home/ruddyrum# /etc/init.d/dhcp3-server restart
Stopping DHCP server: dhcpd3 failed!
Starting DHCP server: dhcpd3* check syslog for diagnostics.
failed!
root@ruddyrum:/home/ruddyrum# tail -f /var/log/syslog
Aug 7 16:21:10 dhcpd: Wrote 0 leases to leases file.
Aug 7 16:21:10 dhcpd:
Aug 7 16:21:10 dhcpd: No subnet declaration for wlan0 (0.0.0.0).
Aug 7 16:21:10 dhcpd: ** Ignoring requests on wlan0. If this is not what
Aug 7 16:21:10 dhcpd: you want, please write a subnet declaration
Aug 7 16:21:10 dhcpd: in your dhcpd.conf file for the network segment
Aug 7 16:21:10 dhcpd: to which interface wlan0 is attached. **
Aug 7 16:21:10 dhcpd:
Aug 7 16:21:10 dhcpd:
Aug 7 16:21:10 dhcpd: Not configured to listen on any interfaces!
^C
I read that if the server still has issues starting up, then one should remove the following from the /etc/init.d/dhcp3-server start script
Code:
1.# Allow ltsp to override
2.if [ -f /etc/ltsp/dhcpd.conf ]; then
3.CONFIG_FILE=/etc/ltsp/dhcpd.conf
4.break
5.fi
However this still does not help me as the server still fails to start! any advice is much appreciated!