Send document comments to nexus7k-docfeedback@cisco.com.
2-8
Cisco Nexus 7000 Series NX-OS Unicast Routing Configuration Guide, Release 4.x
OL-20002-02
Chapter 2 Configuring IPv4
Configuring IPv4
This example shows how to assign an IPv4 address:
switch# config t
switch(config)# interface ethernet 2/3
switch(config-if)# ip address 192.2.1.1 255.0.0.0
switch(config-if)# copy running-config startup-config
Configuring Multiple IP Addresses
You can only add secondary IP addresses after you configure primary IP addresses.
BEFORE YOU BEGIN
Ensure that you are in the correct VDC (or use the switchto vdc command).
SUMMARY STEPS
1. config t
2. interface ethernet number
3. ip address ip-address/length
4. show ip interface
5. copy running-config startup-config
DETAILED STEPS
Step 4
show ip interface
Example:
switch(config-if)# show ip interface
(Optional) Displays interfaces configured for IPv4.
Step 5
copy running-config startup-config
Example:
switch(config-if)# copy running-config
startup-config
(Optional) Saves this configuration change.
Command Purpose
Command Purpose
Step 1
config t
Example:
switch# config t
switch(config)#
Enters configuration mode.
Step 2
interface ethernet
number
Example:
switch(config)# interface ethernet 2/3
switch(config-if)#
Enters interface configuration mode.