1 / 30

Configuring Hosts through DHCP

Configuring Hosts through DHCP. In its present form, DHCP concentrates on providing network addresses to hosts. Although a host can always form a link-local address, such a addresses confine traffic to the local link.

raiden
Download Presentation

Configuring Hosts through DHCP

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Configuring Hosts through DHCP

  2. In its present form, DHCP concentrates on providing network addresses to hosts. Although a host can always form a link-local address, such a addresses confine traffic to the local link. If a host wants to communicate across an internet with other hosts not on its local link, the host needs additional network addresses.

  3. Address autoconfiguration has a few shortcomings. All networks that use autoconfiguration must have a router generating router advertisements, and administrators must make sure that all such routers have the correct prefix information. Autoconfiguration also ties network addresses to particular hosts. An autoconfigured address is built from the host’s link address. Two host with different link addresses cannot share a network address, even if they are never on the network together.

  4. Furthermore, this binding prevents an administrator from assigning network addresses based on a more natural identifier, such as the name of the person using the host. DHCP resolves all of these issues with a more flexible and a more controllable method of autoconfiguring network addresses. The protocol also has the capability to relay other configuration information.

  5. Assigning Network Addresses Network administrators use DHCP to assign network addresses to hosts on their networks. DHCP gives these administrators the flexibility to assign addresses in one of three ways. The approaches represent different allocation strategies. Manual Allocation The most rigid method: Through this method, the administrator explicitly assigns specific addresses to specific hosts. When these hosts use DHCP to discover their addresses, DHCP provides them with the manually allocated values.

  6. Assigning Network Addresses Automatic Allocation Automatic allocation provides the same service as ICMP’s address autoconfiguration. It combines a link address with an address prefix to create a network address. DHCP uses a different approach to achieve that result, though. Instead of waiting for router advertisements, hosts actively request an address from a special computer acting as a DHCP server.

  7. Assigning Network Addresses Automatic Allocation Administrators may choose to use DHCP’s automatic allocation instead of address autoconfiguration for at least two reasons. First, DHCP does not require configuration and maintenance of routers on every network. Instead, address administration can be concentrated in a single host. Second, DHCP lets an administrator change allocation strategies easily. If the administrator changes some hosts from automatic allocation to another strategy, those hosts need never even know of the change.

  8. Assigning Network Addresses Dynamic Allocation Dynamic allocation represents the most adaptive allocation strategy. It lets a group of hosts share from a smaller pool of network addresses. This strategy is useful if addresses are in demand and only a limited number of the hosts need an address at any one time.

  9. Assigning Network Addresses Only two IP addressees are needed instead of six.

  10. Client-Server Interactions DHCP derives much of its power from making the allocation strategy transparent to the hosts it serves. A host that needs a network address takes exactly the same steps, regardless of the allocation strategy the administrator has selected. DHCP interactions follow a simple client-server model. A host that needs a network address becomes a client by asking for that address. The system that answers the requests acts as a DHCP server.

  11. Client-Server Interactions

  12. Client-Server Interactions If a host knows the address of a DHCP server, it can send its request directly to that server. Otherwise, DHCP relies on a well-known multicast address. The address FF02::1:0 refers to all DHCP servers.

  13. Relay Agents When the server and client are not on the same link, since the DHCP server multicast address has a link-local scope, messages addressed to FF02::0:1 cannot travel beyond the link on which they first appear. DHCP solves this problem by defining a third role beyond that of server and client. The new role is a DHCP relay.

  14. Relay Agents

  15. DHCP and the Domain Name Service DHCP servers also support their clients by interacting with the DNS. One thing that DHCP servers can do is autoregister their client’s names. If a client knows its domain name, it can supply that name when it requests an address. The DHCP server queries DNS for the client’s address. If DNS has no entry for the client, or if the server needs to assign the client a different address, it can update DNS through the DNS dynamic update mechanism.

  16. DHCP and the Domain Name Service

  17. DHCP and the Domain Name Service A DHCP server can also provide a domain name to its client. If the client does not know its name beforehand, it may find it convenient to get a name the same way it finds its address. The DHCP server must coordinate with the domain name server in this case as well.

  18. DHCP Message Formats See next slide 1:server detects an error 2:server could not support dynamic DNS update Number of addresses already had Typically, address of NIC 0: request an IP address Otherwise: request for a domain name

  19. DHCP Message Formats

  20. DHCP Message Formats The address count and interface token fields help keep clients and servers synchronized. In general, a client may request multiple addresses for the same interface. To make sure that the server knows that all such addresses belong to the same interface, the client supplies a value for its interface token. This value must be unique among all other interfaces to the network.

  21. DHCP Message Formats When the client makes a request for an address, it includes the number of addresses it already has in the address count field. The server also keeps track of this value, and it can detect when the two systems lose synchronization.

  22. DHCP Message Formats The most common cause of this error would be a reboot of the client’s computer. When the client restarts after the reboot, it will ask for a network address. Since it does not remember that it had an address before the reboot, it will set the address count to zero. When the server sees this address count, it returns an error to the client. At the same time, it removes any addresses previously assigned to the client, freeing them for reassignment elsewhere.

  23. DHCP Message Formats The transaction identifier associates requests and responses, as well as confirmation and rejection messages, with each other. Clients pick a value for this field, and servers reflect that value in their response.

  24. DHCP Message Formats Source IP address of the request

  25. DHCP Message Formats Cannot use the address after this Cannot use on new connection after this Client: name for address Server: return name for address Future extension to include various servers

  26. DHCP Message Formats An Example

  27. DHCP Message Formats Client sends to relay router

  28. DHCP Message Formats 2. Relay router sends to DHCP server

  29. DHCP Message Formats 3. DHCP server replied to relay router

  30. DHCP Message Formats 4. Relay router replies to client

More Related