Procedure
Step 1
Run:
system-view
The system view is displayed.
Step 2
Run:
ntp-service refclock-master
[
ip-address
] [
stratum
]
A primary NTP server is displayed.
ip-address
is the IP address of the local reference clock. Its value is 127.127.t.u. Here, "t" ranges
from 0 to 37. Currently, "t" can be only 1, indicating the local reference clock. "u" indicates the
NTP process number, ranging from 0 to 3.
When no IP address is specified, the local clock whose IP address is 127.127.1.0 functions as
the primary NTP clock by default, with the stratum being 8.
----End
4.3.3 Configuring the Unicast Server/Client Mode
In C/S mode, the clock on the client synchronizes with the master clock on the server.
Context
Commonly, specify the IP address of the NTP server on the client. The client and server can
then exchange NTP packets using this IP address.
If the source interface to send NTP packets is specified on the server, the IP address of the server
configured on the client should be the same; otherwise, the client cannot process NTP packets
sent from the server and clock synchronization fails.
Procedure
l
Configuring the NTP Client
Do as follows on the switch functioning as a client:
1.
Run:
system-view
The system view is displayed.
2.
(Optional) Run:
ntp-service source-interface
vlanif
vlan-id
The local source interface that receives the NTP packet is configured.
3.
Run:
ntp-service unicast-server
ip-address
[
version
number
|
authentication-
keyid
key-id
|
source-interface
interface-type
interface-number
|
preference
] *
The IP address of the NTP server is configured.
Step 2 is optional. If
source-interface
is specified in Step 3, use it preferentially.
Quidway S2700 Series Ethernet Switches
Configuration Guide - Network Management
4 NTP Configuration
Issue 01 (2011-07-15)
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
215