beautypg.com

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

Page 1669

background image

NTP Introduction and Configuration

Software Reference for x310 Series Switches

C613-50046-01 REV A

AlliedWare Plus

TM

Operating System - Version 5.4.4C

61.5

Configuration Example

NTP requires the IP module to be enabled and configured correctly.

The switch's implementation of NTP supports two modes: client and server mode. When a
synchronization request is received from a client (e.g. a PC on a LAN), the switch enters
server mode and responds with time information derived from the switch's own internal
clock. Periodically the switch enters client mode, sending synchronization requests to a
predefined peer to synchronize its own internal clock. The peer is assumed to be a primary
clock source or another switch connected directly to a primary clock source.

This example illustrates how to configure two switches, one at a Head Office and one at a
Regional Office, to provide a network time service. The Head Office switch is connected to
a primary time server and provides the most accurate time information. The switch at the
Regional Office uses the Head Office switch as its peer to avoid the cost of an additional
WAN connection but provides slightly less accurate time information.

To configure NTP on the switch, the NTP module must be enabled and an NTP peer must
be defined. NTP transfers time information in UTC format.

To set the switch to automatically change the time when summer time starts and ends,
enable a summer time offset setting.

Example configuration parameters for a network time service:

Site

Regional Office

Head Office

Switch Name

RG1

HO1

IP Address of Switch

10.5.35.114

10.12.25.4

IP Address of Peer

10.5.35.113

172.16.7.3

Step 1:

Enable NTP and define the NTP peer.

The NTP feature must be enabled on all switches that are to provide a network time
service. Each switch must have a peer defined where the switch synchronizes its own
internal clock. Enable NTP on the Head Office switch and specify a primary time server as
the peer by using the commands:

Note that you can also specify an IPv6 address for an NTP peer:

Step 2:

Configure the NTP parameters.

On each switch, the offset of local time from UTC time must be specified. In this example,
both switches are in the same time zone, which is 12 hours ahead of UTC time. Use the
following commands on both switches:

Note that the range of offset is <0-12>.

awplus#

configure terminal

awplus(config)#

ntp peer 172.16.7.3

awplus#

configure terminal

awplus(config)#

ntp peer 2001:0db8:010d::1

awplus(config)#

clock timezone utc plus 12