< Home

ntp-service max-distance

Function

The ntp-service max-distance command configures the maximum distance threshold value.

The undo ntp-service max-distance command restores the default value.

By default, the maximum distance threshold value is 1.

Format

ntp-service max-distance max-distance-value

undo ntp-service max-distance

Parameters

Parameter Description Value

max-distance-value

Indicates the maximum distance threshold value in seconds.

The value is an integer and ranges from 1 to 16, in seconds. The default value is 1.

Views

System view

Default Level

2: Configuration level

Usage Guidelines

ntp-service max-distance command is used at the client side. At the client side, NTP will calculate synchronization distance for each server and compare it with synchronization distance threshold value. If the synchronization distance exceeds synchronization distance threshold value, the client will not consider that server for clock synchronization. This command is used in the calculation of synchronization distance threshold value.

Example

# Set the NTP maximum distance to 16s.

<HUAWEI> system-view
[HUAWEI] ntp-service max-distance 16
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >