Configuring optional parameters for ntp, Specifying the source interface for ntp messages, Configuration guidelines – H3C Technologies H3C MSR 50 User Manual
Page 48: Configuration procedure, Disabling an interface from receiving ntp messages
Step Command
Remarks
The value of the ip-address
argument must be 127.127.1.u,
where u represents the NTP
process ID in the range of 0 to 3.
57.
Configure the local clock as a
reference source.
ntp-service refclock-master
[ ip-address ] [ stratum ]
Configuring optional parameters for NTP
This section explains how to configure the 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.
Configuration guidelines
•
The source interface for NTP unicast messages is the interface specified in the ntp-service
unicast-server or ntp-service unicast-peer command.
•
The source interface for NTP broadcast or multicast messages is the interface where you configure
the ntp-service broadcast-server or ntp-service multicast-server command.
•
If the specified source interface goes down, NTP uses the primary IP address of the outgoing
interface as the source IP address.
Configuration procedure
To specify the source interface for NTP messages:
Step Command
Remarks
58.
Enter system view.
system-view
N/A
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.
59.
Specify the source interface
for NTP messages.
ntp-service source-interface
interface-type interface-number
Disabling an interface from receiving NTP messages
If NTP is enabled, NTP messages can be received from all the interfaces by default, and you can disable
an interface from receiving NTP messages through the following configuration.
To disable an interface from receiving NTP messages:
Step Command
Remarks
60.
Enter system view.
system-view
N/A
35