Cisco Systems MDS 9020 manual Obtaining Remote Management Access, Using the force Option

Page 14

Chapter 3 Initial Configuration

Management Interface Configuration

Se n d d o c u m e n t a t i o n c o m m e n t s t o m d s f e e d b a ck - d o c @ c i s c o . c o m

Obtaining Remote Management Access

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.

To obtain remote management access, perform this task:

 

Command

Command

Step 1

 

 

switch# config terminal

Enters configuration mode. You can also abbreviate

 

switch(config)#

the command to config t.

Step 2

 

 

switch(config)# interface mgmt 0

Enters the interface configuration mode on the

 

 

specified interface (mgmt0).

 

 

You can use the management Ethernet interface on

 

 

the switch to configure the management interface.

Step 3

 

 

switch(config)# ip address 10.1.1.0

Enters the IP address and IP subnet mask for the

 

255.255.255.0

interface specified in Step 2.

Step 4

 

 

switch(config-if)# no shutdown

Enables the interface.

Step 5

 

 

switch(config-if)# exit

Returns to configuration mode.

Step 6

 

 

switch(config)# ip default-gateway

Configures the default gateway address.

 

10.1.1.1

 

 

 

 

Using the force Option

When you try to shut down a management interface (mgmt0), a follow-up message confirms your action before performing the operation. You can use the force option to bypass this confirmation. The following example shuts down the interface without using the force option:

Caution Do not shut down the mgmt0 port unless you have direct console access. If the management interface is shutdown, a console connection is the only way to regain access to the switch.

switch# config t

switch(config)# interface mgmt 0 switch(config-if)# shutdown

Shutting down this interface will drop all telnet sessions. Do you wish to continue (y/n)? y

The following example shuts down the interface using the force option:

switch# config t

switch(config)# interface mgmt 0 switch(config-if)#shutdown force

Note You need to explicitly configure a default gateway to connect to the switch and send IP packets or add a route for each subnet.

Cisco MDS 9020 Fabric Switch Configuration Guide and Command Reference

3-14

OL-6988-02

 

 

Image 14
Contents Initial Configuration Starting a Cisco MDS 9020 Fabric Switch Initial Setup RoutinePreparing to Configure the Switch Default LoginSetup Options SubnetworkAssigning Setup Information Enter yes to enter the setup modeEnter a name for the switch Enter yes no is the default to create additional accountsEnter the user password Enter the default gateway IP addressEnter yes yes is default to use and save this configuration Enter no no is the default to disable the SSH serviceEnter no no is the default to not configure the NTP server Using the setup Command Accessing the Switch 2illustrates serial console access and out-of-band accessVerifying the Status of the Switch Assigning a Switch NameWhere Do You Go Next? Configuring Date and Time Configuring the Time ZoneAdjusting for Daylight Saving Time Management Interface Configuration NTP ConfigurationObtaining Remote Management Access Using the force OptionDefault Gateway Configuration Configuring the Default GatewayTelnet Server Connection Working with Configuration FilesDisables the Telnet server Disabling a Telnet ConnectionDisplaying Configuration Files Initial Configuration Working with Configuration Files Downloading Configuration Files to the Switch Saving Configuration Files to an External DeviceCopying Files Saving the ConfigurationBacking Up the Current Configuration Rolling Back to a Previous Configuration Deleting FilesInitial Configuration Deleting Files