Feb 02
DHCP is really straight-forward to install if you have an example of the config files. In this case, it’s best to publish them
Hope it helps:
Let’s install DHCP server first:
aptitude install dhcp3-server # this will probably install and fail to start. That's fine, we don't have configs yet
Ok, now it’s time to configure dhcp3-server:
vi /etc/dhcp3/dhcpd.conf
# set the below to your preferred internal (or external) domain name
option domain-name "example.com";
# set this to whatever DNS you want the DHCP server to push to the clients
# as we will setup dns in next step it is wise to set it to this server
option domain-name-servers 192.168.0.1;
# uncomment the following line
authoritative;
# declare the subnet, put this at the very bottom of the file
# you can change the range of the dhcp below as well
subnet 192.168.0.0 netmask 255.255.255.0 {
range 192.168.0.50 192.168.0.200;
option domain-name-servers 192.168.0.1;
option domain-name "internal.example.com";
option routers 192.168.0.1;
option broadcast-address 192.168.0.255;
default-lease-time 600;
max-lease-time 7200;
}
# that's about it in the configuration file for basic DHCP setup
# if you want to do some advanced stuff, the dhcp3.conf file contains
# a huge load of commented out examples you can use, so feel free
# to experiment should you wish to
# now save the file, exit it
vi /etc/default/dhcp3-server
# change the INTERFACES line to point at your internal interface
INTERFACES="eth1"
# save the file and exit it
# perform the below in order to restart the dhcp configuration
/etc/init.d/dhcp3-server restart
# note if you get an error telling you to check syslog, do this:
tail -100 /var/log/syslog |grep dhcpd
# if you receive an error saying "Not configured to listen on any interfaces"
# you should make sure INTERFACES is set and that you don't have any typos
# in the /etc/dhcp3/dhcpd.conf file in the subnet declaration
[...] At this point you might want to also setup DNS and DHCP on your router. To do that, visit the following manuals: DNS Configuration Quick HowTo DHCP Configuration Guide [...]
[...] Install DHCP Server (if you need one) [...]
[...] sysmail_help_configure_sp stored procedure. Like other database mail object, this stored procedureDHCP Configuration Quick HowTo… that's about it in the configuration file for basic DHCP setup # if … below in order to [...]
Real usefull information.
Nice Site.
MySpace…
This post was mentioned on MySpace by Richard Hawkesford….