Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Navigation

DHCP Access Service Overview

DHCP access service consists of two components: a protocol for delivering host-specific configuration information from a server to a client host and a method for allocating network addresses to a client host. The client sends a message to request configuration information. A DHCP server sends the configuration information back to the client.

With DHCP, clients can be assigned a network address for a fixed lease, enabling serial reassignment of network addresses to different clients. A DHCP server leases IP addresses for specific times to various clients. If a client does not use its assigned address for some period of time, the DHCP server can assign that IP address to another host. When assignments are made or changed, the DHCP server updates information in the DNS server. The DHCP server provides clients with their previous lease assignments whenever possible.

A DHCP server provides persistent storage of network parameters for clients. Because DHCP is an extension of BOOTP, DHCP servers can handle BOOTP requests.

The DHCP server includes IPv4 address assignment and commonly used DHCP options. The server is compatible with DHCP servers from other vendors on the network. The server does not support IPv6 address assignment, user class-specific configuration, DHCP failover protocol, dynamic DNS updates, or VPN connections. The Junos-FIPS software does not support the DHCP server.

Note: You cannot configure a router as a DHCP server and a BOOTP relay agent at the same time.

The following topics describe these concepts in detail:

Network Address Assignments (Allocating a New Address)

To receive configuration information and a network address assignment, a DHCP client negotiates with DHCP servers in a series of messages. The following steps show the messages exchanged between a DHCP client and servers to allocate a new network address. When allocating a new network address, the DHCP process can involve more than one server, but only one server is selected by the client.

  1. When a client computer is started, it broadcasts a DHCPDISCOVER message on the local subnet, requesting a DHCP server. This request includes the hardware address of the requesting client.

    Figure 1: DHCP Discover

    DHCP Discover

    Note: For improved operation with DHCP clients that do not strictly conform to RFC 2131, the DHCP server accepts and processes DHCPDISCOVER messages even if the overload options in the messages are not properly terminated with an end statement.

  2. Each DHCP server receiving the broadcast sends a DHCPOFFER message to the client, offering an IP address for a set period of time, known as the lease period.

    Figure 2: DHCP Offer

    DHCP Offer
  3. The client receives one or more DHCPOFFER messages from one or more servers and selects one of the offers received. Normally, a client looks for the longest lease period.
  4. The client broadcasts a DHCPREQUEST message indicating the client has selected an offered leased IP address and identifies the selected server.

    Figure 3: DHCP Request

    DHCP Request
  5. Those servers not selected by the DHCPREQUEST message return the unselected IP addresses to the pool of available addresses.
  6. The selected DHCP server sends a DHCPACK acknowledgment that includes configuration information such as the IP address, subnet mask, default gateway, and the lease period.

    Figure 4: DHCP ACK

    DHCP ACK

    The information offered by the server is configurable.

  7. The client receives the DHCPACK message with configuration information. The process is complete. The client is configured and has access to the network.
    • If the client receives a DHCPNAK message (for example, if the client has moved to a new subnet), the client restarts the negotiation process.
    • The client can relinquish its lease on a network address by sending a DHCPRELEASE message to the server (for example, when the client is restarted). When the server receives the DHCPRELEASE message, it marks the lease as free and the IP address becomes available again.

Figure 5: DHCP Release

DHCP Release

Network Address Assignments (Reusing a Previously Assigned Address)

To enable reuse of a previously allocated network address, the following events occur:

  1. A client that previously had a lease broadcasts a DHCPREQUEST message on the local subnet.
  2. The server with knowledge of the client’s configuration responds with a DHCPACK message.
  3. The client verifies the DHCP configuration information sent by the server and uses this information to reestablish the lease.

Static and Dynamic Bindings

DHCP supports both dynamic and static bindings. For dynamic bindings, IP addresses are assigned to clients from a pool of addresses. Static bindings provide configuration information for a specific client and can include one or more fixed IP addresses for the client. You can configure a DHCP server to include both address pools and static bindings. For any individual client, static bindings take priority over address pools.

Compatibility with Autoinstallation

The DHCP server is compatible with the autoinstallation feature on J Series Services Routers. The server automatically checks autoinstallation settings for conflicts and gives autoinstallation settings priority over corresponding DHCP settings. For example, an IP address set by autoinstallation takes priority over an IP address set by the DHCP server.

Note: The autoinstallation feature includes a fixed address pool and a fixed lease time. With DHCP, you can create address pools and modify lease times.

Conflict Detection and Resolution

When a client receives an IP address from the DHCP server, the client performs a series of ARP tests to verify that the IP address is available and no conflicts exist. If the client detects an address conflict, the client notifies the DHCP server about the conflict and may request another IP address from the DHCP server.

The DHCP server keeps a log of all conflicts and removes addresses with conflicts from the pool. These addresses remain excluded until you manually clear the conflicts list with the clear system services dhcp conflict command.

Published: 2013-02-22

Supported Platforms

Published: 2013-02-22