DHCP Server Interview Questions and Answers
DHCP Server Interview Questions and Answers
servers that have no exact information about the individual computers until they
request the information. The overall purpose of this is to reduce the work
No, it is too tied to IP. Furthermore, they don't need it since they have always
DHCP was created by the Dynamic Host Configuration Working Group of the
Internet RFC and the Internet Activities Board (IAB) is asserting its status as to
DHCP is based on BOOTP and maintains some backward compatibility. The main
difference is that BOOTP was designed for manual pre-configuration of the host
leasing mechanism.
RARP is a protocol used by Sun and other vendors that allows a computer to find
out its own IP number, which is one of the protocol parameters typically passed
to the client system by DHCP or BOOTP. RARP doesn't support other parameters
and using it, a server can only serve a single LAN. DHCP and BOOTP are
DHCP and VLANs, which are very different in concept, are sometimes cited as
different solutions to the same problem. While they have a goal in common
change to a LAN than DHCP. A DHCP server and forwarding agents can allow you
to set things up so that you can unplug a client computer from one network or
subnet and plug it into another and have it come alive immediately, it having
automatically be given its same name in its new place. VLAN-capable LAN
equipment with dynamic VLAN assignment allows you to configure things so a
client computer can be plugged into any port and have the same IP number (as
well as name) and be on the same subnet. The VLAN-capable network either has
its own configuration that lists which MAC addresses are to belong to each VLAN,
or it makes the determination from the source IP address of the IP packets that
network handles it by reconfiguring the network port the client is moved to.
in each router, and DHCP capability in each client's TCP/IP support. The
• DHCP can configure a new client computer for you while a VLAN-capable
network can't.
in one office on the same subnet, putting each person on a subnet that
There is an issue with trying to use DHCP (or BOOTP) and VLANs at the same
time, in particular, with the scheme by which the VLAN-capable network
determines the client's VLAN based upon the client computer's source IP
precludes the use of network to get the configuration information from a DHCP
or BOOTP server.
DHCP, like BOOTP runs over UDP, utilizing ports 67 and 68.
8. What is an IP address?
network to direct calls to you. The IP address is used by the Internet to direct
data to your computer, e.g. the data your web browser retrieves and displays
when you surf the net. One task of DHCP is to assist in the problem of getting a
functional and unique IP number into the hands of the computers that make use
of the Internet.
A DHCP lease is the amount of time that the DHCP server grants to the DHCP
What is termed the Client ID for the purposes of the DHCP protocol is whatever
implementations typically employ the client's MAC address for this purpose, but
the DHCP protocol allows other options. Some DHCP implementations have a
setup option to specify the client ID you want. One alternative to the MAC
address is simply a character string of your choice. In any case, in order for
DHCP to function, you must be certain that no other client is using the client ID
you choose, and you must be sure the DHCP server will accept it.
Yes. At least there is nothing in the protocol to preclude this and one expects it
to be a feature of any DHCP server. This is really a server matter and the client
should work either way. The RFC refers to this as manual allocation.
For the situations where there is more than one LAN, each with its own subnet
number, there are two ways. First of all, you can set up a seperate server on
forward the replies back to the client. The part of such a router (or server acting
as a router) that does this is called a "BOOTP forwarding agent". Typically you
configure it with the IP address of the DHCP or BOOTP server. On a Cisco router,
Only if the DHCP server is specifically written to also handle BOOTP queries.
Only if the DHCP client were specifically written to make use of the answer from
on the IP address.
In particular, the TCP/IP stack included with Windows 95 does not have this
capability.
The RFC on such interoperability (1534) is clear: "In summary, a DHCP server:
... MAY support BOOTP clients," (section 2). The word "MAY" indicates such
RFC 1541: "DHCP must provide service to existing BOOTP clients." However, this
statement is one in a list of "general design goals for DHCP", i.e. what the
designers of the DHCP protocol set as their own goals. It is not in a list of
The RFC on such interoperability (1534) is clear: "A DHCP client MAY use a reply
from a BOOTP server if the configuration returned from the BOOTP server is
acceptable to the DHCP client." (section 3). The word "MAY" indicates such
18. Can a DHCP client or server make a DNS server update the client's DNS
entry to match the client's dynamically assigned address?
RFCs 2136 and 2137 indicate a way in which DNS entries can be updated
dynamically. Using this requires a DNS server that supports this feature and a
DHCP server that makes use of it. The RFCs are very recent (as of 5/97) and
implementations are few. In the mean time, there are DNS and DHCP servers
You can have two or more servers handing out leases for different addresses. If
each has a dynamic pool accessible to the same clients, then even if one server
is down, one of those clients can lease an address from the other server.
information on current leases, when one server is down, any client with a lease
from it will not be able to renew their lease with the other server. Such
communication is the purpose of the "server to server protocol" (see next
question). It is possible that some server vendors have addressed this issue with
In Internet RFCs.
PPP has its own non-DHCP way in which communications servers can hand
clients an IP address called IPCP (IP Control Protocol) but doesn't have the same
communications server may support the use of DHCP to acquire the IP addresses
it gives out. This is sometimes called doing DHCP by proxy for the client. I know
DHCP server can supply parameters to a client that already has an IP number.
With this, a PPP client could get its IP number using IPCP, then get the rest of its
SLIP has no standard way in which a server can hand a client an IP address, but
many communications servers support non-standard ways of doing this that can
such communications servers could also support the use of DHCP to acquire the
IEEE-style MAC address, such as a computer attached through SLIP or PPP, but
to do so, it makes use of a feature which may or may not be supported by the
DHCP server: the ability of the server to use something other than the MAC
for their clients via DHCP run into the same roadblock in that they have just one
MAC address, but need to acquire more than one IP address. One way such a
communications server can get around this problem is through the use of a set
the DHCP server. Another way (used by Shiva) is to use a different "client ID
type" for your hardware address. Client ID type 1 means you're using MAC
A server on a net(subnet) can relay DHCP or BOOTP for that net. Microsoft has
Ascend Pipeline ISDN routers (which attach Ethernets to ISDN lines) incorporate
a feature that Ascend calls "DHCP spoofing" which is essentially a tiny server
implementation that hands an IP address to a connecting Windows 95 computer,
A very relevant factor is that the client starts trying to renew the lease when it is
halfway through: thus, for example, with a 4 day lease, the client which has lost
access to its DHCP server has 2 days from when it first tries to renew the lease
until the lease expires and the client must stop using the network. During a 2-
day outage, new users cannot get new leases, but no lease will expire for any
Another factor is that the longer the lease the longer time it takes for client
25. How can I control which clients get leases from my server?
There is no ideal answer: you have to give something up or do some extra work.
• You can put all your clients on a subnet of your own along with your own
DHCP server.
MAC addresses the server will accept. DHCP servers that support roaming
• You can use the user class option assuming your clients and server
support it: it will require you to configure each of your clients with a user
class name. You still depend upon the other clients to respect your
wishes.
26. How can I prevent unauthorized laptops from using a network that uses
DHCP for dynamic addressing?
This would have to be done using a mechanism other than DHCP. DHCP does not
prevent other clients from using the addresses it is set to hand out nor can it
distinguish between a computer's permanent MAC address and one set by the
computer's user. DHCP can impose no restrictions on what IP address can use a
uses the DHCP protocol, but does not provide that kind of support. In particular,
enhance their BOOTP server to allow DHCP clients that cannot speak "BOOTP" to
retrieve statically defined addresses via DHCP. The following terminology has
These are independent "features": a particular server can offer or not offer any
of them:
the server that includes the MAC address and IP address of each DHCP
for the server that includes only IP addresses, which it gives out to
clients. An IP address, once associated with a MAC address, is
• Dynamic allocation: like automatic allocation except that the server will
track leases and give IP addresses whose lease has expired to other
DHCP clients.
addresses.
interactions that one might support and that a standard set & method is
in the works.
single MAC address, whose use depends upon the gateway address
that forces the pool to be a whole subnet or network. Ideally, the server
networks (or subnets) with a single gateway address. This is the basic
or subnet.
and/or vendor class. Note: this is a feature that might be used to assign
subnets.
interactions that one might support and that a standard set & method is
in the works.
DHCP Discovery:
The client broadcasts on the local physical subnet to find available servers. Network
different subnet. This client-implementation creates a UDP packet with the broadcast
IP address (in the example below, 192.168.1.100) although the server may ignore
this optional
parameter....
DHCP Offers:
across the network. This message contains the client's MAC address, followed by the
IP
address that the server is offering, the subnet mask, the lease duration, and the IP
address of
The server determines the configuration, based on the client's hardware address as
specified in
the CHADDR field. Here the server, 192.168.1.1, specifies the IP address in the
YIADDR field.
DHCP Requests:
it does not, it requests a lease from a DHCP server. Because the client computer
does not know
the address of a DHCP server, it uses 0.0.0.0 as its own IP address and
255.255.255.255 as
across the network. Such a message consists of the client computer's Media Access
Control
(MAC) address (the hardware address built into the network card) and its NetBIOS
name.
The client selects a configuration out of the DHCP "Offer" packets it has received and
broadcasts it on the local subnet. Again, this client requests the 192.168.1.100
address that
the server specified. In case the client has received multiple offers it specifies the
server from
DHCP Acknowledgement:
When the DHCP server receives the DHCPREQUEST message from the client, it
initiates the
DHCPACK packet to the client. This packet includes the lease duration and any other
configuration information that the client might have requested. At this point, the
TCP/IP
The server acknowledges the request and sends the acknowledgement to the client.
The
system as a whole expects the client to configure its network interface with the
supplied
options.