The ntp-service in-interface disable command disables an interface from receiving NTP packets.
The undo ntp-service in-interface disable command enables an interface to receive NTP packets.
By default, an interface is enabled to receive NTP packets.
Usage Scenario
The undo ntp-service [ ipv6 ] in-interface disable command provides a method for access control.
Prerequisites
Before an interface is disabled from receiving IPv6 NTP packets, the IPv6 function must be enabled on the interface.
# Disable VLANIF100 from receiving NTP packets.
<HUAWEI> system-view [HUAWEI] interface vlanif 100 [HUAWEI-Vlanif100] ntp-service in-interface disable
# Disable GigabitEthernet0/0/1 from receiving NTP packets.
<HUAWEI> system-view [HUAWEI] interface gigabitethernet 0/0/1 [HUAWEI-GigabitEthernet0/0/1] undo portswitch [HUAWEI-GigabitEthernet0/0/1] ntp-service in-interface disable