Technical Documentation

Grouping Interfaces with Common DHCP Configurations

You use the group feature to group together a set of interfaces and then apply a common DHCP configuration to the named interface group. The extended DHCP local server, including the DHCPv6 local server, and DHCP relay agent both support interface groups.

To configure an interface group:

  1. Access the [edit system services dhcp-local-server] hierarchy (for DHCP local server) or the [edit forwarding-options dhcp-relay] hierarchy (for DHCP relay agent), depending on the extended DHCP access method you want to configure. The following steps create a DHCP local server group; the steps are the same for the DHCPv6 local server, and DHCP relay agent.
  2. Create the group and assign a name.
    [edit system services dhcp-local-server]user@host# edit group boston

  3. Specify the names of one or more interfaces on which the extended DHCP application is enabled. You can repeat the interface interface-name statement to specify multiple interfaces within the group, but you cannot use the same interface in more than one group.
    [edit system services dhcp-local-server group boston]user@host# set interface fe-1/0/1.1user@host# set interface fe-1/0/1.2
  4. (Optional) You can use the upto option to specify a range of interfaces for a group.
    [edit system services dhcp-local-server group boston]user@host# set interface fe-1/0/1.3 upto fe-1/0/1.9
  5. (Optional) You can use the exclude option to exclude a specific interface or a specified range of interfaces from the group. For example:
    [edit system services dhcp-local-server group boston]user@host# interface fe-1/0/1.1 upto fe-1/0/1.102 user@host# interface fe-1/0/1.6 excludeuser@host# interface fe-1/0/1.70 upto fe-1/0/1.80 exclude

Published: 2010-04-15