< Home

ntp-service port

Function

The ntp-service port command changes the number of the port that sends NTP packets.

The undo ntp-service port command restores the default port number.

By default, port 123 sends NTP packets.

Format

ntp-service port port-value

undo ntp-service port

Parameters

Parameter Description Value
port-value Specifies the number of the port that sends NTP packets. The value is an integer ranging from 1025 to 65535.
NOTE:

The port-value can be set to the default port 123.

Views

System view

Default Level

2: Configuration level

Usage Guidelines

To improve security of network packets, run the ntp-service port command to configure the number of the port that sends NTP packets. Therefore, the user firewall filters packets based on the port number.

Example

# Set the number of the port that sends NTP packets to 5000.

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