Setting The Time on a Cisco Switch or Router

Posted by Tres Tue, 12 Sep 2006 11:12:02 GMT

Setting up time is a two step process. First you’ll need to set up a couple of NTP servers that you have access to, then you’ll need to set up your timezone.

To set up the NTP servers using hostnames, you’ll of course need to set up nameservers on the switch or router. That’s another story. If you haven’t already set up name resolution on IOS, no worries; IOS stores the NTP servers as IP addresses anyway, so you can just look up the addresses for the time servers you’re authorized to access, then configure IOS like this:

ntp server 131.107.1.10
ntp server 202.152.74.200 prefer

Not surprisingly, the prefer sets your preferred time server.

To set up the timezone, you’ll need to figure out your offset from UTC. Unlike Unix, the string representation of timezone is meaningless to IOS. The numerical offset is the only thing that IOS is concerned about. The string is to be friendly to you and anyone else that needs to use the switch or router.

clock timezone PST -8
clock summer-time PDT recurring

Posted in  | Tags , , , , ,  | no comments

Comments

Comments are disabled