Command Reference Guide
DHCP L2 Relay Agent Commands
CLI Command Reference
September 2014 Page 398
HP Moonshot Switch Module CLI Command Reference
dhcp l2relay vlan
Use this command to enable the DHCP L2 Relay agent for a set of VLANs. All DHCP packets which arrive on
interfaces in the configured VLAN are subject to L2 Relay processing.
no dhcp l2relay vlan
Use this command to disable the DHCP L2 Relay agent for a set of VLANs.
show dhcp l2relay all
This command displays the summary of DHCP L2 Relay configuration.
Example: The following shows example CLI display output for the command.
(Routing) #show dhcp l2relay all
DHCP L2 Relay is Enabled.
Interface L2RelayMode TrustMode
---------- ----------- --------------
1/0/2 Enabled untrusted
1/0/4 Disabled trusted
VLAN Id L2 Relay CircuitId RemoteId
--------- ---------- ----------- ------------
3 Disabled Enabled --NULL--
5 Enabled Enabled --NULL--
6 Enabled Enabled hp
7 Enabled Disabled --NULL--
8 Enabled Disabled --NULL--
9 Enabled Disabled --NULL--
10 Enabled Disabled --NULL--
Default
disable
Format
dhcp l2relay 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.
Format
no dhcp l2relay vlan vlan-list
Mode Global Config
Format
show dhcp l2relay all
Mode Privileged EXEC