ntp authentication-key
Syntax
ntp authentication-key {md5 | sha1} [trusted] no ntp authentication-key
描述
Defines an authentication key that is used to secure the exchange with an NTP time server. This command provides protection against accidentally synchronizing to a time source that is not trusted.
The没有
form of this command removes an authentication key.Command context
config
Parameters
-
authentication-key
-
具体的es an identification number to uniquely identify the key. Range: 1 to 65534.
-
md5
-
具体的es md5 encryption to protect the key.
-
sh1
-
具体的es sh1 encryption to protect the key
-
-
具体的es the md5 or sh1 password associated with the key. Range: 8 to 16 characters.
-
trusted
-
具体的es that this is a trusted key. When NTP authentication is enabled, the switch only synchronizes with time servers that transmit packets containing a trusted key.
权威
Administrators or local user group members with execution rights for this command.
Examples
Defining key 10 with themd5passwordmyPassword作为一个值得信赖的关键:
switch(config)#ntp authentication-key 10 md5 myPassword trusted
Removing key 10:
switch(config)#没有ntp authentication-key 10