beautypg.com

Displaying and maintaining ntp, Ntp configuration examples – H3C Technologies H3C SecPath F1000-E User Manual

Page 127

background image

15

To do…

Use the command…

Remarks

Enter system view

system-view

Enable NTP authentication

ntp-service authentication
enable

Required
Disabled by default

Configure an NTP authentication
key

ntp-service
authentication-keyid
keyid
authentication-mode md5

value

Required
No NTP authentication key by
default

Configure the key as a trusted key

ntp-service reliable
authentication-keyid
keyid

Required
By default, no authentication key is

configured to be trusted.

Enter interface view

interface interface-type
interface-number

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.

NOTE:

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

Display information about NTP
service status

display ntp-service status

Available in any view

Display information about NTP
sessions

display ntp-service sessions
[ verbose ]

Available in any view

Display the brief information about
the NTP servers from the local

device back to the primary
reference source

display ntp-service trace

Available in any view

NTP Configuration Examples

NOTE:

Unless otherwise specified, the examples given in this section apply to all switches and routers that support
NTP.