H3C S7500 Series Ethernet Switches Command Manual

Table Of Contents
Command Manual – NTP
H3C S7500 Series Ethernet Switches Chapter 1
NTP Configuration Commands
1-15
Description
Use the ntp-service unicast-peer command to configure NTP peer mode.
Use the undo ntp-service unicast-peer command to cancel NTP peer mode.
By default, no NTP peer mode is configured. When you do not specify a version number,
the default version number is 3. When you do not specify authentication-keyid,
authentication is disabled and the local server is not the first choice.
This command sets the remote server at ip-address as a peer of the local device, which
operates in symmetric active mode. ip-address specifies a host address other than a
broadcast address, multicast address, or the IP address of a reference clock. Under
this configuration, a local device can synchronize and be synchronized by a remote
server.
Examples
# Configure the local device to synchronize or to be synchronized by a peer at
128.108.22.44. Set the NTP version to 3. The IP address of the NTP packets is taken
from that of VLAN-interface 1.
<H3C> system-view
System View: return to User View with Ctrl+Z.
[H3C] ntp-service unicast-peer 131.108.22.33 version 3 source-interface
Vlan-Interface 1
1.1.18 ntp-service unicast-server
Syntax
ntp-service unicast-server { ip-address | server-name } [ version number |
authentication-keyid keyid | source-interface interface-type interface-number |
priority ]*
undo ntp-service unicast-server { ip-address | server-name }
View
System view
Parameters
ip-address: Specifies the IP address of a remote server.
server-name: Specifies the host name of an NTP server, containing 1 to 20 characters.
version: Defines an NTP version number.
number: NTP version number, ranging from 1 to 3.
authentication-keyid: Defines an authentication key.