DETAILED STEPS
Purpose
Command or Action
Enters global configuration mode.
configure terminal
Example:
Step 1
switch# configure terminal
switch(config)#
Enables the DHCP relay agent. The
no
option disables the
DHCP relay agent.
[
no
]
ip dhcp relay
Example:
Step 2
switch(config)# ip dhcp relay
Displays the DHCP relay configuration.
(Optional)
show ip dhcp relay
Example:
Step 3
switch(config)# show ip dhcp relay
Displays the DHCP configuration.
(Optional)
show running-config dhcp
Example:
Step 4
switch(config)# show running-config dhcp
Copies the running configuration to the startup
configuration.
(Optional)
copy running-config startup-config
Example:
Step 5
switch(config)# copy running-config startup-config
Enabling or Disabling Option 82 for the DHCP Relay Agent
You can enable or disable the device to insert and remove Option 82 information on DHCP packets forwarded
by the relay agent.
By default, the DHCP relay agent does not include Option 82 information in DHCP packets.
Before you begin
Ensure that the DHCP feature is enabled.
SUMMARY STEPS
1.
switch#
configure terminal
2.
switch(config)# [
no
]
ip dhcp relay information option
3.
(Optional) switch(config)# [
no
]
ip dhcp relay sub-option circuit-id customized
4.
(Optional) switch(config)# [
no
]
ip dhcp relay sub-option circuit-id format-type string
5.
(Optional) switch(config)#
show ip dhcp relay
6.
(Optional) switch(config)#
show running-config dhcp
7.
(Optional) switch(config)#
copy running-config startup-config
Cisco Nexus 9000 Series NX-OS Security Configuration Guide, Release 9.x
349
Configuring DHCP
Enabling or Disabling Option 82 for the DHCP Relay Agent