Technical Documentation

Specifying the Maximum Number of DHCP Clients Per Interface

By default, there is no limit to the number of DHCP local server or DHCP relay clients allowed on an interface. However, you can override the default setting and specify the maximum number of clients allowed per interface, in the range 1 to 500,000. When the number of clients on the interface reaches the specified limit, no additional DHCP Discover PDUs are accepted. When the number of clients subsequently drops below the limit, new clients are again accepted.

Note: The maximum number of DHCP local server clients or DHCP relay clients can also be specified by Juniper Networks VSA 26-143 during client login. The VSA-specified value always takes precedence if the interface-client-limit number statement specifies a different number.

If the VSA-specified value differs with each client login, DHCP uses the largest limit set by the VSA until there are no clients on the interface.

To configure the maximum number of DHCP clients allowed per interface:

  1. Specify that you want to configure override options.
    • For DHCP local server:
      [edit system services dhcp-local-server]
      user@host# edit overrides
    • For DHCP relay agent:
      [edit forwarding-options dhcp-relay]
      user@host# edit overrides
  2. Configure the maximum number of clients allowed per interface. (DHCP local server and DHCP relay agent both support the interface-client-limit statement.)
    [edit system services dhcp-local-server overrides]
    user@host# set interface-client-limit number