Examples
This example shows how to enable VRF support for the DHCP relay agent, which is dependent upon enabling
Option-82 support for the DHCP relay agent, and how to configure a DHCP server address on a Layer 3
interface when the DHCP server is in a VRF named SiteA:
switch# configure terminal
switch(config)# ip dhcp relay information option
switch(config)# ip dhcp relay information option vpn
switch(config)# interface ethernet 1/3
switch(config-if)# ip dhcp relay address 10.43.87.132 use-vrf SiteA
switch(config-if)#
DescriptionCommand
Enables or disables the DHCP relay agent.ip dhcp relay
Configures the IP address of a DHCP server on an
interface.
ip dhcp relay address
Enables the insertion and removal of option-82
information from DHCP packets forwarded by the
DHCP relay agent.
ip dhcp relay information option
Enables DHCP to use Cisco proprietary numbers 150,
152, and 151 when filling the link selection, server
ID override, and VRF name/VPN ID relay agent
option-82 suboptions.
ip dhcp relay sub-option type cisco
Globally enables DHCP snooping on the device.ip dhcp snooping
Displays the DHCP snooping configuration, including
the IP source guard configuration.
show running-config dhcp
Cisco Nexus 7000 Series Security Command Reference
399
I Commands
ip dhcp relay information option vpn