Configuring NTP
The Network Time Protocol (NTP) is used to synchronize the internal clocks of network devices. This is helpful for troubleshooting network problems by correlating events on different network devices using, for example, Syslog messages. NTP provides the switch with a mechanism to accurately update its clock to be consistent with the clocks of other network devices within a precision of one millisecond. NTP uses User Datagram Protocol (UDP) to communicate across the network.
To configure the NTP server, use the following command:
Reference
Command | [no] ntp <ip4addr | ip6addr > |
Description | NTP server configuration |
Parameters | IPv4 or v6 Address - Router IP |
Mode | CONFIG |
Example
To display the NTP server information, use the following command:
Reference
Command | show ntp |
Description | Show NTP configuration |
Parameters | None |
Mode | EXEC |