The following commands configure both key 1 and key 2 to be accepted between 08:00:00 and 23:00:00. When the current time reaches 09:00:00, the router begins using key 1 to transmit packets. When the current time reaches 10:00:00, the router begins using key 2 to transmit packets; key 1 is no longer used. Key 2 will continue to be used until a new key is configured and the new key's startGenTime matches the current time on the router.
- host1(config-router)#area-message-digest-key
1 hmac-md5 mr942s7n start-accept 08:00:00
start-generate 9:00:00 stop-accept 23:00:00 stop-generate 22:59:59
- host1(config-router)#area-message-digest-key
2 hmac-md5 dsb38h5f start-accept 08:00:00
start-generate 10:00:00 stop-accept 23:00:00 stop-generate 22:59:59