You can change the device hostname displayed in the command prompt from the default (switch) to another character string. When you give the device a unique hostname, you can easily identify the device from the command-line interface (CLI) prompt.
Management Interface
The management interface allows multiple simultaneous Telnet or SNMP
sessions. You can remotely configure the device through the management
interface (mgmt0), but first you must configure some IP parameters so that the
switch is reachable. You can manually configure the management interface from
the CLI. You can configure the mgmt 0 interface with either IPv4 address
parameters or an IPv6 address.
On devices with dual supervisor modules, a single IP address is used to
manage the switch. The active supervisor module's mgmt0 interface uses this IP
address. The mgmt0 interface on the standby supervisor module remains in an
inactive state and cannot be accessed until a switchover happens. After a
switchover, the mgmt0 interface on the standby supervisor module becomes active
and assumes the same IP address as the previously active supervisor module.
The management port (mgmt0) is autosensing and operates in full duplex
mode at a speed of 10/100/1000 Mbps (1000 Mbps is only
available on the Supervisor-2 module). Autosensing supports both the speed
and the duplex mode.
On a Supervisor-1 module, the default speed is
100 Mbps and the default duplex mode is auto. On a Supervisor-2 module, the
default speed is auto and the default duplex mode is auto.
Default Gateway
Figure 1. Default Gateway. The supervisor module sends IP packets with unresolved destination
IPv4 addresses to the default gateway.
Message-of-the-Day Banner
The message-of-the-day (MOTD) banner displays before the user login prompt on the device. This message can contain any information that you want to display for users of the device.
Device Clock
If you do not synchronize your device with a valid outside timing
mechanism, such as an NTP clock source, you can manually set the clock time
when your device boots.
Time Zone and Summer Time (Daylight Saving Time)
You can configure the time zone and summer time (daylight saving time) setting for your device. These values offset the clock time from Coordinated Universal Time (UTC). UTC is International Atomic Time (TAI) with leap seconds added periodically to compensate for the Earth's slowing rotation. UTC was formerly called Greenwich Mean Time (GMT).
User Sessions
You can display the active user session on your device. You can also
send messages to the user sessions. For more information about managing user
sessions and accounts, see the
Cisco Nexus Security Configuration guide for your device.
Telnet Server Connection
The Telnet server is disabled by default on all switches in the Cisco
MDS 9000 Family. You can enable the Telnet server if you do not require a
secure SSH connection. However, if you require a secure SSH connection, you
need to disable the default Telnet connection and then enable the SSH
connection.
Changes the device hostname. The name argument is alphanumeric, case sensitive, and has a maximum length of 32 characters. The default is switch.
Note
The switchname command performs the same function as the hostname command.
Step 3
exit
Example:
Engineering2(config)# exit
Engineering2#
Exits global configuration mode.
Step 4
copy running-config startup-config
Example:
Engineering2# copy running-config startup-config
(Optional)
Copies the running configuration to the startup configuration.
Configuring the Management Interface
You can manually configure the management interface from the CLI. You
can configure the mgmt 0 interface with either IPv4 address parameters or an
IPv6 address.
Note
You only need to configure the mgmt0 interface on the active supervisor module. When a supervisor module switchover occurs, the new active supervisor module uses the same configuration for the mgmt0 interface.
Copies the running configuration to the startup configuration.
Configuirng the Default Gateway
You can manually configure the management interface from the CLI. You
can configure the mgmt 0 interface with either IPv4 address parameters or an
IPv6 address.
Before You Begin
Establish a connection on the console port.
SUMMARY STEPS
1.configure terminal
2.ip default gatewayipv4-address
3.
(Optional) show ip route
4.
(Optional) copy running-config startup-config
DETAILED STEPS
Command or Action
Purpose
Step 1
configure terminal
Example:
switch# configure terminal
switch(config)#
Enters global configuration mode.
Step 2
ip default gatewayipv4-address
Example:
switch(config)# ip default-gateway 172.16.1.1
Configures the IPv4 address for the default gateway.
Configures the time zone. The zone-name argument is a 3-character string for the time zone acronym (for example, PST or EST). The offset-hours argument is the offset from the UTC and the range is from –23 to 23 hours. The range for the offset-minutes argument is from 0 to 59 minutes.
Step 3
exit
Example:
switch(config)# exit
switch#
Exits global configuration mode.
Step 4
show clock
Example:
switch# show clock
(Optional)
Displays the time and time zone.
Step 5
copy running-config startup-config
Example:
switch# copy running-config startup-config
(Optional)
Copies the running configuration to the startup configuration.
Configuring Summer Time (Daylight Saving Time)
You can configure when summer time, or daylight saving time, is in effect for the device and the offset in minutes.
switch(config)# clock summer-time PDT
1 Sunday March 02:00 1 Sunday
November 02:00 60
Configures summer time or daylight saving time.
The zone-name argument is a three character string for the time zone acronym (for example, PST and EST).
The values for the start-day and end-day arguments are Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, and Sunday.
The values for the start-month and end-month arguments are January, February, March, April, May, June, July, August, September, October, November, and December.
The value for the start-time and end-time arguments are in the format hh:mm.
The range for the offset-minutes argument is from 0 to 1440 minutes.
Step 3
exit
Example:
switch(config)# exit
switch#
Exits global configuration mode.
Step 4
show clock detail
Example:
switch(config)# show clock detail
(Optional)
Displays the configured MOTD banner.
Step 5
copy running-config startup-config
Example:
switch# copy running-config startup-config
(Optional)
Copies the running configuration to the startup configuration.
Manually Setting the Device Clock
You can set the clock manually if your device cannot access a remote time source.
Before You Begin
Configure the time zone.
SUMMARY STEPS
1.clock set time day month year
2.
(Optional) show clock
DETAILED STEPS
Command or Action
Purpose
Step 1
clock set time day month year
Example:
switch# clock set 15:00:00 30 May 2008
Fri May 30 15:14:00 PDT 2008
Configures the device clock.
The format for the time argument is hh:mm:ss.
The range for the day argument is from 1 to 31.
The values for the month argument are January, February, March, April, May, June, July, August, September, October, November, and December.
The range for the year argument is from 2000 to 2030.