This one is not a readme, it's just an answer to a question on the news
group from a guy that couldn't make it work.

but, it should work just buy editing the ini file.

Thomas.

-- snip --

From: "Slim" <slimdude@canada.com>
Subject: Re: DHCPD problem...
Newsgroups: floppyfw.general
Date: Fri, 22 Sep 2000 07:44:27 -0400
Organization: Hyssing.net

Stress? On a small lan like mine there won't be many renewal requests. I
just put the bz2 file in packages and added this code to Network.ini and all
works fine under 1.0.5 or 1.1.1:

# DHCP server for the inside network
#

. /etc/config

#
# DHCPd Configuration
# The start & end IP's of the dynamicly allocated range
#

INSIDE_NET=192.168.1.0 # Network address to listen on
DHCPD_FIRST_IP=192.168.1.100 # start of dynamic range
DHCPD_LAST_IP=192.168.1.200 # end of dynamic range
LEASE_TIME=604800 # default lease time (604800 = one week)

#
# Build the config file
#

echo "default-lease-time ${LEASE_TIME};" >> /etc/dhcpd.conf
echo "option domain-name \"${DOMAIN}\";" >> /etc/dhcpd.conf
echo "option subnet-mask ${INSIDE_NETMASK};" >> /etc/dhcpd.conf
echo "option routers ${INSIDE_IP};" >> /etc/dhcpd.conf
echo "option domain-name-servers ${NAME_SERVER_IP1}, ${NAME_SERVER_IP2};" >>
/etc/dhcpd.conf
#echo "option domain-name-servers 24.2.9.33, 24.2.9.35;" >> /etc/dhcpd.conf

echo "subnet ${INSIDE_NET} netmask ${INSIDE_NETMASK} {" >> /etc/dhcpd.conf
echo "  range ${DHCPD_FIRST_IP} ${DHCPD_LAST_IP};" >> /etc/dhcpd.conf
echo "}" >> /etc/dhcpd.conf

# Add special entries here
#
#echo "host jiffy { hardware ethernet 00:80:C8:DE:9A:EA; fixed-address
192.168.1.1; }" >> /etc/dhcpd.conf
echo "host jiffy { hardware ethernet 00:00:92:91:69:71; fixed-address
192.168.1.1; }" >> /etc/dhcpd.conf

# Create the empty leases database
#
echo -n > /etc/dhcpd.leases

# Run the server in the inside lan
#
/bin/dhcpd ${INSIDE_DEV}

Hope this helps,

--
Slim
The NTmologist

