Problem
You want the router to automatically adjust to Daylight Saving Time.
Solution
Some areas, such as most of North America and Europe, have consistent and common rules for when to switch between winter or Standard time and summer or Daylight Saving Time. The traditional North American rule, and the default for Cisco routers when they are configured for summer time, is to move an hour ahead at 2:00 AM on the first Sunday in April, and back an hour at 2:00 AM on the last Sunday in October. We note in passing that this rule will change starting in 2007, which we discuss in more detail in Recipe 14.19:
Router#configure terminal Enter configuration commands, one per line. End with CNTL/Z. Router(config)#clock summer-time EDT recurring Router(config)#end Router#
You can also specify exact recurrence rules. You could use the following command to explicitly define the North American rules:
Router#configure terminal Enter configuration commands, one per line. End with CNTL/Z. Router(config)#clock summer-time EDT recurring first sun apr 02:00 last sun oct 02:00 Router(config)#end Router#
You can modify this line to represent other standard recurrence rules. For example, in the Southern Hemisphere, Daylight Saving Time commences towards the end of the year to match their summer season. To define the rules for Australian Eastern Daylight Time (AEDT), you could use the following command:
Router#configure terminal Enter configuration commands, one per line. End with CNTL/Z. Router(config)#clock summer-time AEDT recurring last sun oct 02:00 last sun mar 02:00 Router(config)#end Router#
Some areas do not have consistent daylight saving rules. In these areas, you must configure the start and end dates explicitly:
Router#configure terminal Enter configuration commands, one per line. End with CNTL/Z. Router(config)#clock summer-time EDT date 26 oct 2003 02:00 6 apr 2003 02:00 Router(config)#end Router#
Discussion
The router will not observe Daylight Saving Time by default. The clock summer-time command allows you to automatically reset the router's clock each fall and winter so that you don't have to do so manually, which can be a daunting task in a large network.
You can see how the router plans to implement the change to summertime with the show clock detail command:
Router>show clock detail 15:48:30.544 EST Sun Jan 29 2006 Time source is NTP Summer time starts 02:00:00 EST Sun Apr 2 2006 Summer time ends 02:00:00 EDT Sun Oct 29 2006 Router>
In this case, the router is set to the default North American Daylight Saving Time start and end dates.
See Also
Recipe 14.3; Recipe 14.19
Router Configuration and File Management
Router Management
User Access and Privilege Levels
TACACS+
IP Routing
RIP
EIGRP
OSPF
BGP
Frame Relay
Handling Queuing and Congestion
Tunnels and VPNs
Dial Backup
NTP and Time
DLSw
Router Interfaces and Media
Simple Network Management Protocol
Logging
Access-Lists
DHCP
NAT
First Hop Redundancy Protocols
IP Multicast
IP Mobility
IPv6
MPLS
Security
Appendix 1. External Software Packages
Appendix 2. IP Precedence, TOS, and DSCP Classifications
Index