You are not logged in.

#1 2010-06-02 00:30:30

heathbar5477
Member
Registered: 2010-01-12
Posts: 9

[SOLVED] dhcp server fails to start

I am attempting to setup a dhcp server, nothing fancy, just want people to be able to connect to this computer through ethernet and access samba shares.  I have installed dhcpcd and this is my dhcpd.conf file:

default-lease-time 600;
max-lease-time 7200;

authoritative;

log-facility local7;


subnet 172.16.100.0 netmask 255.255.255.0 {
  range 172.16.100.100 172.16.100.200;
  default-lease-time 600;
  option domain-name-servers 172.16.100.1;
  option domain-name "resnet.luc.edu";
  max-lease-time 7200;
  #option routers rtr-239-32-1.example.org;
}

when I run '/etc/rc.d/dhcpd start'  I get 'Starting DHCP Server   [FAIL]'.  I have even tried running dhcpd with the default dhcpd.conf file and I still get the same error.

Last edited by heathbar5477 (2010-06-02 23:23:28)

Offline

#2 2010-06-02 07:43:53

byte
Member
From: Düsseldorf (DE)
Registered: 2006-05-01
Posts: 2,046

Re: [SOLVED] dhcp server fails to start

You're not running dhcpcd at the same time, right?


1000

Offline

#3 2010-06-02 15:32:51

heathbar5477
Member
Registered: 2010-01-12
Posts: 9

Re: [SOLVED] dhcp server fails to start

no, that was a typo, dhcpcd is not installed on this computer at all.  I have gotten a bit further with configuring this, here is my current dhcpd.conf file:

default-lease-time 600;
max-lease-time 7200;

authoritative;

log-facility local7;


subnet 172.16.0.0 netmask 255.255.255.0 {
  range 172.16.0.100 172.16.0.200;
  default-lease-time 600;
  option domain-name-servers 172.16.100.1;
  option domain-name "resnet.luc.edu";
  max-lease-time 7200;
  #option routers rtr-239-32-1.example.org;
}

and here is the relevant section of my rc.conf file:

eth0="eth0 172.16.0.1 netmask 255.255.255.0 broadcast 172.16.0.255"
eth1="dhcp"
INTERFACES=();

here is the relevant error in /var/log/errors.log:

No subnet declaration for eth0 (192.168.1.0).

Not configured to listen on any interfaces!


I understand that that means I am not configuring it to listen on eth0 for dhcp requests, but I don't quite understand how to configure this properly

Offline

#4 2010-06-02 22:56:17

Physon
Member
Registered: 2010-06-02
Posts: 1

Re: [SOLVED] dhcp server fails to start

Try this:

subnet 172.16.0.0 netmask 255.255.255.0 {
  interface eth0;
  range 172.16.0.100 172.16.0.200;
  default-lease-time 600;
  option domain-name-servers 172.16.100.1;
  option domain-name "resnet.luc.edu";
  max-lease-time 7200;
  #option routers rtr-239-32-1.example.org;
}

Offline

#5 2010-06-02 23:20:47

heathbar5477
Member
Registered: 2010-01-12
Posts: 9

Re: [SOLVED] dhcp server fails to start

I eventually found this on some forum somewhere and this did help, thank you.  has been solved now.

Offline

Board footer

Powered by FluxBB