378 CHAPTER 35: NTP CONFIGURATION
n
The procedure for configuring NTP authentication on the server is the same as that
on the client. Besides, the client and the server must be configured with the same
authentication key.
Configuring Optional
NTP Parameters
Configuring an Interface
on the Local Switch to
Send NTP messages
c
CAUTION: If you have specified an interface in the ntp-service unicast-server or
ntp-service unicast-peer command, this interface will be used for sending NTP
messages.
Configuring the Number
of Dynamic Sessions
Allowed on the Local
Switch
A single device can have a maximum of 128 associations at the same time,
including static associations and dynamic associations. A static association refers
to an association that a user has manually created by using an NTP command,
while a dynamic association is a temporary association created by the system
during operation. A dynamic association will be removed if the system fails to
receive messages from it over a specific long time. In the server/client mode, for
example, when you carry out a command to synchronize the time to a server, the
system will create a static association, and the server will just respond passively
Associate the
specified key
with the
correspondin
g
broadcast/m
ulticast client
Configure on
the NTP
broadcast server
ntp-service
broadcast-server
authentication-keyid key-id
■ In NTP broadcast server
mode and NTP multicast
server mode, you need to
associate the specified key
with the corresponding
broadcast/multicast client
■ You can associate an NTP
broadcast/multicast client
with an authentication
key while configuring NTP
mode. You can also use
this command to
associate them after
configuring the NTP
mode.
Configure on
the NTP
multicast server
ntp-service
multicast-server
authentication-keyid key-id
Table 292 Configure NTP authentication on the server
Operation Command Description
Tabl e 293 Optional NTP parameters configuration tasks
Task Remarks
“Configuring an Interface on the Local Switch
to Send NTP messages”
Optional
“Configuring the Number of Dynamic
Sessions Allowed on the Local Switch”
Optional
“Disabling an Interface from Receiving NTP
messages”
Optional
Tabl e 294 Configure an interface on the local switch to send NTP messages
Operation Command Description
Enter system view system-view -
Configure an interface on the
local switch to send NTP
messages
ntp-service
source-interface
Vlan-interface vlan-id
Required