Specifications
Send document comments to nexus3k-docfeedback@cisco.com.
2-8
Cisco Nexus 3000 Series NX-OS Unicast Routing Configuration Guide, Release 5.0(3)U2(2)
OL-25782-02
Chapter 2 Configuring IPv4
Configuring IPv4
4. ip address ip-address/length [secondary]
5. (Optional) show ip interface
6. (Optional) copy running-config startup-config
DETAILED STEPS
This example shows how to assign an IPv4 address:
switch# configure terminal
switch(config)# interface ethernet 2/3
switch(config-if)# no switchport
switch(config-if)# ip address 192.2.1.1 255.0.0.0
switch(config-if)# copy running-config startup-config
Command Purpose
Step 1
configure terminal
Example:
switch# configure terminal
switch(config)#
Enters configuration mode.
Step 2
interface ethernet number
Example:
switch(config)# interface ethernet 2/3
switch(config-if)#
Enters interface configuration mode.
Step 3
no switchport
Example:
switch(config-if)# no switchport
Configures the interface as a Layer 3 routed interface.
Step 4
ip address ip-address/length
[secondary]
Example:
switch(config-if)# ip address 192.2.1.1
255.0.0.0
Specifies a primary or secondary IPv4 address for an
interface.
• The network mask can be a four-part dotted
decimal address. For example, 255.0.0.0 indicates
that each bit equal to 1 means the corresponding
address bit belongs to the network address.
• The network mask can be indicated as a slash (/)
and a number - a prefix length. The prefix length
is a decimal value that indicates how many of the
high-order contiguous bits of the address
comprise the prefix (the network portion of the
address). A slash must precede the decimal value
and there is no space between the IP address and
the slash.
Step 5
show ip interface
Example:
switch(config-if)# show ip interface
(Optional) Displays interfaces configured for IPv4.
Step 6
copy running-config startup-config
Example:
switch(config-if)# copy running-config
startup-config
(Optional) Saves this configuration change.