Configuring Optional NTP Parameters 301
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
Optional NTP parameters are:
â– Local VLAN interface that sends NTP packets
â– Number of dynamic sessions that can be established locally
â– VLAN interface disabled from receiving NTP packets
Tab le 340 Configure optional NTP parameters
CAUTION:
If a sending interface is specified in the ntp-service unicast-server command or the
ntp-service unicast-peer command, the source IP address of an NTP packet is the
address of this interface.
Configure an NTP
authentication key
ntp-service
authentication-keyid
key-id
authentication-mode md5
value
Required
By default, no NTP authentication
key is configured.
Configure the specified key
to be a trusted key
ntp-service reliable
authentication-keyid
key-id
Required
By default, no trusted
authentication key is configured.
Enter VLAN interface view interface Vlan-interface
vlan-id
Associate the specified key
with the corresponding
NTP server
Broadcast server mode:
ntp-service
broadcast-server
authentication-keyid
key-id
Multicast server mode:
ntp-service
multicast-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 NTP server
on the server
You can associate an NTP server
with an authentication key while
configuring NTP mode. You can
also use this command to
associate them after configuring
the NTP mode.
Operation Command Description
Operation Command Description
Enter system view system-view
Configure a local interface
that sends NTP packets
ntp-service
source-interface
Vlan-interface vlan-id
Optional
Configure the number of
sessions that can be
established locally
ntp-service
max-dynamic-sessions
number
Optional
By default, up to 100 dynamic
sessions can be established locally.
Enter VLAN interface view interface Vlan-interface
vlan-id
Disable an interface from
receiving NTP packets
ntp-service in-interface
disable
Optional
By default, a VLAN interface
receives NTP packets.