You are not logged in.
Pages: 1
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
You're not running dhcpcd at the same time, right?
1000
Offline
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
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
I eventually found this on some forum somewhere and this did help, thank you. has been solved now.
Offline
Pages: 1