Administrator Guide

Layer 2 Switching Commands 336
User Guidelines
There are no user guidelines for this command.
Example
console(config-if-Gi1/0/1)#dhcp l2relay trust
dhcp l2relay vlan
Use the dhcp l2relay vlan command to enable the L2 DHCP Relay agent for
a set of VLANs. All DHCP packets which arrive on interfaces in the
configured VLAN are subject to L2 Relay processing. Use the no form of this
command to disable L2 DHCP Relay for a set of VLANs.
Syntax
dhcp l2relay vlan
vlan-range
no dhcp l2relay vlan
vlan-range
vlan-range
A list of VLAN IDs. List separate, non-consecutive VLAN
IDs separated by commas (without spaces). Use a hyphen to designate a
range of IDs. (Range: 1–4093)
Default Configuration
DHCP L2 Relay is disabled on all VLANs by default.
Command Mode
Global Configuration mode
User Guidelines
There are no user guidelines for this command.
Example
console(config)#dhcp l2relay vlan 10,340-345
show dhcp l2relay all
Use the show dhcp l2relay all command to display the summary of DHCP L2
Relay configuration.
2CSNXXX_SWUM204.book Page 336 Monday, January 25, 2016 1:25 PM