This section is an example of a DHCP you can use at home or in a small
business network
DHCP stands for Dynamic Host Configuration Protocol. What it really is, is a system for assigning ip addressing to clients who request it upon startup. Below is a sample script for a dhcp.conf under linux. You need to make sure that the dhcpd rpm is installed, then copy its example found in /usr/doc/dhcp. Or just type touch /etc/dhcpd.conf to create the file and then insert the text I have written below. The options are fairly self explainatory and will make a tcpip range on 192.168.5 through .20, if it seems confusing just make sure and read the documention for dhcpd.One important note do NOT start the dhcpd daemon on a production network, as you will really screw thing up!
#start of dhcpd.conf file
subnet 192.168.1.0 netmask 255.255.255.0 {
# --- default gateway
option routers
192.168.1.1;
option subnet-mask
255.255.255.0;
# option nis-domain
"domain.org";
option domain-name
"madeup.com";
option domain-name-servers
207.217.126.81;
option time-offset
-5; # Eastern Standard Time
# option ntp-servers
192.168.1.1;
option netbios-name-servers
192.168.1.3;
# --- Selects point-to-point node (default is hybrid). Don't change
this unless
# -- you understand Netbios very well
# option netbios-node-type 2;
range dynamic-bootp 192.168.1.5
192.168.1.20;
default-lease-time 21600;
max-lease-time 43200;
#below is how to specify
fixed addresses
# we want the nameserver
to appear at a fixed address
#hardware ethernet 12:34:56:78:AB:CD;
this goes between next&fixed
host ns {
next-server redhat.madeup.com;
fixed-address 192.168.1.3;
}
}