beautypg.com

Ntp server – Allied Telesis AlliedWare Plus Operating System Version 5.4.4C (x310-26FT,x310-26FP,x310-50FT,x310-50FP) User Manual

Page 1679

background image

NTP Commands

Software Reference for x310 Series Switches

C613-50046-01 REV A

AlliedWare Plus

TM

Operating System - Version 5.4.4C

62.9

ntp server

Use this command to configure an NTP server. This means that this system will
synchronize to the other system, and not vice versa.

Use the no variant of this command to remove the configured NTP server.

Syntax

ntp server {<serveraddress>|<servername>}

ntp server {<serveraddress>|<servername>}

[prefer] [key <key>] [version <version>]

no ntp server {<serveraddress>|<servername>}

Mode

Global Configuration

Examples

See the following commands for options to configure an NTP server association, key and
NTP version for the server with an IPv4 address of 192.0.1.23:

To remove an NTP peer association for this peer with an IPv4 address of 192.0.1.23,
use the following commands:

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>

<1-4294967295>

Configure the server authentication key.

version <version>

<1-4>

Configure for this NTP version.

awplus#

configure terminal

awplus(config)#

ntp server 192.0.1.23

awplus(config)#

ntp server 192.0.1.23 prefer

awplus(config)#

ntp server 192.0.1.23 prefer version 4

awplus(config)#

ntp server 192.0.1.23 prefer version 4 key 1234

awplus(config)#

ntp server 192.0.1.23 version 4 key 1234

awplus(config)#

ntp server 192.0.1.23 version 4

awplus(config)#

ntp server 192.0.1.23 key 1234

awplus#

configure terminal

awplus(config)#

no ntp server 192.0.1.23