DHCP (Dynamic Host Configuration Protocol) : Tcp/Ip
DHCP (Dynamic Host Configuration Protocol) : Tcp/Ip
Allocate 80 percent of the IP addresses to the DHCP server which resides on the local
subnet.
Allocate 20 percent of the IP addresses to the DHCP Server on the remote subnet.
If the DHCP server that is allocated with 80 percent of the IP addresses has a failure, the
remote DHCP server would resume assigning the DHCP clients with IP addresses.
Because the DHCP service is a very important service in a TCP/IP based network, the
following implementations are strongly recommended.
DHCP Messages
The DHCP protocol consists of eight discrete message types:
DHCP
Description
Message
DHCP
UDP broadcast from DHCP client to locate available servers.
Discover
DHCP DHCP server to client in response to DHCP Discover with offer of configuration
Offer parameters.
DHCP Error message from DHCP client to server indicating network address is
Decline already in use.
DHCP Message from DHCP client to server releasing network address and canceling
Release remaining lease.
DHCP Client asking DHCP server only for local configuration parameters because the
Inform client already has externally configured network address.
DHCP scopes
A scope can be defined as a set of IP addresses which the DHCP server can allocate or
assign to DHCP clients. A scope contains specific configuration information for clients that
have IP addresses which are within the particular scope. Scope information for each DHCP
server is specific to that particular DHCP server only, and is not shared
between DHCP servers. Scopes for DHCP servers are configured by administrators.
A DHCP has to have at least one scope, which includes the following properties.
The specified range of IP addresses which are going to be leased to DHCP clients.
The subnet mask.
The DHCP scope options (DNS IP addresses, WINS IP addresses).
The lease duration. The default of 8 days is suitable for small networks.
Any reservations. Reservations include elements such as a client always receiving the
same IP addresses and TCP/IP
configuration information when it starts.
Therefore, when you start designing your DHCP strategy, and you are defining the scopes
for your DHCP servers, you should clarify the following.
The start and end addresses which would define the range of addresses you want to
utilize.
The subnet mask of the particular subnet.
The amount of time that the lease should be for the IP addresses leased from your
scopes.
All other TCP/IP configuration information which you want assigned to DHCP clients.
Determine those IP addresses that you want to reserve for clients.
Determine whether any clients using statically assigned IP addresses need to be
excluded from the address
pool.
If you have multiple scopes, remember that clients can only obtain IP addresses from the
subnet to which they belong. Clients cannot obtain IP addresses from scopes that are
connected with different subnets. However, if your clients should be able to obtain IP
addresses from other scopes, you can configure a superscope.
A superscope is the grouping of scopes under one administrative entity that enables clients
to obtain IP addresses, and renew IP addresses from any scope that is part of the
superscope.
Superscopes are typically created for under the following circumstances:
1. The DHCP Discover message is sent from the client to the DHCP server. This is the
message used to request an IP address lease fro a DHCP server. The message is sent
when the client boots up. The DHCP Discover message is a broadcast packet that is sent
over the network, requesting for a DHCP server to respond to it.
2. The DHCP servers that have a valid range of IP addresses, sends an offer message to the
client. The DHCP Offer message is the response that the DHCP server sends to the client.
The DHCP Offer message informs the client that the DHCP server has an available IP
address. The DHCP Offer message includes the following information:
o IP address of the DHCP server which is offering the IP address.
o MAC address of the client.
o Subnet mask.
o Length of the lease.
3. The client sends the DHCP server a DHCP Request message. This message indicates that
the client accepted the offer from the first DHCP server which responded to it. It also
indicates that the client is requesting the particular IP address for lease. The client
broadcasts the acceptance message so that all other DHCP servers who offered
addresses
can withdraw those addresses. The message contains the IP address of the DHCP server
which it has selected.
4. The DHCP server sends the client a DHCP Acknowledge message. The DHCP Acknowledge
message is actually the process of assigning the IP address lease to the client.
The options which can be specified to enable/disable the DHCP service to dynamically
update DNS records on behalf of the client are:
The DHCP server can be configured to not register any IP address of the DHCP clients
when it assigns IP addresses to these clients.
The DHCP server can be configured to at all times register all IP address of clients when
they receive IP addresses from the DHCP server.
The default option results in the DHCP server registering the IP addresses of clients with
the authoritative DNS server, based on the client.s request for an IP address.
Network topology.
Server hardware would influence the number of DHCP clients which the DHCP server
would be capable of servicing.
Server hardware also affects the performance of your DHCP servers.
Network configuration.
Routing configuration.
Availability requirements of the DHCP servers.
The number of clients which the DHCP servers are going to service.
In a routed network, you would need DHCP relay agents if you plan to implement only one
DHCP server. It is recommended to place the DHCP server on the subnet that has the
majority of hosts.
Multiple CPUs.
Multiple network cards.
High performance hard drives.
If you are implementing multiple DHCP servers, place DHCP servers on all subnets which
are connected via slow, unstable WAN links. This in turn prevents DHCP messages from
being transmitted over the WAN.
Because the IP address number in a scope is limited, an unauthorized user could initiate
a denial-of-service (DoS) attack by requesting/obtaining a large numbers of IP
addresses.
An unauthorized user could use a rogue DHCP server to offer incorrect IP addresses to
your DHCP clients.
A denial-of-service (DoS) attack can by launched through an unauthorized user that
performs a large number of DNS
dynamic updates via the DHCP server.
Assigning DNS IP addresses and WINS IP addresses through the DHCP server increases
the possibility of an unauthorized user using this information to attack your DNS and
WINS servers.
To secure your DHCP environment, use the following strategies:
Implement firewalls.
Close all open unused ports.
If necessary, use VPN tunnels.
You can use MAC address filters.
Use 128-bit Wired Equivalent Privacy (WEP) encryption in wireless networks.
Disable broadcasting the Service Set IDentifier (SSID) in wireless networks.
Source: http://www.tech-faq.com/dhcp.html