exa1sw-ip(config)#ip ssh authentication-retries 3
exa1sw-ip(config)#ip ssh version 2
exa1sw-ip(config)#end
*Sep 15 14:26:37.045: %SYS-5-CONFIG_I: Configured from console by console
exa1sw-ip#write memory
Building configuration...
Compressed configuration from 2603 bytes to 1158 bytes[OK]
If the login command returns output as shown above, then telnet access has been
disabled. If instead you get a prompt, then disable telnet access.
exa1sw-ip(config-line)#no password
exa1sw-ip(config-line)#end
exa1sw-ip#write memory
Building configuration...
Compressed configuration from 3786 bytes to 1468 bytes [OK ]
12.
Set the clock and time zone. The switch keeps internal time in Coordinated
Universal Time (UTC) format.
•
To use UTC, use the following command:
no clock timezone global configuration
•
To use a time zone, use the following command:
clock timezone zone hours-offset [minutes-offset]
In the preceding command, zone is the time zone to display when standard
time in effect, hours-offset is the hours offset from UTC, and minutes-offset is
the minutes offset from UTC.
•
Daylight savings time (or summer time) is disabled by default. To set summer
time hours, use the following command:
clock summer-time zone recurring [week day monthhh:mm week day month \
hh:mm[offset]]
In the preceding command, zone is the time zone to be displayed when
summer time is in effect (EDT, for example), week is the week of the month (1
to 5 or last), day is the day of the week (Sunday, Monday, ...), month is the
month (January, February, ...), hh:mm is the hours and minutes in 24-hour
format, and offset is the number of minutes to add during summer time. The
default offset is 60 minutes.
•
To manually set the clock to any time use the following command, where the
time specified is relative to the configured time zone:
clock set hh:mm:ss month day year
In the preceding command, hh:mm:ss is the time in 24-hour format, day is the
day by date in the month, month is the name of the month, and year is the 4-
digit year.
To set the local time and time zone, ordering is important. For example, to set the
local time to US Eastern time:
exa1sw-ip#configure terminal
Enter configuration commands,one per line.End with CNTL/Z.
exa1sw-ip(config)#clock timezone EST -5
exa1sw-ip(config)#clock summer-time EDT recurring
exa1sw-ip(config)#end
exa1sw-ip#clock set 21:00:00 August 09 2017
Chapter 5
Configuring the Cisco Ethernet Switch
5-10