Configuring ntp at the cli, Ntp configuration task list, Configuring ntp operation modes – H3C Technologies H3C SecBlade LB Cards User Manual

Page 128: Configuring the ntp client/server mode

Advertising
background image

118

After the configuration, you can see that the current system time displayed on the System Time

page is the same for Device A and Device B.

Configuring NTP at the CLI

NTP configuration task list

Task Remarks

Configuring NTP operation modes

Required.

Configuring the local clock as a reference source

Optional.

Configuring optional parameters for NTP

Optional.

Configuring access-control rights

Optional.

Configuring NTP authentication

Optional.

Configuring NTP operation modes

Devices can implement clock synchronization in one of the following modes:

Client/server mode—Configure only clients.

Symmetric mode—Configure only symmetric-active peers.

Broadcast mode—Configure both clients and servers.

Multicast mode—Configure both clients and servers.

Configuring the NTP client/server mode

If you specify the source interface for NTP messages by specifying the source interface source-interface

option, NTP uses the primary IP address of the specified interface as the source IP address of the NTP

messages.
A device can act as a server to synchronize other devices only after it is synchronized. If a server has a
stratum level higher than or equal to a client, the client does not synchronize to that server.
In the ntp-service unicast-server command, ip-address must be a unicast address, rather than a

broadcast address, a multicast address or the IP address of the local clock.
To specify an NTP server on the client:

Step Command

Remarks

1.

Enter system view.

system-view

N/A

2.

Specify an NTP server for the
device.

ntp-service unicast-server
{ ip-address | server-name }

[ authentication-keyid keyid |

priority | source-interface
interface-type interface-number |

version number ] *

By default, no NTP server is
specified.
You can configure multiple servers
by repeating the command. The

clients will select the optimal

reference source.

Advertising
This manual is related to the following products: