Subject: Re: dhcp server setup
To: Chan Yiu Wah <c5666305@hkstar.com>
From: Rene Hexel <rh@idle.trapdoor.vip.at>
List: current-users
Date: 12/01/1999 09:00:06
Chan Yiu Wah wrote:
> I would like to konw if anyone had successfully setup the dhcp server that
> can allow Win98 to use. I had checked the FAQ and didn't find document on
> the setup of dhcp server. Can you help ? Thanks.
It's quite easy to set up a dhcp server. Just create an
/etc/dhcpd.conf like the following one. Then change 'dhcpd=NO' to
'dhcpd=YES' in your /etc/rc.conf and reboot, that's it. Here is an
example dhcpd.conf for 192.168.x.x adresses:
# option definitions common to all supported networks...
option domain-name "mydomain.com";
option domain-name-servers 192.168.0.2, 192.168.0.1;
option subnet-mask 255.255.0.0;
default-lease-time 86400;
max-lease-time 2592000;
#
# give all hosts dynamic addresses
#
subnet 192.168.0.0 netmask 255.255.0.0 {
range dynamic-bootp 192.168.1.1 192.168.1.254;
option broadcast-address 192.168.255.255;
option routers 192.168.0.1;
}
#
# set the printer to a fixed address
#
host printer01 {
hardware ethernet 08:00:09:64:2f:e1;
fixed-address 192.168.2.1;
option routers 192.168.0.2;
}
Hope this helps.
Cheers
,
Rene