ntp-service multicast-server

Function

The ntp-service multicast-server command configures an interface on the local device to send NTP multicast packets. The local device runs in the multicast server mode.

The undo ntp-service multicast-server command removes the local device from the NTP multicast server mode.

By default, the multicast service is not configured.

Format

ntp-service multicast-server [ ip-address ] [ authentication-keyid key-id | ttl ttl-number | version number | port port-number ] *

ntp-service multicast-client [ ip-address ]

undo ntp-service multicast-server [ ip-address ]

undo ntp-service multicast-client [ ip-address ]

Parameters

Parameter Description Value
authentication-keyid key-id

Specifies a key ID used when sending messages to a multicast client.

The value is an integer ranging from: 1 to 4294967295 (version 1 to 3), or 1 to 65535 (version 4).

ttl ttl-number

Specifies the life span of multicast packets.

The value is an integer ranging from 1 to 255.

version number

Specifies an NTP version number.

The value is an integer ranging from 1 to 4. The default value is 3.

port port-number

Specifies the port number to be used as the destination port in NTP multicast packets.

The number is an integer that can be 123, or ranges from 1025 to 65535. The default value is 123.

multicast-server ip-address

Specifies a multicast IPv4 address, which is a Class D address.

The value is in dotted decimal notation. The default IP address is 224.0.1.1.

multicast-client ip-address

Specifies a multicast IPv4 address.

The value is in dotted decimal notation. The default value is 224.0.1.1.

Views

Virtual template view, Tunnel interface view, 40GE interface view, 100GE interface view, GE electrical interface view, Loopback interface view, VLANIF interface view, 400GE interface view, 10GE interface view, GE optical interface view, Eth-Trunk interface view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
ntp write

Usage Guidelines

Usage Scenario

You can configure a device to determine whether NTP multicast packets need to be sent through an existing interface to a configured multicast group address or not. Based on this, the local device acts as multicast server and sends multicast messages periodically for time synchronization to multicast clients.

In VS mode, this command is supported only by the admin VS.

Precautions

If this command is the first NTP configuration command, the system automatically adds the ntp-service [ ipv6 ] server disable command in the configuration file to disable the NTP service. To enable the NTP service, run the undo ntp-service [ ipv6 ] server disable command. If this command is the last NTP configuration command to be deleted, the system automatically deletes the ntp-service [ ipv6 ] server disable command from the configuration file.

Example

# Configure 10GE 0/1/0 to send NTP multicast messages with the multicast IPv4 address of 224.0.1.1, the authentication key number of 4 and the NTP version number of 3.
<HUAWEI> system-view
[~HUAWEI] ntp-service authentication-keyid 4 authentication-mode hmac-sha256 Huawei-1234
[*HUAWEI] commit
[~HUAWEI] interface 10GE 0/1/0
[~HUAWEI-10GE0/1/0] ip address 10.1.1.1 24
[*HUAWEI-10GE0/1/0] ntp-service multicast-server 224.0.1.1
# Configure 10GE 0/1/0 to transmit NTP multicast messages with port 5000.
<HUAWEI> system-view
[~HUAWEI] interface 10GE 0/1/0
[~HUAWEI-10GE0/1/0] ntp-service multicast-server port 5000
Copyright ? Huawei Technologies Co., Ltd.
Copyright ? Huawei Technologies Co., Ltd.
< Previous topic Next topic >