Grouping Interfaces with Common DHCP Relay Configuration
Configuring a DHCP relay group enables you to apply a common DHCP relay agent configuration to a named group of interfaces. To configure a group, include the group statement at the [edit forwarding-options dhcp-relay] hierarchy level:
- [edit forwarding-options dhcp-relay]
-
group group-name {
-
dynamic-profile profile-name;
-
-
active-server-group server-group-name;
-
-
authentication {
-
password password-string;
-
-
username-include {
-
circuit-type;
-
delimiter delimiter-character;
-
domain-name domain-name-string;
-
logical-system-name;
-
mac-address;
-
option-60;
-
option-82 [circuit-id]
[remote-id];
-
-
routing-instance-name;
-
user-prefix user-prefix-string;
- }
- }
-
-
relay-option-60 {
-
-
vendor-option {
-
- (equals | starts-with) (ascii match-string | hexadecimal match-hex) {
- (default-relay-server-group server-group-name |
-
default-local-server-group local-server-group-name |
-
drop);
- }
- (default-relay-server-group server-group-name |
-
default-local-server-group local-server-group-name |
-
drop);
- }
- }
-
-
relay-option-82 {
-
-
circuit-id {
-
prefix host-name logical-system-name
routing-instance-name;
- }
- }
-
-
interface interface-name [upto upto-interface-name] [exclude];
- }
Configuring Group-Specific DHCP Relay Options
You can include the following statements at both the [edit forwarding-options dhcp-relay group group-name] hierarchy level to set group-specific DHCP relay agent configuration options, and at the [edit forwarding-options dhcp-relay] hierarchy level to set global DHCP relay agent configuration options:
- active-server-group—Configure an active server group to apply a common DHCP relay agent configuration to a named group of DHCP server addresses. For information, see Configuring Active Server Groups.
- authentication—Configure the parameters the router sends to the external AAA server.
- overrides—Override the default configuration settings for the extended DHCP relay agent. For information, see Overriding the Default DHCP Relay Configuration.
- relay-option-60—Use the DHCP vendor class identifier option (option 60) in DHCP client packets to select a DHCP server to which to forward packets. For more information, see Using Option 60 Information to Forward Client Traffic to Specific DHCP Servers.
- relay-option-82—Enable or disable the insertion of option 82 information in packets destined for a DHCP server. For information, see Enabling and Disabling Insertion of Option 82 Information.
The statements configured at the [edit forwarding-options dhcp-relay group group-name] hierarchy level apply only to the named group of interfaces, and override any global DHCP relay agent settings configured with the same statements at the [edit forwarding-options dhcp-relay] hierarchy level.
Enabling the DHCP Relay Agent on Specified Interfaces
To specify the names of one or more interfaces within a specified group on which the DHCP relay agent is enabled, include the interface statement at the [edit forwarding-options dhcp-relay group group-name] hierarchy level:
- [edit forwarding-options dhcp-relay group group-name]
- interface interface-name;
You can include multiple interface interface-name statements to specify multiple interfaces within a group, but you cannot specify the same interface in more than one group.
