Cisco Nexus 9000 Series Configuration Manual page 389

Nx-os security configuration guide, release 9.x
Hide thumbs Also See for Nexus 9000 Series:
Table of Contents

Advertisement

Configuring DHCP
6. (Optional) copy running-config startup-config
DETAILED STEPS
Command or Action
Step 1
configure terminal
Example:
switch# configure terminal
switch(config)#
Step 2
Do one of the following options:
• interface ethernet slot/port
• interface mgmt 0
• interface vlan vlan-id
Example:
switch(config)# interface vlan 3
switch(config-if)#
Step 3
ipv6 address use-link-local-only
Example:
switch(config-if)# ipv6 address use-link-local-only
Step 4
[no] {ip | ipv6} address dhcp
Example:
switch(config-if)# ip address dhcp
Step 5
(Optional) Do one of the following options:
• show running-config interface ethernet slot/port
• show running-config interface mgmt 0
• show running-config interface vlan vlan-id
Example:
switch(config-if)# show running-config interface
vlan 3
Step 6
(Optional) copy running-config startup-config
Example:
switch(config-if)# copy running-config
startup-config
• show running-config interface vlan vlan-id
Cisco Nexus 9000 Series NX-OS Security Configuration Guide, Release 9.x
Purpose
Enters global configuration mode.
• Enters interface configuration mode, where slot/port
is the physical Ethernet interface for which you want
to enable the DHCP client feature.
• Enters interface configuration mode and specifies the
management interface as the interface for which you
want to enable the DHCP client feature.
• Enters interface configuration mode, where vlan-id is
the ID of the VLAN for which you want to enable the
DHCP client feature.
You must enter this command before assigning an IPv6
address to the interface in the next step. This command is
not required if you will assign an IPv4 address to the
interface.
Assigns an IPv4 or IPv6 address to the interface.
The no form of this command releases the IP address.
Displays the IPv4 or IPv6 address assigned to the interface
in the running configuration.
Copies the running configuration to the startup
configuration.
Only the {ip | ipv6} address dhcp command is saved. The
assigned IP address is not saved even though it shows in
the running configuration.
Enabling DHCP Client
363

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents