Tuesday, March 29, 2011

Setting the time in Cisco's IOS

The time zone command in the Cisco IOS is based on GMT so when entering the command to set the time zone you must reference the local time zone against GMT time. So for instance Pacific Time is 8 hours behind GMT so -8 would be used. So for example the command to set a an IOS device to the pacific time zone is shown below:

R2(config)#clock timezone pst -8

To set the clock to the correct time:

R2#clock set hh:mm:ss MONTH year

Having the correct time on your router or switch can be important when troubleshooting issues especially when viewing the device logs.

No comments:

Post a Comment