Technical data

NTP 359
local switch will operate in broadcast mode. If you configure an interface on the
local switch to receive NTP broadcast packets, the local switch will operate in
broadcast client mode. If you configure an interface on the local switch to transmit
NTP multicast packets, the local switch will operate in multicast mode. You may
also configure an interface on the local switch to receive NTP multicast packets,
the local switch will operate in multicast client mode.
The following sections describe how to configure NTP modes:
Configuring NTP Server Mode
Configuring NTP Peer Mode
Configuring NTP Broadcast Server Mode
Configuring NTP Broadcast Client Mode
Configuring NTP Multicast Server Mode
Configuring NTP Multicast Client Mode
Configuring NTP Server Mode Set a remote server whose IP address is
ip-address as the local time server. ip-address specifies a host address other than a
broadcast, multicast, or reference clock IP address. In this case, the local switch
operates in client mode. In this mode, only the local client synchronizes its clock
with the clock of the remote server, while the reverse synchronization will not
happen.
Perform the following configurations in system view.
NTP version number number ranges from 1 to 3 and defaults to 3; the
authentication key ID keyid ranges from 0 to 4294967295; interface-name or
interface-type interface-number specifies the IP address of an interface, from
which the source IP address of the NTP packets sent from the local switch to the
time server will be taken; priority indicates the time server will be the first choice.
Configuring NTP Peer Mode Set a remote server whose IP address is
ip-address as the peer of the local equipment. In this case, the local equipment
operates in symmetric active mode. ip-address specifies a host address other than
a broadcast, multicast, or reference clock IP address. In this mode, both the local
switch and the remote server can synchronize their clocks with the clock of the
opposite end.
Table 65 Configuring NTP Time Server
Operation Command
Configure NTP time server ntp-service unicast-server ip-address [
version number | authentication-keyid
keyid | source-interface { interface-name |
interface-type interface-number } | priority ]*
Cancel NTP server mode undo ntp-service unicast-server ip-address