Add sntpserver peer|ipaddress – Allied Telesis AT-S63 User Manual

Page 74

Advertising
background image

Chapter 4: Simple Network Time Protocol (SNTP) Commands

74

Section I: Basic Operations

ADD SNTPSERVER PEER|IPADDRESS

Syntax

add sntpserver peer|ipaddress=

ipaddress

Parameter

peer or

Specifies the IP address of an SNTP server. These

ipaddress

parameters are equivalent.

Description

This command adds the IP address of an SNTP or NTP server to the
SNTP client on the switch. The switch uses the SNTP or NTP server to set
its date and time. You can specify only one SNTP or NTP server.

Note

The switch must have a routing interface on the local subnet where
the SNTP or NTP server is a member. The switch uses the IP
address of the interface as its source address when sending packets
to the server. For instructions on how to add a routing interface to
the switch, refer to “ADD IP INTERFACE” on page 558.

If the routing interface obtains its IP address and subnet mask from
a DHCP sever, you can configure the DHCP server to provide the
switch with an IP address of an NTP or SNTP server. If you
configured the DHCP server to provide this address, then you do not
need to enter it in this command.

Example

The following command specifies the IP address of 148.35.16.248 for the
SNTP server:

add sntpserver ipaddress=148.35.16.248

Advertising