Configuring optional parameters for ntp, Specifying the source interface for ntp messages, Disabling an interface from receiving ntp messages – H3C Technologies H3C WX3000E Series Wireless Switches User Manual
Page 27
18
Configuring optional parameters for NTP
Specifying the source interface for NTP messages
If you specify the source interface for NTP messages, the device sets the source IP address of the NTP
messages as the primary IP address of the specified interface when sending the NTP messages.
When the device responds to an NTP request received, the source IP address of the NTP response is
always the IP address of the interface that received the NTP request.
If you have specified the source interface for NTP messages in the ntp-service unicast-server or
ntp-service unicast-peer command, the interface specified in the ntp-service unicast-server or
ntp-service unicast-peer command serves as the source interface of NTP messages.
If you have configured the ntp-service broadcast-server or ntp-service multicast-server command, the
source interface of the broadcast or multicast NTP messages is the interface configured with the
respective command.
If the specified source interface goes down, NTP uses the primary IP address of the outgoing interface as
the source IP address.
To specify the source interface for NTP messages:
Step Command
Remarks
1.
Enter system view.
system-view
N/A
2.
Specify the source interface
for NTP messages.
ntp-service source-interface
interface-type interface-number
By default, no source interface is
specified for NTP messages, and
the system uses the IP address of
the interface determined by the
matching route as the source IP
address of NTP messages.
Disabling an interface from receiving NTP messages
When NTP is enabled, NTP messages are received from all the interfaces by default, and you can
disable an interface from receiving NTP messages through the following configuration.
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 from
receiving NTP messages.
ntp-service in-interface disable
An interface is enabled to receive
NTP messages by default.