About DHCP Client
The DHCP client feature enables the configuration of an IPv4 address on the management port.
The documentation set for this product strives to use bias-free language. For the purposes of this documentation set, bias-free is defined as language that does not imply discrimination based on age, disability, gender, racial identity, ethnic identity, sexual orientation, socioeconomic status, and intersectionality. Exceptions may be present in the documentation due to language that is hardcoded in the user interfaces of the product software, language used based on RFP documentation, or language that is used by a referenced third-party product. Learn more about how Cisco is using Inclusive Language.
This chapter describes how to configure the Dynamic Host Configuration Protocol (DHCP) on a Cisco NX-OS device.
This chapter includes the following sections:
The DHCP client feature enables the configuration of an IPv4 address on the management port.
DHCP has the following configuration guidelines and limitations:
Only DHCP client is supported.
No support for DHCPv6 (or IPv6).
PowerOn Auto Provisioning (POAP) can be used for the DHCP client. Restrictions for POAP:
POAP is supported only on the management port.
No support for IPv6.
For more details about POAP, see the Fundamentals Guide.
You can use the DHCP client feature to enable the configuration of an IPv4 address on an interface.
Note |
DHCP client is independent of the DHCP relay processes, so it does not require that the feature dhcp command be enabled. |
Command or Action | Purpose | |
---|---|---|
Step 1 |
configure terminal Example:
|
Enters global configuration mode. |
Step 2 |
interface mgmt 0 Example:
|
|
Step 3 |
[no] {ip } address dhcp Example:
|
Assigns an IPv4 address to the interface. The no form of this command releases the IP address. |
Step 4 |
(Optional) Run the show running-config interface mgmt 0 command. |
(Optional)
Displays the IPv4 address assigned to the interface in the running configuration. |
Step 5 |
(Optional) copy running-config startup-config Example:
|
(Optional)
Copies the running configuration to the startup configuration. Only the {ip} address dhcp command is saved. The assigned IP address is not saved even though it shows in the running configuration. |
The following example shows how to use the DHCP client feature:
switch# configure terminal
switch(config)# interface mgmt 0
switch(config-if)# no shutdown
switch(config-if)# ip address dhcp
switch(config-if)# show running-config interface vlan 7