Alcatel-Lucent 6850-48 参考指南

下载
页码 3444
Network Time Protocol Commands
OmniSwitch CLI Reference Guide
September 2009
page 5-11
ntp key
Labels the specified authentication key identification as trusted or untrusted.
ntp key key [trusted | untrusted]
Syntax Definitions
key
The key number matching an NTP server.
trusted
Signifies that the specified key is trusted and can be used for authentica-
tion.
untrusted
Signifies that the specified key is not trusted and cannot be used for 
authentication. Synchronization will not occur with an untrusted authen-
tication key.
Defaults
By default, all authentication key are untrusted.
Platforms Supported
OmniSwitch 6400, 6850, 6855, 9000, 9000E
Usage Guidelines
• Authentication keys are stored in a key file and loaded into memory when the switch boots. The keys 
loaded into memory are not trusted until this command is used.The location of the file containing set of 
generated authentication keys is /flash/network/ntp.keys.
• Once the keys are loaded into software (on boot up of the switch), they must be activated by being 
labeled as trusted. A trusted key will authenticate with a server that requires authentication as long as 
the key matches the server key.
• New keys must be added manually to the key file. A newly added key will not be loaded into the 
switch software until th
 command is issued, or the switch is rebooted.
• An authentication key is composed of a 32-bit integer and 32-byte string of characters.  The integer 
format is hexadecimal.  For an NTP message to be authenticated the NTP client authentication key 
must match the key configured at the NTP server.  This means the authentication keys must be distrib-
uted in advance of configuring the NTP client.  If authentication is disabled but authentication key is 
present, the association will still be unauthenticated.
• By default all keys read from the ntp.conf key file are untrusted therefore keys must be set to ‘trusted’ 
status to allow NTP to use the key for authentication.
Examples
-> ntp key 5 trusted
-> ntp key 2 untrusted