3.1.4 NTP Configuration

Configure the unit NTP Servers IP. The NTP Server updates the unit with the correct Greenwich Mean Time (GMT).

Use this command to enable or disable NTP server and specify its parameters. Up to 5 NTP servers can be configured.

Command Syntax:

ntp 
ntp server <index_var> ip-address { <ipv4_var> | <ipv6_var> | <name_var> }
Table 3-12. Command Description

Argument

Description

Parameter

<index_var>

NTP Server index. The value ranges from 1–5.

<ipv4_var>

IPv4 address of NTP server

<ipv6_var>

IPv6 address of NTP server

<name_var>

Domain name of NTP server

Default

N.A

Mode

Global Configuration mode

Usage

Enable the NTP server by entering ntp command. To disable, use the ‘no’ version of the command.

Specify the parameters of NTP server by entering ntp server command. To delete the specified NTP server, use the ‘no’ version of the command.

Example

Example 1:

Add NTP server 1 with IP address 192.168.1.2.

(config)#ntp server 1 ip-address 192.168.1.2

Example 2:

Add NTP server 2 with domain name ntp.microchip.com.

(config)#ntp server 2 ip-address ntp.microchip.com

Example 3:

Enable the NTP server.

(config)#ntp