ntp-service server disable

Function

The ntp-service server disable command disables NTP server functionality.

The undo ntp-service server disable command enables NTP server functionality.

The ntp-service ipv6 server disable command disables NTP IPv6 server functionality.

The undo ntp-service ipv6 server disable command enables NTP IPv6 server functionality.

By default, the NTP server functionality is enabled. NTP server functionality will be disabled when the first configuration of the NTP function takes effect.

Format

ntp-service [ ipv6 ] server disable

undo ntp-service [ ipv6 ] server disable

Parameters

Parameter Description Value
ipv6

Indicates NTP IPv6 services.

-

Views

System view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
ntp write

Usage Guidelines

Usage Scenario

By default, the NTP server functionality is enabled. For the security purpose, NTP server functionality will be disabled when the first configuration of the NTP function takes effect. User need to undo the command to enable server functionality.

By default, the NTP IPv6 server functionality is enabled. For the security purpose, NTP IPv6 server functionality will be disabled when the first configuration of the NTP function takes effect. User need to undo the command to enable IPv6 server functionality.

Configuration Impact

Running the ntp-service [ipv6] server disable command disables IPv4 or IPv6 NTP server functionality.

Precautions

To enhance system security, the NTP IPv4 server by default does not process the packets sent from interfaces or addresses. To ensure that the server can properly process the synchronization requests from a client, run the ntp-service server source-interface command to configure the server to listen to the source interface or the ntp-service server source-interface all enable command to configure the server to listen to all interfaces.

To enhance system security, the NTP IPv6 server by default does not process the packets sent from interfaces or addresses. To ensure that the server can properly process the synchronization requests from a client, run the ntp-service ipv6 server source-address command to configure the NTP server to listen to the source address or the ntp-service ipv6 server source-interface all enable command to configure the server to listen to all interfaces.

Example

# Disable IPv4 NTP server functionality.
<HUAWEI> system-view
[~HUAWEI] ntp-service server disable
# Disable IPv6 NTP server functionality.
<HUAWEI> system-view
[~HUAWEI] ntp-service ipv6 server disable
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >