2013年12月16日星期一

Configuring the NTP Broadcast Mode

This topic describes how to configure the MA5680T/MA5603T for clock synchronization in the NTP broadcast mode. After the configuration is completed, the server periodically broadcasts clock synchronization packets through a specified port, and the client listens to the broadcast packets sent from the server and synchronizes the local clock according to the received broadcast packets.

Run the ntp-service refclock-master command to configure the local clock as the master NTP clock, and specify the stratum of the master NTP clock.
(Optional) Configure NTP authentication. In certain networks that have strict requirements on security, it is recommended that you enable NTP authentication when running the NTP protocol. The configuration of the server must be the same as that of the client.
Run the ntp-service authentication enable command to enable NTP authentication.
Run the ntp-service authentication-keyid command to set an NTP authentication key.
Run the ntp-service reliable authentication-keyid command to declare that the key is reliable.
Add a VLAN Layer 3 interface.
Run the vlan command to create a VLAN.
Run the port vlan command to add an upstream port to the VLAN so that the user packets carrying the VLAN tag are transmitted upstream through the upstream port.
In the global config mode, run the interface vlan command to create a VLAN interface, and then enter the VLAN interface mode to configure the Layer 3 interface.
Run the ip address command to configure the IP address and subnet mask of the VLAN interface so that the IP packets in the VLAN can participate in the Layer 3 forwarding.
Run the ntp-service broadcast-server command to configure the NTP broadcast server mode of the host, and specify the key ID for the server to send packets to the client.

Assume the following configurations: MA5600T/MA5603T_S uses the local clock as the master NTP clock on stratum 2 and works in the NTP broadcast mode, broadcasting clock synchronization packets periodically through IP address 10.10.10.10/24 of the Layer 3 interface of VLAN 2, and MA5600T/MA5603T_C functions as the NTP client, listening to the broadcast packets sent from the server through IP address 10.10.10.20/24 of the Layer 3 interface of VLAN 2 and synchronizing with the clock on the broadcast server. To perform these configurations, do as follows:
On MA5600T/MA5603T_S:
huawei(config)#ntp-service refclock-master 2
huawei(config)#vlan 2 standard
huawei(config)#port vlan 2 0/19 0
huawei(config)#interface vlanif 2
huawei(config-if-vlanif2)#ip address 10.10.10.10 24
huawei(config-if-vlanif2)#ntp-service broadcast-server
huawei(config-if-vlanif2)#quit
On MA5600T/MA5603T_C:
huawei(config)#vlan 2 standard
huawei(config)#port vlan 2 0/19 0
huawei(config)#interface vlanif 2
huawei(config-if-vlanif2)#ip address 10.10.10.20 24
huawei(config-if-vlanif2)#ntp-service broadcast-client

huawei(config Huawei MA5680T -if-vlanif2)#quit

没有评论:

发表评论