Displaying and maintaining ntp, Ntp configuration examples, Ntp client/server mode configuration example – H3C Technologies H3C SecPath F1000-E User Manual

Page 123: Network requirements, Configuration procedure

Advertising
background image

112

Displaying and maintaining NTP

Task Command

Remarks

Display information about NTP
service status.

display ntp-service status [ |
{ begin | exclude | include }

regular-expression ]

Available in any view

Display information about NTP
sessions.

display ntp-service sessions
[ verbose ] [ | { begin | exclude |

include } regular-expression ]

Available in any view

Display brief information about the
NTP servers from the local device

back to the primary reference
source.

display ntp-service trace [ | { begin
| exclude | include }

regular-expression ]

Available in any view

NTP configuration examples

NTP client/server mode configuration example

In this configuration example, either Device A or Device B is the SecPath firewall.

Network requirements

As shown in

Figure 50

, configure Device A as the reference source, with the stratum level 2. Configure

Device B to operate in client/server mode and use Device A as its NTP server.

Figure 50 Network diagram

Configuration procedure

1.

Set the IP address for each interface as shown in

Figure 50

. (Details not shown.)

2.

Configuration on Device A:
# Specify the local clock as the reference source, with the stratum level of 2.

<DeviceA> system-view

[DeviceA] ntp-service refclock-master 2

3.

Configuration on Device B:
# View the NTP status of Device B before clock synchronization.

<DeviceB> display ntp-service status

Clock status: unsynchronized

Clock stratum: 16

Reference clock ID: none

Nominal frequency: 64.0000 Hz

Actual frequency: 64.0000 Hz

Clock precision: 2^7

Advertising