< Home

ntp-service disable

Function

The ntp-service disable command disables the IPv4 and IPv6 NTP function.

The undo ntp-service disable command enables the IPv4 and IPv6 NTP function.

By default, the NTP function is enabled.

Format

ntp-service [ ipv6 ] disable

undo ntp-service [ ipv6 ] disable

Parameters

Parameter Description Value
ipv6 Indicates IPv6 NTP services. -

Views

System view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

Run the ntp-service disable or ntp-service ipv6 disable command in the system view to disable the IPv4 or IPv6 NTP service function.

You can run the ntp-service disable command in either of the following situations:
  • The device does not need to synchronize clock with IPv4 or IPv6 external servers or peers.

  • The device does not need to provide reference clock source for IPv4 or IPv6 external clients.

Precautions

Disabling of NTP service will not delete the existing configurations.

After the NTP service is enabled, the system listens to IP address 0.0.0.0 by default. That is, the system listens to all IP addresses, which is prone to security issues. It is recommended that you run the ntp-service access { peer | query | server | synchronization | limited } { acl-number | ipv6 acl6-number } * command to configure access control permission on the local NTP service. You can also run the ntp-service authentication enable command to configure NTP identify authentication.

Example

# Disable the IPv4 NTP service.

<HUAWEI> system-view
[HUAWEI] ntp-service disable

# Disable the IPv6 NTP service.

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