122
Syntax
ntp-service multicast-server
[
ip-address
] [
authentication-keyidkeyid
|
ttlttl-number
|
versionnumber
] *
undo ntp-service multicast-server
[
ip-address
]
Default
The device does not operate in anyNTP association mode.
Views
Interface view
Predefined user roles
network-admin
Parameters
ip-address
: Specifies a multicast IP address. Thedefault is224.0.1.1. A multicast server and client
must be configured with the same multicast IP address.
authentication-keyidkeyid
: Specifies the key ID to be used for sending multicast messages to
multicast clients. The value range for the
keyid
argument is 1 to 4294967295. If you do not specify
this option, the local device cannot synchronize multicast clients enabled with NTP authentication.
ttlttl-number
: Specifies the TTL of NTP multicast messages. The value range for the
ttl-number
argument is 1 to 255. The default value is16.
versionnumber
: Specifies the NTP version. The value range for the
number
argument is1 to 4. The
default value is4.
Usage guidelines
After you configure the command, the device periodically sends NTP messages to the specified
multicast address.
If you have configured the device to operate in multicast server mode on an interface with the
command, do not add the interface to any aggregate group. To add the interface to an aggregate
group, remove the configuration of the command.
Examples
# Configure the device to operate in multicast server mode and send NTP multicast messages on
GigabitEthernet1/0/1 to the multicast address 224.0.1.1, using key 4 for encryption. Set the NTP
version to 4.
<Sysname> system-view
[Sysname] interface gigabitethernet 1/0/1
[Sysname-GigabitEthernet1/0/1] ntp-service multicast-server 224.0.1.1 version 4
authentication-keyid 4
Related commands
ntp-service multicast-client