cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
4193
Views
10
Helpful
7
Replies

NTP configuration on Router

Shannon Sutter
Level 1
Level 1

HI,

I am trying to configure our main Router 7204 (10.10.1.1) to pull 'Date and Time" from one of our servers on the network configured as an NTP (10.10.1.40).

Then I want to configured all other routers and switches to pull NTP data from our main router (10.10.1.1).

The current config I have is the following:

NOTICE: I don't think is workinng right beause the time isnot sync between devices.

7204

scheduler allocate 3997 1000
ntp master

ntp update-calendar

ntp server 10.10.1.40

All other routers and switches

scheduler allocate 20000 1000
ntp clock-period 17178271
ntp server 10.10.1.1

Please let me know if I need to change the config.

Thanks,

Zeek

7 Replies 7

Richard Burts
Hall of Fame
Hall of Fame

Zeek

What kind of device is your router attempting to learn time from. You say that it is one of the servers on your network. Can you supply some detail about what kind of server? If it is a Windows server you may have a problem. Windows server usually run a simplified implementation of the time service and not a full implementation of NTP. So an IOS router will have problems in attempting to learn NTP time if the server is not running the full implementation of NTP. If it is a *nix type server it is more likely that it is running a full implementation of NTP.

It might help us understand the problem if you would post the output of show ntp association detail from your router.

I do not see any obvious problem with the config as you have given it.

HTH

Rick

HTH

Rick

Yes, it is a Windows server 2003 R2.

Just wondering what's recommended.

Should I rather configure the master router with external NTP (public ip's) servers ?

Zeek

I believe that there are 3 alternatives that you can consider:

- configure your router to learn time from an external/Internet NTP server. Advantages include that you will learn accurate NTP time. Disadvantages include that you are dependent on an external resource.

- configure your router to use SNTP rather than NTP. (sntp server x.x.x.x rather than ntp server x.x.x.x) Advantages include that you learn time from an internal resource and are not dependent on an external resource. Disadvantages include that SNTP is not as accurate as NTP - though for your purposes I believe that it is probably adequate).

- add some software or a hardware device on your Windows server that will run NTP and allow your router to learn NTP this way. Advantages include that you learn accurate NTP time from your internal resource. Disadvantages include potential expense to obtain the software or device, and the effort expended to install and run it.

HTH

Rick

HTH

Rick

Thank you so much for your advice.

Here is how I will configure it for now.

ntp master
ntp update-calendar
ntp server 1.us.pool.ntp.org
ntp server 10.10.1.40 prefer
ntp server 3.us.pool.ntp.org
ntp server 2.us.pool.ntp.org
ntp server 0.us.pool.ntp.org

Zeek

I would suggest that you not use the configuration command: ntp master. If you do this your router will believe that it is authoritative and will use its own internal clock for sending time to other devices which use it as an NTP server. The internal clock of a router is generally not designed to be accurate enough to base an entire network to learn time from.

Depending on the router type the ntp update-calendar may or may not be a supported command.

Learning time from us.pool.ntp.org is a good idea and should work (assuming that you have IP connectivity to those devices and assuming that your network edge devices are not filtering traffic in a way that would deny NTP traffic. Keeping ntp server 10.10.1.40 prefer in the config does no harm. But it seems that we have already identified that it is not working.

HTH

Rick

HTH

Rick

great thanks.

The problem was because I had the wrong IP for the NTP server.

All routers are now sync.

Thanks a lot for your help.

Zeek

Zeek

I am glad that you got it resolved and that my suggestions were helpful. Thank you for posting back to the forum indicating that you had resolved the problem and what was the resolution. It makes the forum more helpful when people can read about a problem and can read what the problem turned out to be and what was done to resolve the problem.

The forum is an excellent place to learn about Cisco networking. I encourage you to continue your participation in the forum.

HTH

Rick

HTH

Rick
Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Review Cisco Networking products for a $25 gift card