accept-lifetime
To set the time period during which the authentication key on a keychain is received as valid, use the accept-lifetime command in key configuration mode. To revert to the default value, use the no form of this command.
accept-lifetime start-time [duration duration value | infinite | end-time]
Syntax Description
start-time |
Start time, in hh:mm:ss day month year format, in which the key becomes valid. The range is from 0:0:0 to 23:59:59. The range for the number of days of the month is from 1 to 31. The range for the years is from 1993 to 2035. |
duration duration value |
(Optional) Determines the lifetime of the key in seconds. The range is from 1-2147483646. |
infinite |
(Optional) Specifies that the key never expires after it becomes valid. |
end-time |
(Optional) Time, in hh:mm:ss day month year format, after which the key expires. The range is from 0:0:0 to 23:59:59. |
Command Default
None
Command Modes
Key configuration
Command History
Release |
Modification |
---|---|
Release 3.3.0 |
This command was introduced. |
Release 3.6.0 |
The range values were added for the start-time argument. |
Usage Guidelines
No specific guidelines impact the use of this command.
Task ID
Task ID |
Operations |
---|---|
system |
read, write |
Examples
The following example shows how to use the accept-lifetime command:
RP/0/RP0/CPU0:router# configure
RP/0/RP0/CPU0:router(config)# key chain isis-keys
RP/0/RP0/CPU0:router(config-isis-keys)# key 8
RP/0/RP0/CPU0:router(config-isis-keys-0x8)# accept-lifetime 1:00:00 June 29 2006 infinite