Command Reference Guide

DHCP L2 Relay Agent Commands
CLI Command Reference
September 2014 Page 396
HP Moonshot Switch Module CLI Command Reference
DHCP L2 Relay Agent Commands
You can enable the switch to operate as a DHCP Layer 2 relay agent to relay DHCP requests from clients to a
Layer 3 relay agent or server. The Circuit ID and Remote ID can be added to DHCP requests relayed from clients
to a DHCP server. This information is included in DHCP Option 82, as specified in sections 3.1 and 3.2 of
RFC3046.
dhcp l2relay
This command enables the DHCP Layer 2 Relay agent for an interface a range of interfaces in, or all interfaces.
The subsequent commands mentioned in this section can only be used when the DHCP L2 relay is enabled.
no dhcp l2relay
This command disables DHCP Layer 2 relay agent for an interface or range of interfaces.
dhcp l2relay circuit-id vlan
This parameter sets the DHCP Option-82 Circuit ID for a VLAN. When enabled, the interface number is added
as the Circuit ID in DHCP option 82.
Description The text description of this multicast table entry.
Interfaces The list of interfaces that are designated for forwarding (Fwd:) and filtering (Flt:).
Format
dhcp l2relay
Mode Global Config
•Interface Config
Format
no dhcp l2relay
Mode Global Config
•Interface Config
Format
dhcp l2relay circuit-id vlan vlan-list
Mode Global Config
Parameter Description
vlan–list The VLAN ID. The range is 1–4093. Separate non-consecutive IDs with a comma (,) no
spaces and no zeros in between the range. Use a dash (–) for the range.
Term Definition