System Management Commands
4-69
4
ntp server
This command sets the IP addresses of the servers to which NTP time requests are
issued. Use the no form of the command to clear a specific time server or all servers
from the current list.
Syntax
ntp server ip-address [version number] [key key-number]
no ntp server [ip-address]
• ip-address - IP address of an NTP time server.
• number - The NTP version number supported by the server. (Range: 1-3)
• key-number - The number of an authentication key to use in
communications with the server. (Range: 1-65535)
Default Setting
Version number: 3
Command Mode
Global Configuration
Command Usage
• This command specifies time servers that the switch will poll for time updates
when set to NTP client mode. It issues time synchronization requests based
on the interval set with the ntp poll command. The client will poll all the time
servers configured, the responses received are filtered and compared to
determine the most reliable and accurate time update for the switch.
• You can configure up to 50 NTP servers on the switch. Re-enter this
command for each server you want to configure.
• NTP authentication is optional. If enabled with the ntp authenticate
command, you must also configure at least one key number using the ntp
authentication-key command.
•Use the no form of this command without an argument to clear all configured
servers in the list.
Example
Related Commands
ntp client (4-68)
ntp poll (4-70)
show ntp (4-72)
Console(config)#ntp server 192.168.3.20
Console(config)#ntp server 192.168.3.21
Console(config)#ntp server 192.168.4.22 version 2
Console(config)#ntp server 192.168.5.23 version 3 key 19
Console(config)#