NTP Configuration 495
Table563 Configure NTP Time Server
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 at the opposite end.
Perform the following configurations in System View.
Table564 Configure NTP Peer Mode
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 peer will be taken;
priority indicates the peer will be the first choice for the time server.
Configuring NTP Broadcast Server Mode
Designate an interface on the local Switch to transmit NTP broadcast packets. In this
case, the local equipment operates in broadcast mode and serves as a broadcast
server to broadcast messages to its clients regularly.
Perform the following configurations in the VLAN interface view.
Table565 Configure NTP Broadcast Server Mode
NTP version number number ranges from 1 to 3 and defaults to 3; the authentication
key ID keyid ranges from 0 to 4294967295. This command can only be configured
on the interface where the NTP broadcast packets will be transmitted.
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
Operation Command
Configure NTP peer
mode
ntp-service unicast-peer ip-address [ version number
] [ authentication-key keyid ] [ source-interface {
interface-name | interface-type interface-number } ]
[ priority ]
Cancel NTP peer mode undo ntp-service unicast-peer ip-address
Operation Command
Configure NTP broadcast server
mode
ntp-service broadcast-server [
authentication-keyid keyid version number ]
Cancel NTP broadcast server mode undo ntp-service broadcast-server