Disabling an interface from receiving NTP messages

When NTP is enabled, all interfaces by default can receive NTP messages. For security purposes, you can disable some of the interfaces to receive NTP messages.

To disable an interface to receive NTP messages:

Step

Command

Remarks

1. Enter system view.

system-view

N/A

2. Enter interface view.

interface interface-type interface-number

N/A

3. Disable the interface to receive NTP messages.

  • For IPv4:
    undo
    ntp-service inbound enable

  • For IPv6:
    undo
    ntp-service ipv6 inbound enable

By default, an interface receives NTP messages.