< Home

ntp-service max-dynamic-sessions

Function

The ntp-service max-dynamic-sessions command sets the maximum dynamic NTP sessions that can be set up.

The undo ntp-service max-dynamic-sessions command restores the maximum dynamic NTP sessions to the default value.

By default, a maximum of 100 NTP dynamic sessions can be set up.

Format

ntp-service max-dynamic-sessions number

undo ntp-service max-dynamic-sessions

Parameters

Parameter Description Value

number

Specifies the number of dynamic sessions that can be set up.

The value is an integer that ranges from 0 to 100, and the default value is 100.

Views

System view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

A maximum of 128 sessions can be established on the same device running the NTP service in the same period, including static and dynamic sessions. In both unicast server/client mode and symmetric peer mode, command lines are used to establish static sessions. The dynamic sessions are established in broadcast mode or multicast mode.

Excessive dynamic sessions directly affect the establishment of static sessions. A user can limit the number of local dynamic sessions solve this problem.

Precautions

When the number of local dynamic sessions on the device is limited:
  • This command limits the number of only dynamic sessions, not static sessions.
  • NTP dynamic sessions established are not affected. That is, when the number of the dynamic sessions exceeds the limit, the dynamic sessions established are not deleted, but a new dynamic session cannot be established.
  • The limit on the number of local dynamic sessions allowed should be configured on the client because the server does not record the number of the established NTP sessions.

Example

# Set the maximum number of NTP dynamic sessions that can be set up to 50.

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