05-21-2024 03:06 AM
I'm trying to make SNTP work on a Cisco SG220 switch by using a NTP server pool ("0.europe.pool.ntp.org"). When I put the IP address of a NTP server in that pool, it works fine. But when I put the proper FQDN to the pool, the system time does not get in sync.
For your reference, I have gateway and DNS addresses configured properly (ping for "0.europe.pool.ntp.org" succeeds).
Any ideas?
05-21-2024 04:04 AM
- For starters try to configure a 'direct ip address' only from 0.europe.pool.ntp.org , and check if that works,
M.
05-21-2024 04:07 AM
Yeah by putting an IP address from the pool, it works fine. And name resolution seems to work fine, but SNTP seems to fail at using DNS.
05-21-2024 04:20 AM
- This could be a bug or restriction , depending on how it is viewed , but you can add the resolving addresses as multiple sntp servers too ; that then does not include future ip address changes for the service ; but it can be argued that this can be seen as enhancing security; for instance IOS when configuring a NTP server ,will immediately resolve to the first IP address found in the running config for similar reasons ,
M.
05-21-2024 04:23 AM
Hi there,
I've faced a similar issue before. It sounds like your switch might be having trouble resolving the FQDN to an IP address consistently. Here are a few things to try:
Ensure that your DNS settings on the switch are correct and that it can consistently resolve other FQDNs.
Sometimes switches have a preference for IP addresses over FQDNs for NTP. You might want to stick with a specific IP address if it's working fine.
Try using a different NTP server pool or a different time server altogether to see if that resolves the issue.
If the problem persists, consider updating the firmware of your switch, as this might be a known issue that has been fixed in a newer version.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide