Configuring the Local Source Interface for Sending and Receiving NTP Packets
You can configure a local source interface for sending and receiving NTP packets to prevent the IP addresses of other interfaces on the device becoming the destination address of a reply packet. This facilitates deployment of traffic control policies.
Prerequisites
All configurations of basic NTP functions have been completed.
If the ntp-service unicast-server or the ntp-service unicast-peer command specifies the source interface of NTP packets, the specified source interface takes effect.
Procedure
- Run:
system-view
The system view is displayed.
- Run:
ntp-service source-interface interface-type interface-number [ vpn-instance vpn-instance-name ]
The local source interface for sending and receiving NTP packets is configured.
By default, the local source interface for sending NTP packets is not specified. The source IP address of an NTP packet is selected according to the route.
In broadcast and multicast modes, the NTP service is performed on the source interface and the ntp-service source-interface command does not take effect.
If the specified NTP source interface is in Down state, the source IP address of a sent NTP packet is the primary IP address of the packet's outbound interface.