Displaying and maintaining ntp, Ntp configuration examples, Configuring ntp client/server mode – H3C Technologies H3C WX6000 Series Access Controllers User Manual

Page 83: Network requirements, Configuration procedure

Advertising
background image

6-15

To do…

Use the command…

Remarks

Broadcast server mode:

ntp-service broadcast-server
authentication-keyid keyid

Associate the specified key with an
NTP server

Multicast server mode:

ntp-service multicast-server
authentication-keyid
keyid

Required

You can associate a non-existing
key with an NTP server. To enable
NTP authentication, you must
configure the key and specify it as
a trusted key after associating the
key with the NTP server.

The procedure of configuring NTP authentication on a server is the same as that on a client, and the

same authentication key must be configured on both the server and client sides.

Displaying and Maintaining NTP

To do…

Use the command…

Remarks

View the information of NTP service status

display ntp-service status

Available in any view

View the information of NTP sessions

display ntp-service sessions
[ verbose ]

Available in any view

View the brief information of the NTP
servers from the local AC back to the
primary reference source

display ntp-service trace

Available in any view

NTP Configuration Examples

Configuring NTP Client/Server Mode

Network requirements

z

The local clock of Switch is to be used as a reference source, with the stratum level of 2.

z

AC works in the client/server mode and Switch is to be used as the NTP server of AC.

Figure 6-7 Network diagram for NTP client/server mode configuration

Configuration procedure

1) Configuration on Switch:

# Specify the local clock as the reference source, with the stratum level of 2.

<Switch> system-view

[Switch] ntp-service refclock-master 2

2) Configuration on AC:

# View the NTP status of AC before clock synchronization.

Advertising