C613-50631-01 Rev A Command Reference for IE340 Series 3141
AlliedWare Plus™ Operating System - Version 5.5.3-0.x
NTP COMMANDS
NTP
PEER
ntp peer
Overview Use this command to configure an NTP peer association. An NTP association is a
peer association if this system is willing to either synchronize to the other system,
or allow the other system to synchronize to it.
Use the no variant of this command to remove the configured NTP peer
association.
Syntax
ntp peer {<peeraddress>|<peername>} [prefer] [key <key>]
[version <version>]
no ntp peer {<peeraddress>|<peername>}
Mode Global Configuration
Examples To set an NTP peer association for this peer with an IPv4 address of 192.0.2.23, use
the commands:
awplus# configure terminal
awplus(config)# ntp peer 192.0.2.23
To remove an NTP peer association for this peer with an IPv4 address of 192.0.2.23,
use the commands:
awplus# configure terminal
awplus(config)# no ntp peer 192.0.2.23
To set an NTP peer association for this peer with an IPv6 address of
2001:0db8:010d::1, use the commands:
awplus# configure terminal
awplus(config)# ntp peer 2001:0db8:010d::1
Parameter Description
<peeraddress> 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.
<peername> Specify the peer hostname. The peer hostname can resolve
to an IPv4 and an IPv6 address.
prefer Prefer this peer when possible.
key <key> <1-4294967295>
Configure the peer authentication key.
version <version> <1-4>
Configure for this NTP version.