Cisco Nexus 5000 Series Switch CLI Software Configuration Guide, NX-OS 4.0(1a)N1 (OL-16597-01, January 2009)

Send feedback to nx5000-docfeedback@cisco.com
3-20
Cisco Nexus 5000 Series Switch CLI Software Configuration Guide
OL-16597-01
Chapter 3 Configuring the Switch
Management Interface Configuration
About the mgmt0 Interface
The mgmt0 interface on Cisco NX-OS devices provides out-of-band management, which enables you to
manage the device by its IPv4 or IPv6 address. The mgmt0 interface uses 10/100/1000 Ethernet.
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.
Displaying Management Interface Configuration
To display the management interface configuration, use the show interface mgmt 0 command.
switch# show interface mgmt0
mgmt0 is up
Hardware is GigabitEthernet, address is 000d.ec8f.cb00 (bia 000d.ec8f.cb00)
Internet Address is 172.16.131.202/24
MTU 1500 bytes, BW 0 Kbit, DLY 0 usec,
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.