31 NTP CONFIGURATION GUIDE

NTP Client/Server

Mode Configuration

Defined in RFC 1305, the Network Time Protocol (NTP) synchronizes timekeeping
among distributed time servers and clients. NTP runs over the User Datagram
Protocol (UDP), using UDP port 123.
The purpose of using NTP is to keep consistent timekeeping among all
clock-dependent devices within the network so that the devices can provide
diverse applications based on the consistent time.
For a local system running NTP, its time can be synchronized by other reference
sources and can be used as a reference source to synchronize other clocks.
Network Diagram Figure82 Network diagram for NTP client/server mode configura tion
Networking and
Configuration
Requirements
The local clock of Device A (switch) is to be used as a reference source, with the
stratum level of 2.
Device B is a Switch 5500, which takes Device A as the time server.
Set Device B to work in the client mode, and Device A will automatically work
in the server mode.
Applicable Products
Configuration Procedure # Set Device B to take Device A as the time server.
<DeviceB> system-view
[DeviceB] ntp-service unicast-server 1.0.1.11
# View NTP status of Device B.
[DeviceB] display ntp-service status
# View NTP session information of Device B.
1.0.1.11/24 1.0.1. 12/24
Device A Device B
Product series Software version Hardware version
Switch 5500 Release V03.02.04 All versions
Switch 5500G Release V03.02.04 All versions
Switch 4500 Release V03.03.00 All versions
Switch 4210 Release V03.01.00 All versions