Debian 8 DHCP Server error "Failed to start LSB: DHCP Server

Kernels & Hardware, configuring network, installing services

Debian 8 DHCP Server error "Failed to start LSB: DHCP Server

Postby BorrowedByte » 2017-10-23 09:06

Hello

I installed Debian 8 on Virtual Box and also updated and upgraded, but when I install DHCP and edited the files with my config, when i try to do a "service isc-dhcp-server restart" i got this message "Failed to start LSB: DHCP Server".
I had tried my config and also diferent ones from tutorials on youtube, and keeps doing the same.

What could be the problem please? Thanks in advance for your help.
BorrowedByte
 
Posts: 4
Joined: 2017-10-23 08:57

Re: Debian 8 DHCP Server error "Failed to start LSB: DHCP Se

Postby reinob » 2017-10-23 11:26

BorrowedByte wrote:Hello

I installed Debian 8 on Virtual Box and also updated and upgraded, but when I install DHCP and edited the files with my config, when i try to do a "service isc-dhcp-server restart" i got this message "Failed to start LSB: DHCP Server".
I had tried my config and also diferent ones from tutorials on youtube, and keeps doing the same.

What could be the problem please? Thanks in advance for your help.


Well, for starters, check the relevant logs and post here whatever may look relevant.
Then we take it from there..
reinob
 
Posts: 520
Joined: 2014-06-30 11:42

Re: Debian 8 DHCP Server error "Failed to start LSB: DHCP Se

Postby BorrowedByte » 2017-10-23 12:36

Image

Image

Image

Image

So far this is my config, but still not working
Any help will be great, its driving me mad allready....
BorrowedByte
 
Posts: 4
Joined: 2017-10-23 08:57

Re: Debian 8 DHCP Server error "Failed to start LSB: DHCP Se

Postby Woefdram » 2017-10-24 03:19

It seems to me that you're trying to run a DHCP server on an interface that is configurerd with DHCP. You have mixed up the configuration of your network card, as defined in /etc/network/interfaces.

You have

Code: Select all
iface eth0 inet dhcp
  address ..
  netmask ..


You should replace the "dhcp" with "static" (and restart the interface).

My guess is that the dhcp-client takes the interface, so that the dhcp-server can not.
Woefdram
 
Posts: 6
Joined: 2017-10-24 00:17

Re: Debian 8 DHCP Server error "Failed to start LSB: DHCP Se

Postby BorrowedByte » 2017-10-24 09:49

Thanks a lot Woefdram if was that and also a bug generated with the "nano" when i configured de dhcpd.conf i created some conflicts, i deleted the file and created a new one, but this time i used "vi" instead of "nano" to add my configuration, and it worked fine.

Again thanks a lot for your help as been very helpful.
BorrowedByte
 
Posts: 4
Joined: 2017-10-23 08:57

Re: Debian 8 DHCP Server error "Failed to start LSB: DHCP Se

Postby debiman » 2017-10-24 14:58

in addition to everything else, you might want to be using systemd commands (systemctl start xxxx.service in this case) instead.
jessie already made the switch to systemd. the old sysvinit commands still work, though.
User avatar
debiman
 
Posts: 1528
Joined: 2013-03-12 07:18

Re: Debian 8 DHCP Server error "Failed to start LSB: DHCP Se

Postby BorrowedByte » 2017-10-26 10:57

debiman wrote:in addition to everything else, you might want to be using systemd commands (systemctl start xxxx.service in this case) instead.
jessie already made the switch to systemd. the old sysvinit commands still work, though.


Thanks a lot for your hep debiman, very appreciated :)
BorrowedByte
 
Posts: 4
Joined: 2017-10-23 08:57


Return to System configuration

Who is online

Users browsing this forum: No registered users and 8 guests

fashionable