46
760
Syntax
ip dhcp relay enable
no ip dhcp relay enable
Parameters
N/A
Default Configuration
Disabled
Command Mode
Interface Configuration (VLAN, Ethernet, Port-channel) mode
User Guidelines
The operational status of DHCP Relay on an interface is active if one of the
following conditions exist:
•
DHCP Relay is globally enabled, and there is an IP address defined on the
interface.
Or
•
DHCP Relay is globally enabled, there is no IP address defined on the
interface, the interface is a VLAN, and option 82 is enabled.
Example
The following example enables DHCP Relay on VLAN 21.
switchxxxxxx(config)#
switchxxxxxx(config-if)#
46.3
ip dhcp relay address (Global)
Use the ip dhcp relay address Global Configuration mode command to define the
DHCP servers available for the DHCP relay. Use the no form of this command to
remove the server from the list.
interface vlan
21
ip dhcp relay enable
78-21075-01 Command Line Interface Reference Guide
DHCP Relay Commands