One of the first thing you do when you purchase your desktop, laptop, cell phone, your PDA, server or mp3 player etc. is to check the calendar, check the time and hour. Is that right? I hope it is. Why should we not do the same with Cisco router (or switch). It is very important especially if you are about to read log information and understand them, or if you have VoIP system, this setting will be displayed on all phones. Yes, including your boss.
In this post, I will show you how to:
- check your current router clock
- synchronize using ntp to one of the public NTP server
- verify updated router clock
Cisco Router 2621 with IOS Version 12.3(19) was used during setup.
First let's check what is your current router clock setting:
Router#show clock
*07:34:56.011 UTC Sat Mar 20 1993
As we can see not so current. Check the date of this post to compare.
Find NTP server that you can synchronize to (http://support.ntp.org/bin/view/Servers/StratumOneTimeServers).
Try to ping it.
Router#ping selected.ntp.server
Translating "selected.ntp.server"...domain server (1.2.3.4) [OK]
If it works, you are ready to establish NTP peer. Which means you will be a client and selected host an NTP server.
It can be done by:
Router(config)#clock timezone PST -8
Router(config)#ntp peer selected.ntp.server
Router(config)#ntp source fa0/1
First line will setup you time zone. The second one is specifying source that will be used to synchronize your router time. In the last line, as you can see, we have specified a port in order to make sure that source IP is our public IP so NTP server can reach us.
At this point we would like to verify our work, by:
Router#show clock
17:18:57.505 PDT Thu Jun 18 2009
Great job!
I hope in your case it worked too. If not please check : http://www.cisco.com/en/US/docs/ios/12_1/configfun/configuration/guide/fcd303.html#wp1001612
or just go to:
http://www.cisco.com/univercd/home/home.htm
to find specific information about your particular model of device.
No comments:
Post a Comment