Each computer that uses the TCP/IP protocol suite needs to know four piece of information:
The IP address of the computer
The subnet mask of the computer
The IP address of a router
The IP address of a name server
2. Each computer that uses the TCP/IP protocol
suite needs to know four pieces of
information:
◦ The IP address of the computer
◦ The subnet mask of the computer
◦ The IP address of a router
◦ The IP address of a name server
2
3. Reverse Address Resolution Protocol (RARP)
◦ RARP was designed to provide the IP address for a
booted computer.
◦ Not used for two reasons:
1. RARP used the broadcast service of the data
2. RARP can provide only the IP address of the
computer link layer.
Bootstrap Protocol (BootP)
◦ BOOTP is the prerunner of DHCP.
◦ It is a client/server protocol designed to overcome
the two deficiencies of the RARP protocol.
◦ BOOTP, however, is a static configuration protocol
3
4. What if:
◦ A host moves from one physical network to another
◦ A host wants a temporary IP address to be used
for a period of time
BOOTP cannot handle these situations
because the binding between the physical
and IP addresses is static and fixed in a table
until changed by the administrator.
4
5. DHCP is a client/server protocol designed to
provide the four pieces of information for a
diskless computer or a computer that is
booted for the first time.
DHCP is a successor to BOOTP and is
backward compatible with it.
The DHCP client and server can either be on
the same network or on different networks.
5
9. What if:
A request is lost or damaged?
What if the response is damaged?
DHCP requires that UDP uses the checksum.
The DHCP client uses timers and a
retransmission policy if it does not receive
the DHCP reply to a request.
9
11. DHCP can also be configured on a router…
To configure a DHCP server for your hosts, you need
the following information at minimum:
Network and mask for each LAN All addresses in a
subnet can be leased to hosts by default.
Reserved/excluded addresses Reserved addresses for
printers, servers, routers, and so on. These addresses
will not be handed out to hosts. The first address of
each subnet is usually reserved for the router, but you
don’t have to do this.
Default router This is the router’s address for each LAN.
DNS address A list of DNS server addresses provided to
hosts so they can resolve names.
12. 1. Exclude the addresses you want to reserve. The
reason you do this step first is because as soon
as you set a network ID, the DHCP service will
start responding to client requests.
2. Create your pool for each LAN using a unique
name.
3. Choose the network ID and subnet mask for the
DHCP pool that the server will use to provide
addresses to hosts.
4. Add the address used for the default gateway of
the subnet.
5. Provide the DNS server address(es).
6. If you don’t want to use the default lease time of
24 hours, you need to set the lease time in days,
hours, and minutes
In this case, the operation can be described as follows:
1. The DHCP server issues a passive open command on UDP port number 67 and
waits for a client.
2. A booted client issues an active open command on port number 68 The message is encapsulated in a UDP user datagram,
using the destination port number 67 and the source port number 68. The UDP user
datagram, in turn, is encapsulated in an IP datagram. The reader may ask how a client
can send an IP datagram when it knows neither its own IP address (the source
address) nor the server’s IP address (the destination address). The client uses all 0s
as the source address and all 1s as the destination address.
3. The server responds with either a broadcast or a unicast message using UDP
source port number 67 and destination port number 68. The response can be unicast
because the server knows the IP address of the client. It also knows the physical
address of the client, which means it does not need the services of ARP for
logical to physical address mapping. However, some systems do not allow the
bypassing of ARP, resulting in the use of the broadcast address.