Procedure
PurposeCommand or Action
Enters global configuration mode.switch# configure terminal
Step 1
Specifies an Ethernet interface to configure, and enters
interface configuration mode.
switch(config)# interface ethernet
slot/port
Step 2
Specifies an MTU size between 1500 (the default)
and 9000 bytes.
switch(config-if)# mtu size
Step 3
(Optional)
Displays the interface status, which includes the MTU
size.
switch( config-if)# show interface
ethernet slot/port
Step 4
(Optional)
Saves the change persistently through reboots and
restarts by copying the running configuration to the
startup configuration.
switch(config-if)# copy running-config
startup-config
Step 5
This example shows how to configure the Ethernet interface 3/1 with the default MTU size of 1500 bytes:
switch# configure terminal
switch# interface ethernet 3/1
switch(config-if)# mtu 1500
switch(config-if)#
Shutting Down and Activating an Interface
You can shut down and restart Ethernet or management interfaces.
Before You Begin
•
Log in to the CLI in EXEC mode.
•
Know that when you shut down an interface, it becomes disabled and the output of monitoring commands
show it as being down.
•
Know that when you activate an interface that has been shut down, you must restart the device.
Procedure
PurposeCommand or Action
Enters global configuration mode.switch# configure terminal
Step 1
Specifies an Ethernet interface to configure, and enters
interface configuration mode.
switch(config)# interface interface
Step 2
Disables the interface in the running configuration .switch(config-if)# shutdown
Step 3
Cisco Nexus 1000V for VMware vSphere Interface Configuration Guide, Release 5.x
17
Configuring Interface Parameters
Shutting Down and Activating an Interface