[Edgecore SONiC] NTP (Network Time Protocol) Follow
Reference model:
- Switch model name:
- AS7726-32X
- AS7326-56X
- AS7816-64X
- AS5835-54X(T)
- AS4630-54PE
- AS9716-32D
- AS8000(Minipack)
- Wedge100BF-32X
- Edgecore SONiC version:
- Edgecore-SONiC_20201123_130028_ec202006_74
- Edgecore-SONiC_20201229_070315_ec202006_101
- Edgecore-SONiC_20201229_070315_ec202006_bfn_65(Wedge100BF-32X)
Restriction:
- NTP command only supports IP address, not URL.
- If management IP get from DHCP server, NTP won't work well to sync with the remote NTP server. SONiC will request the NTP service by loopback interface
Example: Sync the time with remote NTP server.
Procedure:
Step 1. Configure IP address to network communication (Refer to Management and front port IPv4/IPv6 Address)
Step 2. Add the NTP server via the command line.
admin@sonic:~$ sudo config ntp add 216.239.35.12
Caution: Since Restriction #1, we cannot set the URL via the command line. But we can set the URL via editing config_db.json.
admin@sonic:/etc/sonic$ sudo vi config_db.json
{ ...omitted "NTP_SERVER": { "1.debian.pool.ntp.org": {}, "time.google.com": {},
"216.239.35.12": {} }, ...omitted }
Apply the config_db.json.
Add the DNS server. (Refer to this article)
Step 3. Save the setting to config_db.json
admin@sonic:~$ sudo config save -y
Step 4-1. List all the timezone information.
Note: Use arrow key to roll up and down, press "Space" for next page, "q" for quit.
Step 4-2. Modify to your timezone.
Step 5. Check the system time by linux command
Step 6. Check NTP status
Comments
0 comments
Please sign in to leave a comment.