This recipe explains how to configure time correction using the NTP server on the Internet.
Table of contents
- How to configure time synchronization with the NTP server by using the GUI
- How to configure time synchronization with the NTP server by using the CLI
- How to configure time synchronizatoin with the GPS
- How to configure the settings for providing time synchronization for LAN devices
▌ How to configure time synchronization with the NTP server by using the GUI
This recipe explains how to configure the settings for correcting the time by periodically accessing the NTP server on the Internet for a communication device that uses a mobile line.
When you set the NTP server, be sure to set the time zone for it.
Procedure
- On the time setting screen of the GUI, click [ NTP setting ].
- Specify each setting value under [ NTP setting ].
- Select [ Enable ].
- Sync : Select [ ecm0 ].
- Server : The URL of the NTP server you use (e.g.: time.google.com, jp.pool.ntp.org, mtp.nict.jp)
*Check the terms of use of each site before using it. - Port number : No entry required for the default value.
- Click [ Set ] to fix the settings.
If time synchronization with the NTP server is set by this method, it will be performed at the following intervals.
- Right after the network connection starts: At 64s interval
- After that, time synchronization will be continuously performed while increasing the interval gradually.
- Finally, periodically perform time synchronization at the following interval: At 1024s interval
This value can be changed from the CLI.
- Save the configuration file.
On the [ Configuration file ] screen, click [ Save the current settin to the device ] button. - How to check the operation of the NTP server
You can check whether the NTP server to be synchronized can be used without problems by manually synchronizing the time with the NTP server. Check it on the following screen.
▌ How to configure time synchronization with the NTP server by using the CLI
- With amsh, transit to configuration mode.
- Transit to ntp configuration mode.
amnimo(cfg)# ntp
amnimo(cfg-ntp)# server jp.pool.ntp.org min 6 max16 polltarget 6 port 123
amnimo(cfg-ntp)# sync-interface ecm0
amnimo(cfg-ntp)# enable
amnimo(cfg-ntp)# exitIn this setting example, MAX = 6 is set. If MAX = 16 is set, the interval will be 65536 seconds (about 18 hours). If MAX=17 is set, the interval will be about 36 hours.
- How to check the time synchronization settings with the CLI
amnimo$ show ntp source
210 Number of sources = 3
MS Name/IP address Stratum Poll Reach LastRx Last sample
===============================================================================
#? GPS1 0 4 0 - +0ns[ +0ns] +/- 0ns
^* ntp-k1.nict.jp 1 6 17 63 -3724us[+1869us] +/- 29ms
▌ How to configure time synchronization with the GPS
- How to configure time synchronization with the GPS
amnimo(cfg)# ntp
amnimo(cfg-ntp)# gps 1000.0
amnimo(cfg-ntp)# enable - How to check the operation of time synchronization with the GPS
amnimo$ show ntp source
210 Number of sources = 2
MS Name/IP address Stratum Poll Reach LastRx Last sample
===============================================================================
#? GPS1 0 4 0 - +0ns[ +0ns] +/- 0ns
^* ntp-a3.nict.go.jp 1 6 17 46 -6718us[ -10ms] +/- 30ms
▌ How to configure the settings for providing time synchronization for LAN devices
How to synchronize the time on LAN devices with the time information on the amnimo device
By configuring the settings mentioned earlier, the amnimo device will be able to provide the time information to LAN terminals connected to it via LAN.
On the LAN terminal side, configure the following settings as the destination of acquiring the time synchronization information from the NTP server.
- IP address of the NTP server= IP address of the amnimo device for the LAN terminal
- Port number: Default port number (123)
Comments
0 comments
Please sign in to leave a comment.