ntp-service unicast-server
ip-address
[
version
number
|
authentication-
keyid
key-id
|
source-interface
interface-type
interface-number
|
vpn-
instance
vpn-instance-name
|
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.
ip-address
is the address of the NTP server. It can be the IPv4 or IPv6 address of the
host other than a broadcast address, a multicast address, or the IP address of the
reference clock.
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.
l
(Optional) Configuring the Source Interface for the NTP Server to Send NTP Packets
Do as follows on the router working as a 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
]
ntp-service
[
ipv6
]
source-interface interface-type interface-number
[
vpn-instance
vpn-instance-name
]
The local source interface that sends NTP packets is specified.
----End
5.2.4 Configuring the Peer Mode
This part describes how to configure the NTP peer mode. In this mode, clocks on the two peers
synchronize with each other based on the stratum. 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 local source interface that sends NTP packets is specified.
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 AR150&200 Series Enterprise Routers
Configuration Guide - Network Management
5 NTP Configuration
Issue 02 (2012-03-30)
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
114