CÔNG TY TNHH CÔNG NGHỆ VIỆT THÁI DƯƠNG
Logo CNTTShop.vn

NTT03, Line 1, Thống Nhất Complex, Thanh Xuân, Hà Nội.
Danh mục sản phẩm

Configure NTP Optional Parameters

Configuration Condition

None

Clock NTP Reference Clock

NTP can synchronize the system time via the following two modes:

  • Synchronize with the local clock, that is, adopt the local clock as the NTP reference clock
  • Synchronize with the other clock source in network, that is, use any of the previous mentioned three NTP work modes.

Table 4-6 Configure the local clock as the NTP reference clock


 

Step

Command

Description

Enter the global configuration mode

configure terminal

-

Configure the local clock as the NTP reference clock

ntp master [ stratum-number ]

Mandatory

By default, do not configure the local clock as the NTP reference clock.

note


  • After configuring the local clock as the NTP reference clock, NTP cannot synchronize the clock from the other clock source in the network.
  • After configuring the local clock as the NTP reference clock, the local device can serve as the clock source to synchronize the other device in the network. Please use the configuration carefully, so as to avoid the clock error of other device in the network.

Configure Source Interface of the NTP Packet

If the source interface of the NTP packet is configured and when the device actively sends the NTP packet, select the master IP address of the specified source interface as the source IP address of the packet.

Table 4-7 Configure the source interface of the NTP packet


 

Step

Command

Description

Enter the global configuration mode

configure terminal

-

Configure the source interface of the NTP packet

ntp source interface-name

Mandatory

By default, do not configure the source interface of the NTP packet.

note


  • If using the ntp server or ntp peer command to specify the source interface, first use the source interface specified by the ntp server or ntp peer command.
  • If ntp broadcast is configured in the interface mode, the source interface of the NTP broadcast packet is the interface configured with the above command.
  • If the source interface of the specified NTP packet is down, restore the master address of the default routing interface or the first global unicast address to encapsulate the source address of NTP.
  • If the source interface of the specified NTP packet is not configured with address and is in the up state, but there is no corresponding IPv4 or IPv6 address, restore the master address of the default routing interface or the first global unicast address to encapsulate the source address of NTP.

Configure Receiving and Sending Control of NTP Packet

By default, the device will not receive and send all NTP packets. You can configure the receiving and sending control of the NTP packet to enable receiving and sending the NTP packet.

Table 4-8 Configure the receiving and sending control of the NTP packet


 

Step

Command

Description

Enter the global configuration mode

configure terminal

-

Enable receiving and sending the NTP packet

ntp enable [ipv6]

Mandatory

By default, do not prohibit receiving and sending the NTP packet.

note


  • After configuring the command no ntp enable, it will be forbidden to receive and send all the NTP packets of IPv4. If configuring the command ntp enable, it will enable receiving and sending the NTP packets of IPv4.
  • After configuring the command no ntp enable ipv6, it will be forbidden to receive and send all IPv6 NTP packets. If configuring the command ntp enable ipv6, it will enable receiving and sending IPv6 NTP packets.

Configure the Number of NTP Dynamic Sessions

Set the maximum number of NTP dynamic connections allowed locally by configuring the number of NTP dynamic sessions.

Table 4-9 Configure the number of the NTP dynamic sessions


 

Step

Command

Description

Enter the global configuration mode

configure terminal

-

Set the maximum number of NTP dynamic connections allowed locally

ntp max-dynamic-sessions number

Mandatory

By default, the number of the dynamic NTP sessions allowed to be set up is 100.