
S e n d f e e d b a c k t o n x 5 0 0 0 - d o c f e e d b a c k @ c i s c o . c o m
1-20
Cisco Nexus 5000 Series Switch CLI Software Configuration Guide
OL-16597-01
Chapter 1 Configuring the Switch
Management Interface Configuration
Note
Before you begin to configure the management interface manually, obtain the switch’s IP address and
subnet mask. Also make sure that the console cable is connected to the console port.
Configuring the Management Interface
To configure the management (mgmt0) Ethernet interface to connect over IP, perform this task:
In some cases, a switch interface might be administratively shut down. You can check the status of an
interface at any time by using the
show interface mgmt 0
command.
Command
Purpose
Step 1
switch#
configure terminal
Enters configuration mode.
Step 2
switch(config)#
interface mgmt 0
Selects the management Ethernet interface on the switch
and enters interface configuration submode.
Step 3
switch(config-if)#
ip address
ipv4-address
[
/
length
]
Configures the IPv4 address and its subnet mask.
switch(config-if)#
ip address
ipv4-address
[
subnet-mask
]
An alternative method that configures the IPv4 address
and its subnet mask.
switch(config-if)#
ipv6 address
ipv6-address
[
/
length
]
Configures the IPv6 address and its subnet mask.
Step 4
switch(config-if)#
no shutdown
Enables the interface.
Step 5
switch(config-if)#
exit
Returns to configuration mode.
Step 6
switch(config)#
vrf context
management
Enters VRF context management configuration mode.
Step 7
switch(config-vrf)#
ip route
ipv4-prefix
[
/
length
]
ipv4-nexthop-address
Configures the IPv4 address of the next hop.
switch(config-vrf)#
ipv6 route
ipv6-prefix
[
/
length
]
ipv6-nexthop-address
Configures the IPv6 address of the next hop.
Step 8
switch(config-vrf)#
exit
Returns to EXEC mode.
Step 9
switch#
copy running-config
startup-config
(Optional) Saves your configuration changes to the file
system.