2.3.5. Sntp

Syntax

sntp host HOSTNAME [port <1-65535>]

no sntp

Parameter

HOSTNAME

Specify ip address or hostname of sntp server

sntp

Specify server port of sntp server

Default

No default SNTP server defined. Default server port is 123 when server created.

Mode

Global Configuration

Usage

Use the sntp command to set remote SNTP server. Use the no form of this command to default setting. You can verify your setting by entering the show sntp command.

Example

The example shows how to set remote SNTP server of switch.

Switch(config)# clock source sntp
Switch(config)# sntp host 192.168.1.100
Switch(config)# show sntp
SNTP is Enabled
SNTP Server address: 192.168.1.100
SNTP Server port: 123