34-5
Catalyst 6500 Series Switch Software Configuration Guide—Release 8.7
OL-8978-04
Chapter 34 Configuring NTP
Configuring NTP on the Switch
To configure authentication, perform this task in privileged mode:
This example shows how to configure the NTP server address, enable NTP client and authentication
modes on the switch, and verify the configuration:
Console> (enable)
set ntp server 172.20.52.65 key 879
NTP server 172.20.52.65 with key 879 added.
Console> (enable)
set ntp client enable
NTP Client mode enabled
Console> (enable)
set ntp authentication enable
NTP authentication feature enabled
Console> (enable)
show ntp
Current time: Tue Jun 23 1998, 20:29:25
Timezone: '', offset from UTC is 0 hours
Summertime: '', disabled
Last NTP update: Tue Jun 23 1998, 20:29:07
Broadcast client mode: disabled
Broadcast delay: 3000 microseconds
Client mode: enabled
Authentication: enabled
NTP-Server
Server Key
---------------------------------------- ----------
172.16.52.65
Key Number
Mode
Key String
----------
---------
--------------------------------
Console> (enable)
Setting the Time Zone
You can specify a time zone for the switch to display the time in that time zone. You must enable NTP
before you set the time zone. If NTP is not enabled, this command has no effect. If you enable NTP and
do not specify a time zone, UTC is shown by default.
To set the time zone, perform this task in privileged mode:
Task
Command
Step 1
Configure an authentication key pair for NTP and
specify whether the key is trusted or untrusted.
set ntp key
public_key
[
trusted
|
untrusted
]
md5
secret_key
Step 2
Specify the IP address of the NTP server and the
public key.
set ntp server
ip_addr
[key
public_key
]
Step 3
Enable NTP client mode.
set ntp client enable
Step 4
Enable NTP authentication.
set ntp authentication enable
Step 5
Verify the NTP configuration.
show ntp
[
noalias
]
Task
Command
Step 1
Set the time zone.
set timezone
zone hours
[
minutes
]
Step 2
Verify the time zone configuration.
show timezone