C613-50631-01 Rev A Command Reference for IE340 Series 3146
AlliedWare Plus™ Operating System - Version 5.5.3-0.x
NTP COMMANDS
NTP
SERVER
ntp server
Overview Use this command to configure an NTP server. This means that this system will
synchronize to the other system, and not vice versa. You can configure an NTP
server association by hostname or IP address.
Use the no variant of this command to remove the configured NTP server.
Syntax
ntp server {<serveraddress>|<servername>} [prefer] [key <key>]
[version <version>]
no ntp server {<serveraddress>|<servername>}
Mode Global Configuration
Examples To obtain the time by synchronizing with the server at 192.0.1.23, use the
commands:
awplus# configure terminal
awplus(config)# ntp server 192.0.1.23
To obtain the time by synchronizing with the server at 192.0.1.23, and specify that
this is the best server to use, use the commands:
awplus# configure terminal
awplus(config)# ntp server 192.0.1.23 prefer
To obtain the time by synchronizing with the server at 2001:0db8:010e::2, use the
commands:
awplus# configure terminal
awplus(config)# ntp server 2001:0db8:010e::2
To obtain the time by synchronizing with the server at 2001:0db8:010e::2, and
specify that this is the best server to use, use the commands:
awplus# configure terminal
awplus(config)# ntp server 2001:0db8:010e::2 prefer
Parameter Description
<serveraddress> Specify the IP address of the peer, entered in the form
A.B.C.D for an IPv4 address, or in the form X:X::X.X for
an IPv6 address.
<servername> Specify the server hostname. The server hostname can
resolve to an IPv4 and an IPv6 address.
prefer Prefer this server when possible.
key <key> Configure the server authentication key from the range 1
to 4294967295.
version <version> Configure for this NTP version from the range 1 to 4.