NOTE
When the unicast NTP server is specified, the local router functions as the client automatically.
The server needs to be configured with only a primary clock.
4.
Run:
commit
The configurations are committed.
l
(Optional) Configure the NTP server.
1.
Run:
system-view
The system view is displayed.
2.
Run:
ntp-service source-interface
interface-type interface-number
[
vpn-
instance
vpn-instance-name
]
The specified source interface IP address is used as the source IP address to send NTP
packets irrespective of the out going interface.
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.
3.
Run:
commit
The configurations are committed.
----End
2.3.3 Configuring the Peer Mode
This section describes how to configure the NTP peer mode. In this mode, clocks on the two
peers synchronize with each other. Each side can send the clock synchronization request message
to the peer and reply the clock synchronization request message from the peer.
Procedure
l
Configuring the NTP Symmetric Active End
1.
Run:
system-view
The system view is displayed.
2.
(Optional) Run:
ntp-service source-interface
interface-type interface-number
[
vpn-
instance
vpn-instance-name
]
The specified local source interface is configured to send the NTP packet.
3.
Run:
ntp-service unicast-peer
ip-address
[
version
number
|
authentication-
keyid
key-id
|
source-interface
interface-type interface-number
|
vpn-
instance
vpn-instance-name
|
preference
]
*
The NTP peer is configured.
HUAWEI NetEngine5000E Core Router
Configuration Guide - System Management
2 NTP Configuration
Issue 01 (2011-10-15)
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
21