set system ntp source-interface
The set system ntp source-interface command configures the local source interface that sends NTP packets.
Command Syntax
set system ntp source-interface <source-interface>
Parameter
Parameter | Description |
source-interface <vlan-interface> | Specifies the NTP source interface. The value could be eth0, L3 VLAN interface, loopback interface, routed interface or sub-interface. Indicates the local interface that sends the NTP packets. |
Usage Guidelines
Configure the local source interface for sending/receiving NTP packets, so that the IP address of another interface on the device cannot be used as the destination address of a reply packet, which is convenient for a user to subsequently deploy a flow control policy.
Notes:
- If the NTP source interface is configured, the source interface will be used for the NTP connection.
- If the user defined VRF is configured, and NTP is enabled (in default VRF or management VRF) without configuring the NTP source interface, the system will continuously print an error syslog like the following.
Apr 13 2021 15:05:47 Xorplus daemon.info : failed to init interface for address 22.1.1.201
Apr 13 2021 15:10:47 Xorplus daemon.err : bind(41) AF_INET 21.1.1.201#123 flags 0x19 failed: Cannot assign requested address
Example
- Configure the local source interface that sends NTP packets.
admin@Xorplus# set system ntp source-interface vlan100 admin@Xorplus# commit
Copyright © 2024 Pica8 Inc. All Rights Reserved.