[Contents] [Prev] [Next] [Index] [Report an Error]

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 {
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;
}
}
overrides {
always-write-giaddr;
always-write-option-82;
layer2-unicast-replies;
trust-option-82;
disable-relay;
}
relay-option-60 {
vendor-option {
(equals | starts-with) (ascii match-string | hexadecimal match-hex) {
(relay-server-group server-group-name | 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 [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:

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 dhcp-relay 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.


[Contents] [Prev] [Next] [Index] [Report an Error]