|
43
unique
IP address
for every host
on
a
network.
In
order
for
DHCP
to
work,
it
needs
a
server, and at least one client.
The server needs to have a DHCP server software installed in the router/gateway so it can
give IP addresses to
hosts on the
network.
There
is also a configuration
file
so
that the
DHCP server knows what is the network address that it can give out to clients. Consider
the following configuration:
shared-network
myNetwork
{
option
domain- name-servers 192.168.1.2;
subnet 192.168.1.0 netmask 255.255.255.0 {
option routers 192.168.1.1;
range 192.168.1.150 192.168.1.254;
}
host boss {
hardware ethernet 00:11:2f:39:51:ae;
fixed-address 192.168.1.2;
option host-name
"boss";
}
}
The above configuration states the DHCP server to create a network name myNetwork.
Hosts on myNetwork will use DNS server of 192.168.1.2. Next, it defines the network
address
of
myNetwork,
which
is
192.168.1.0.
Hosts
that
are
connected
to
that
subnet
(192.168.1.0)
will
know that the router/DHCP servers IP address
is 192.168.1.1.
Also,
the
DHCP
server
will
only
give
out
address
range
from
192.168.1.150
through
192.168.1.254. This
means
that
this
particular
DHCP
servers
configuration
will
only
give out 104 IP addresses.
|