Well I managed to configure my first dhcp server.
In slackware the first nic has to be configured this way on /etc/rc.d/rc.inet1.conf
# Config information for eth0:
IPADDR[0]="192.168.1.1"
NETMASK[0]="255.255.255.224"
USE_DHCP[0]=""
DHCP_HOSTNAME[0]="term1"
Looks like dhcp daemon doesnt like 0's on the nic static ip address. And
netmask need to be specify as 224 on the last value in order for dhcpd
to recognize ip range as 24 bit <-- My guess| Other wise dhcpd will
complain about -range combination incorrect - or No subnetmask declaration
on eht0
And here is the configuration for dhcpd /etc/dhcpd.conf
Code:
# dhcpd.conf
#
# Configuration file for ISC dhcpd (see 'man dhcpd.conf')
#
ddns-update-style none;
# ignore client-updates;
lease-file-name "/var/state/dhcp/dhcpd.leases";
authoritative;
option domain-name "gateway.2wire.net";
option domain-name-servers 192.168.1.1;
default-lease-time 86400; # 24 hours
max-lease-time 172800; # 48 hours
subnet 192.168.1.0 netmask 255.255.255.0 {
option routers 172.16.1.37;
option subnet-mask 255.255.255.0;
option broadcast-address 192.168.1.31;
range 192.168.1.10 192.168.1.30;
host portable {
hardware ethernet xx:xx:xx:xx:xx:xx;
fixed-address 192.168.1.1;
}
}
Any suggestions, clarifications, observations are very welcomed.
-West