27
[Sysname] ntp-service dscp 30
ntp-service enable
Use
ntp-service enable
to enable the NTP service.
Use
undo ntp-service enable
to disable the NTP service.
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.
<Sysname> 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
To disable an interface on the device from synchronizing the peer device in the corresponding subnet
or disable the device from being synchronized by the peer device in the subnet corresponding to an
interface, execute the
undo
ntp-service inbound enable
command on the interface.
Examples
# Disable VLAN-interface 1 from processing NTP messages.
<Sysname> system-view
[Sysname] interface vlan-interface 1
[Sysname-Vlan-interface1] undo ntp-service inbound enable