Syntax
ntp-service enable
undo ntp-service enable
Default
The NTP service is not enabled.
Views
System view
Predefined user roles
network-admin
Examples
# Enable the NTP service.
system-view
[Sysname] ntp-service enable
ntp-service inbound enable
Use ntp-service inbound enable to enable an interface to process NTP messages.
Use undo ntp-service inbound enable to disable an interface from processing NTP messages.
Syntax
ntp-service inbound enable
undo ntp-service inbound enable
Default
An interface processes NTP messages.
Views
Interface view
Predefined user roles
network-admin
Usage guidelines
Execute the undo ntp-service inbound enable command on an interface in the following cases:
•
You do not want the interface to synchronize the peer device in the corresponding subnet.
You do not want the device to be synchronized by the peer device in the subnet corresponding to
•
the interface.
Examples
# Disable GigabitEthernet 2/0/1 from processing NTP messages.
system-view
[Sysname] interface gigabitethernet 2/0/1
[Sysname-GigabitEthernet2/0/1] undo ntp-service inbound enable
100