dhcp3-server does not auto-start

KobusDJ

Well-Known Member
Joined
Oct 9, 2008
Messages
155
Reaction score
0
Location
Gaborone
I have an Ubuntu 9.04 PC running LTSP with a second network interface for the client sub network. DHCP is configured to manage the network settings for the clients on this interface.

If I start DHCP manually using '/etc/init.d/dhcp3-server start' it starts up and the client PCs can find the server and connect. No problem.

Everything seems to be in place in the init.d as well as in the rc3.d directories for it to start properly. I did change the statup (boot) order, as the DHCP started before the Network interfaces. Problem not solved.

I installed BUM (Boot Up Manager). It lists the DHCP server as a service, but not running. Starting it with this GUI has the same effect as a manual start.

Where else can I look ????
 
sudo apt-get install sysv-rc-conf

Install that + dependencies, then run sudo sysv-rc-conf.

You'll want an [X] in column 3 (for runlevel 3).

Otherwise you could go the manual route, and create a link in /etc/rc3.d called S??dhcp3-server pointing to the /etc/init.d/dhcp3-server script. The ?? would be a sequence number where you would want the script to start. Check the other files in the dir. (I'm not that clued up with the sequence number, maybe someone with more knowledge could input.. I'm just guessing at this point :p)
 
Otherwise you could go the manual route, and create a link in /etc/rc3.d called S??dhcp3-server pointing to the /etc/init.d/dhcp3-server script. The ?? would be a sequence number where you would want the script to start. Check the other files in the dir. (I'm not that clued up with the sequence number, maybe someone with more knowledge could input.. I'm just guessing at this point :p)

It would be easier to use update-rc.d
 
Drake2007, there is no sign of the dhcp3 in there, not success nor failure.

thisgeek, the /etc/rc0.d to rc6.d as well as rcS.d is there. I moved the S40dhcp3-server up to S89dhcd3-server to get it to start after the network interfaces. (S50). It didn't help.

Edit: I have this....
$#%^%$#%^@edubuntu:/etc$ ls -l /etc/rc?.d/*dhcp3-server
lrwxrwxrwx 1 root root 22 2009-10-26 12:28 /etc/rc0.d/K10dhcp3-server -> ../init.d/dhcp3-server
lrwxrwxrwx 1 root root 22 2009-10-26 12:28 /etc/rc1.d/K10dhcp3-server -> ../init.d/dhcp3-server
lrwxrwxrwx 1 root root 22 2009-10-26 12:09 /etc/rc2.d/S89dhcp3-server -> ../init.d/dhcp3-server
lrwxrwxrwx 1 root root 22 2009-10-26 12:09 /etc/rc3.d/S89dhcp3-server -> ../init.d/dhcp3-server
lrwxrwxrwx 1 root root 22 2009-10-26 12:09 /etc/rc4.d/S89dhcp3-server -> ../init.d/dhcp3-server
lrwxrwxrwx 1 root root 22 2009-10-26 12:09 /etc/rc5.d/S89dhcp3-server -> ../init.d/dhcp3-server
lrwxrwxrwx 1 root root 22 2009-10-26 12:28 /etc/rc6.d/K10dhcp3-server -> ../init.d/dhcp3-server
 
Last edited:
It seems your links are correct but just for the sake of it try deleting them and recreating them with update-rc.d:

update-rc.d dhcp3-server remove
update-rc.d dhcp3-server defaults

Otherwise, what are the permissions of your dhcpd.conf set to and what is in /etc/default/dhcp3-server ?
 
Last edited:
I did the remove and reset. Everything is back, but at level S20. I still experience the non- auto start

Here's the permission settings
Code:
xxxxx@edubuntu:/etc/ltsp$ ls -l
total 8
-rw-r--r-- 1 root root 619 2009-10-13 15:09 dhcpd.conf


The /etc/default/dhcp3-server file....

Code:
  GNU nano 2.0.9                                       File: dhcp3-server

# Defaults for dhcp initscript
# sourced by /etc/init.d/dhcp
# installed at /etc/default/dhcp3-server by the maintainer scripts

#
# This is a POSIX shell fragment
#

# On what interfaces should the DHCP server (dhcpd) serve DHCP requests?
#       Separate multiple interfaces with spaces, e.g. "eth0 eth1".
INTERFACES="eth0"
 
Thanks icyrus.

Do I understand this correct? I need to assign a static address to my LAN (eth1) interface and remove networkmanager. This may resolve the DHCP auto start issue on eth0 - the one for the LTSP clients.

Will give it a try tomorrow.
 
I configured the /etc/network/interfaces file to look like this....

Code:
  GNU nano 2.0.9                                       File: interfaces

auto lo
   iface lo inet loopback

auto eth1
   iface eth1 inet dhcp

auto eth0
iface eth0 inet static
   address 192.168.10.1
   network 192.168.10.0
   netmask 255.255.255.0
   broadcast 192.168.10.255
   gateway 192.168.0.10

Removed Network Manager, and this is what I get after restart.

Code:
Last login: Tue Oct 27 08:24:09 2009 from 192.168.0.30
@#%@@edubuntu:~$ sudo /etc/init.d/dhcp3-server status
[sudo] password for ^$^#@#$:
Status of DHCP server: dhcpd3 is running.

Thanks. Problem solved.
 
Cool.

It is the norm to give servers a static IP and workstations dynamic IP's.

Good to hear you've resolved your issue :)

Enjoy! :D
 
Top
Sign up to the MyBroadband newsletter
X