packet through the VLAN L3 interface to the NTP server, the NTP server responds to the request
packet, and ACL rules are configured to allow only IP packets from the clock server to access
the L3 interface. To perform these configurations, do as follows:
huawei(config)#
vlan 2 standard
huawei(config)#
port vlan 2 0/0 0
huawei(config)#
interface vlanif 2
huawei(config-if-vlanif2)#
ip address 10.10.10.10 24
huawei(config-if-vlanif2)#
quit
huawei(config)#
ntp-service unicast-server 10.20.20.20 source-interface vlanif 2
huawei(config)#
acl 3010
huawei(config-acl-adv-3010)#
rule deny ip source any destination 10.10.10.10
0.0.0.0
huawei(config-acl-adv-3010)#
rule permit ip source 10.20.20.20 0.0.0.0 destination
10.10.10.10 0.0.0.0
huawei(config-acl-adv-3010)#
quit
huawei(config)#
packet-filter inbound ip-group 3010 port 0/0/0
3.9.1.5 Configuring the NTP Peer Mode
This topic describes how to configure the MA5616 for clock synchronization in the NTP peer
mode. In the peer mode, configure only the active peer, and the passive peer need not be
configured. In the peer mode, the active peer and the passive peer can synchronize with each
other. The peer with a higher clock stratum is synchronized by the peer with a lower clock
stratum.
Prerequisites
Before configuring the NTP peer mode, make sure that the network interface and the routing
protocol of the MA5616 are configured so that the server and the client are reachable to each
other at the network layer.
Context
In the peer mode, the active peer and the passive peer exchange NTP packets whose mode fields
are set to 3 (client mode) and 4 (server mode). Then, the active peer sends a clock synchronization
packet to the passive peer, with the mode field of the packet set to 1 (active peer). After receiving
the packet, the passive peer automatically works in the passive mode and sends a response packet
with the mode field set to 2 (passive peer). Through packet exchange, the peer mode is set up.
The active peer and the passive peer can synchronize with each other. If both the clock of the
active peer and that of the passive peer are synchronized, the clock on a lower stratum is used,
as shown in
.
SmartAX MA5616 Multi-service Access Module
Configuration Guide
3 Basic Configuration
Issue 04 (2011-10-30)
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
77