Configuring NTP in multicast mode

For a multicast client to synchronize to a multicast server, make sure the multicast server is synchronized by other devices or uses its local clock as a reference source.

Configure NTP in multicast mode on both the multicast server and client.

Configuring a multicast client

Step

Command

Remarks

1. Enter system view.

system-view

N/A

2. Enter interface view.

interface interface-type interface-number

Enter the interface for receiving NTP multicast messages.

3. Configure the device to operate in multicast client mode.

  • Configure the device to operate in multicast client mode:ntp-service multicast-client [ ip-address ]

  • Configure the device to operate in IPv6 multicast client mode:ntp-service ipv6 multicast-client ipv6-address

By default, the device does not operate in any NTP association mode.

After you execute the command, the device receives NTP multicast messages from the specified interface.

Configuring the multicast server

Step

Command

Remarks

1. Enter system view.

system-view

N/A

2. Enter interface view.

interface interface-type interface-number

Enter the interface for sending NTP multicast message.

3. Configure the device to operate in multicast server mode.

  • Configure the device to operate in multicast server mode:ntp-service multicast-server [ ip-address ] [ authentication-keyid keyid | ttl ttl-number | version number ] *

  • Configure the device to operate in multicast server mode:ntp-service ipv6 multicast-server ipv6-address [ authentication-keyid keyid | ttl ttl-number ] *

By default, the device does not operate in any NTP association mode.

After you execute the command, the device receives NTP multicast messages from the specified interface.