The ntp-service manycast-server command configures the NTP manycast server mode.
The undo ntp-service manycast-server command cancels the NTP manycast server mode.
By default, the NTP manycast server mode is not configured.
ntp-service manycast-server [ ip-address | ipv6 [ ipv6-address ] ]
undo ntp-service manycast-server [ ip-address | ipv6 [ ipv6-address ] ]
Parameter | Description | Value |
---|---|---|
ip-address | Specifies a manycast IPv4 address, which is a class D address. |
The default IPv4 address is 224.0.1.1. |
ipv6 [ ipv6-address ] | Specifies a manycast IPv6 address. |
The default IPv6 address is FF0E::0101. |
The manycast server responds to the manycast packets sent by the client. After the manycast client receives the reply packet, the manycast client establishes temporary association with the server and enters C/S mode.
PrecautionsIf the manycast IP address is not specified when the undo ntp-service manycast-server command is run, the local device searches for the default IP address. In IPv4 networks, the default IP address of the manycast server is 224.0.1.1. In IPv6 networks, the default IP address of the manycast server is FF0E::0101. If the local device finds the default IP address, the undo ntp-service manycast-server command takes effect; otherwise, the undo ntp-service manycast-server does not take effect.
# Configure VLANIF100 as an interface of the server. The interface is used for responding to the manycast client request from a manycast address.
<HUAWEI> system-view [HUAWEI] interface vlanif 100 [HUAWEI-Vlanif100] ip address 10.1.1.1 24 [HUAWEI-Vlanif100] ntp-service manycast-server
# Configure GigabitEthernet0/0/1 as an interface of the server. The interface is used for responding to the manycast client request from a manycast address.
<HUAWEI> system-view [HUAWEI] interface gigabitethernet 0/0/1 [HUAWEI-GigabitEthernet0/0/1] undo portswitch [HUAWEI-GigabitEthernet0/0/1] ntp-service manycast-server