Solved

ntp server url error

Posted on 2015-01-25
7
170 Views
Last Modified: 2015-02-11
I am trying to configure ntp server us.pool.ntp.org and my switch gave me an error.

switch1(config)#ntp server us.pool.ntp.org
Translating "us.pool.ntp.org"
                                  ^
% Invalid input detected at '^' marker.
0
Comment
Question by:leblanc
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
7 Comments
 
LVL 30

Accepted Solution

by:
Predrag Jovic earned 100 total points
ID: 40570040
If your ntp server don't exist on that address, or switch could not reach internet - switch cannot resolve hostname to ip address.
I don't think that us.pool.ntp.org exist as such. (I tried to ping it - result - request timed out.) :)
You can use one of these
0.us.pool.ntp.org
1.us.pool.ntp.org
2.us.pool.ntp.org
3.us.pool.ntp.org
0
 
LVL 14

Assisted Solution

by:Otto_N
Otto_N earned 100 total points
ID: 40570209
"us.pool.ntp.org" does exist in the DNS database (an "nslookup" from my PC returns 4 public IP's, and I can ping "us.pool.ntp.org"), so perhaps there's an issue with DNS on the switch?  If you try to ping "us.pool.ntp.org" from the switch, does the name at least translate to an IP address?

If the issue is DNS, using specific servers (like "0.us.pool.ntp.org") won't work either, and you'll get the same error message.  Then you either have to fix your DNS, or use the static IP addresses (rather than the hostnames).

Another possibility is that you either cannot connect to the Internet (firewall/NAT issue), or perhaps that your switch use an IP address that is not routed on the Internet as source for NTP.  Have you ruled these issues out?
0
 
LVL 14

Assisted Solution

by:frankhelk
frankhelk earned 300 total points
ID: 40570234
I've just tried to ping us.ntp.org and it answers. Interstingly the IP doesn't match one of the "numbered" addresses.

Nevertheless, the current server at 0.us.ntp.org didn't respond (which might be due to the server is forbidden to answer for pings or ti's down or unreachable).

Maybe your switch doesn't allow other things than numeric IP addresses there ?

By the way I see no immediate use in syncing a switch with an external NTP source - IMHO the time on the switch is only necessary for syncing the log entries with real world time ... that's why most switches use the less precise SNTP ... it would be sufficient to sync it i.e. to your DC (or another local 24/7 server), of which you should know the IP precisely.
0
How our DevOps Teams Maximize Uptime

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us. Read the use case whitepaper.

 
LVL 30

Expert Comment

by:Predrag Jovic
ID: 40570246
Yes, you are right. After I did nslookup on us.pool.ntp.org I can ping us.pool.ntp.org.
Before that I could not, but I could ping 0.us.pool.ntp.org, 1.us.pool.ntp.org specifically.
Interesting.
I could not ping 2.us.pool.ntp.org or 3.us.pool.ntp.org. (both were try to ping 129.6.15.29).
I am using google dns 8.8.8.8 as primary.
When I added 4.4.2.2 I can ping 2 and 3.

I removed 4.4.2.2 and flushed DNS. And I am still able to ping all servers. Weird. Maybe ping is forbidden.

So... Could be DNS error (as in my case) or switch can't get to internet (wrong or missing default gateway in case of L2 switch).
0
 
LVL 14

Assisted Solution

by:frankhelk
frankhelk earned 300 total points
ID: 40570506
Just an addition for the right aspect ... I think you all know, but pool.ntp.org is not a NTP provider, and they have no own public NTP server(s) available.

pool.ntp.org ist just a service that keeps a list of numerous (independent maintained) NTP servers around the world, and it provides a directory of these servers, splitted by countries, regions, etc. for the public. For each region (with "world" as an additional region) they provide 4 pointers (0,1,2,3) via DNS subdomain host entries.

In order to not overload servers, the DNS entries change cyclic - as far as I know once every hour. So if you point your client to 0.us.pool.ntp.org, you'll get a random entry from a long list of NTP servers located in the US.  The servers at pool.ntp.org check the availability of the systems in the list regulary, to prevent providing dead hosts as good as possible, but that's no guarantee not to hit a server that went offline just a couple of minutes ago.

And if you use 4 servers and the classic NTP client, that's no problem - you should be able to reach at least one running NTP server to keep your clock in sync.

So I wouldn't think much about a server not responding to PING ... it will either come back again or pool.ntp.org will provide another in no longer than 1 hour. And your switch's clock would not drift that much in the meantime, wouldn't it ?

BTW: I elaborate a bit about pool.ntp.org in my article about NTP.
0
 
LVL 1

Author Comment

by:leblanc
ID: 40570766
I have no FW issue. I can ping the Internet. So which NTP server should I use? I want to keep my time up-to-date for logging purposes. Thx
0
 
LVL 14

Assisted Solution

by:frankhelk
frankhelk earned 300 total points
ID: 40571298
Since the usual NTP client is a NTP server, too, I would use the following scheme:

Assuming you have at least one system that is used regulary, install the classic NTP client (see my article ...) on it. Point the NTP client on that system to the respective 4 server entries at pool.ntp.org. The client will choose the best on out of the 4 automatically. That way you'll get a reliable time source for the subsequent systems, and NTP will do a "hard" sync immediately after booting, which saves you from a drifting RTC chip during offtime.

Point the switch's SNTP feature to use the aforementioned system as time source. Even if both systems are switched off for some periods, the internal clock of the switch should maintain the time close enough for logging purposes (I don't think that you'll need logging precision in milliseconds range ... :)
0

Featured Post

Free NetCrunch network monitor licenses!

Only on Experts-Exchange: Sign-up for a free-trial and we'll send you your permanent license!

Here is what you get: 30 Nodes | Unlimited Sensors | No Time Restrictions | Absolutely FREE!

Act now. This offer ends July 14, 2017.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I use more than 1 computer in my office for various reasons. Multiple keyboards and mice take up more than just extra space, they make working a little more complicated. Using one mouse and keyboard for all of my computers makes life easier. This co…
Stuck in voice control mode on your Amazon Firestick?  Here is how to turn it off!!!
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…

729 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question