About DHCP Client
The DHCP client feature enables the configuration of an IPv4 address on an interface. Interfaces can include the management port and switch virtual interfaces (SVIs).
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 an interface. Interfaces can include the management port and switch virtual interfaces (SVIs).
DHCP has the following configuration guidelines and limitations:
For secure POAP, make sure that DHCP snooping is enabled and firewall rules are set to block unintended or malicious DHCP servers.
Note |
The firewall rules should be correctly setup for configuring secure POAP. |
Note |
For DHCP configuration limits, see the Cisco Nexus 3550-T Verified Scalability Guide. |
You can use the DHCP client feature to enable the configuration of an IPv4 address on management 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 |
Choose:
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) Do the following:
Example:
|
(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 the DHCP client feature can be used to assign an IPv4 address to a VLAN interface:
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
interface Vlan7
no shutdown
ip address dhcp
Related Topic |
Document Title |
---|---|
Layer 3 virtualization |
Cisco Nexus 9000 Series NX-OS Unicast Routing Configuration Guide |