sntp

This topic explains the commands that set or reset a remote SNTP server for the switch.

Syntax

CODE
sntp <1-3> host hostname port <1-65535> [ver <1-4>]
no sntp <1-3>

Parameter

sntp <1-3>: Set the SNTP protocol version, which can be 1, 2, or 3.

hostname: Set the IP address or hostname of the SNTP server.

port <1-65535>: Set the port number of the SNTP server, which can be a number from 1 to 65,535.

ver <1-4>: Set the SNTP server version, which can be 1, 2, 3, or 4.

Default

No default SNTP server is defined. If you add an SNTP server, by default, the server version is 4. (You can configure a different version.)

Mode

Global Configuration

Usage

Use the sntp command to set a remote SNTP server.

Use the no sntp command to reset the SNTP configuration for a specific SNTP protocol version.

You can verify your SNTP settings in the output of the show sntp command.

Example

This example shows how to set a remote SNTP server for the switch:

CODE
switch(config)# sntp 1 host 192.168.0.100 port 123