Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

header-navigation
keyboard_arrow_up
{ "lCode": "en_US", "lName": "English", "folder": "en_US" }
English

Configuring a DHCP Client on ACX Series

date_range 11-Jun-18

Minimum DHCP Client Configuration

The following sample output shows the minimum configuration you must use to configure an ACX Series router as a DHCP client. In this output, the interface is ge-0/0/0 and the logical unit is 0.

content_copy zoom_out_map
[edit interfaces]
ge-0/0/0 {
unit 0 {
family inet {
dhcp-client
}
}
}
Note

To configure a DHCP client in a routing instance, add the interface in a routing instance using the [edit routing-instances] hierarchy.

Configuring Optional DHCP Client Attributes

For an ACX Series router to operate as a DHCP client, you configure a logical interface on the router to obtain an IP address from the DHCP local server in the network. You can then set the client-identifier, lease time, retransmission attempts, retransmission interval, preferred DHCP local server address, vendor class ID, and update server.

To configure optional DHCP client attributes:

  1. Configure the DHCP client identifier as the routing instance name.
    • DHCP client identifier as a user ID.

      content_copy zoom_out_map
      [edit interfaces ge-0/0/1 unit 0 family inet dhcp-client]
      user@host# set client-identifier user-id {ascii ascii | hexadecimal hexadecimal}
    • DHCP client identifier as the description of an interface.

      content_copy zoom_out_map
      [edit interfaces ge-0/0/1 unit 0 family inet dhcp-client]
      user@host# set client-identifier use-interface-description {logical | device}
    • DHCP client identifier as a prefix:

      content_copy zoom_out_map
      [edit interfaces ge-0/0/1 unit 0 family inet dhcp-client]
      user@host# set client-identifier prefix [host-name logical-system-name routing-instance-name]
  2. Configure the DHCP client identifier prefix as the routing instance name.
    content_copy zoom_out_map
    [edit interfaces ge-0/0/1 unit 0 family inet dhcp-client]
    user@host# set client-identifier prefix [host-name logical-system-name routing-instance-name]
  3. Set the DHCP lease time.
    content_copy zoom_out_map
    [edit interfaces ge-0/0/1 unit 0 family inet dhcp-client]
    user@host# set lease-time 86400
  4. Set the number of attempts allowed to retransmit a DHCP packet.
    content_copy zoom_out_map
    [edit interfaces ge-0/0/1 unit 0 family inet dhcp-client]
    user@host# set retransmission-attempts 6
  5. Set the interval (in seconds) allowed between retransmission attempts. The range is 4 through 64. The default is 4 seconds.
    content_copy zoom_out_map
    [edit interfaces ge-0/0/1 unit 0 family inet dhcp-client]
    user@host# set retransmission-interval 5
  6. Set the IPv4 address of the preferred DHCP local server.
    content_copy zoom_out_map
    [edit interfaces ge-0/0/1 unit 0 family inet dhcp-client]
    user@host# set server 10.1.1.1
  7. Set the vendor class ID for the DHCP client.
    content_copy zoom_out_map
    [edit interfaces ge-0/0/1 unit 0 family inet dhcp-client]
    user@host# set vendor-id ether
  8. Propagate DHCP options received from an external DHCP server to a local DHCP server. By default, this option is not turned on.
    content_copy zoom_out_map
    [edit interfaces ge-0/0/1 unit 0 family inet dhcp-client]
    user@host# set update-server
Note

To configure the DHCP client in a routing instance, configure the interface in the [edit routing-instances] hierarchy.

Verifying and Managing DHCP Client Configuration

You can view or clear information about client address bindings and statistics for the DHCP client.

  • To display the address bindings in the client table on the DHCP client:

    content_copy zoom_out_map
    user@host> show dhcp client binding
  • To display DHCP client statistics:

    content_copy zoom_out_map
    user@host> show dhcp client statistics
  • To clear the binding state of a DHCP client from the client table on the DHCP client:

    content_copy zoom_out_map
    user@host> clear dhcp client binding
  • To clear all DHCP client statistics:

    content_copy zoom_out_map
    user@host> clear dhcp client statistics
  • To renew a DHCP client lease time:

    content_copy zoom_out_map
    user@host> request dhcp client renew interface-name
Note

To clear or view information about client bindings and statistics in a routing instance, run the following commands:

  • show dhcp client binding routing-instance routing-instance name

  • show dhcp client statistics routing-instance routing-instance name

  • clear dhcp client binding routing-instance routing-instance name

  • clear dhcp client statistics routing-instance routing-instance name

footer-navigation