The receive-time command configures a key as a receive key for the specified interval of time.
The undo receive-time command deletes the receive time configuration.
By default, no receive time is configured.
receive-time start-time start-date { duration { duration-value | infinite } | to end-time end-date }
receive-time daily start-time to end-time
receive-time day { start-day-name to end-day-name | day-name &<1-7> }
receive-time date { start-date-value to end-date-value | date-value &<1-31> }
receive-time month { start-month-name to end-month-name | month-name &<1-12> }
undo receive-time
Parameter |
Description |
Value |
---|---|---|
start-time | Specifies the start receive time. | In HH:MM format. The value ranges from 00:00 to 23:59. |
start-date | Specifies the start date. | In YYYY-MM-DD format. The value ranges from 1970-01-01 to 2050-12-31. |
duration duration-value | Specifies the duration of the receive time in minutes. | The value ranges from 1 to 26280000. |
infinite | Indicates that the key will be acting as an active receive key forever from the configured start time. | - |
to | Indicates a separator. | - |
end-time | Specifies the end receive time. | In HH:MM format. The value ranges from 00:00 to 23:59. The end time must be later than the start time. |
end-date | Specifies the end date. | In YYYY-MM-DD format. The value ranges from 1970-01-01 to 2050-12-31. |
daily | Specifies the daily receive time for the given key. | - |
day | Specifies the days of the week. | - |
start-day-name | Specifies the day of the week to be configured as the start receive day for the given key. | It can be Mon, Tue, Wed, Thur, Fri, Sat, and Sun. |
end-day-name | Specifies the end receive day for the given key. | It can be Tue, Wed, Thur, Fri, Sat, and Sun. The end day must be later than the start day. |
day-name &<1-7> | Specifies the day of the week to be configured as the receive day for the given key. | It can be Mon, Tue, Wed, Thur, Fri, Sat, and Sun. One or more days can be configured. |
date | Specifies the date of the month. | - |
start-date-value | Specifies the start date of the month to be configured as the receive date for the given key. | The value ranges from 1 to 31. |
end-date-value | Specifies the end receive date of the month. | The value ranges from 2 to 31. The end date must be later than the start date. |
date-value &<1-31> | Specifies the date of the month to be configured as the receive date for the given key. | The value ranges from 1 to 31. One or more dates can be configured. |
month | Specifies the months of the year. | - |
start-month-name | Specifies the month of the year to be configured as the start receive month for the given key. | It can be Jan, Feb, Mar, Apr, May, Jun, Jul, Aug, Sep, Oct, Nov, and Dec. |
end-month-name | Specifies the end receive month. The end month must be greater than the start month. | The end month must be later than the start month. It can be Feb, Mar, Apr, May, Jun, Jul, Aug, Sep, Oct, Nov, and Dec. |
month-name &<1-12> | Specifies the month of the year to be configured as the receive month for the given key. | It can be Jan, Feb, Mar, Apr, May, Jun, Jul, Aug, Sep, Oct, Nov, and Dec. One or more months can be configured. |
Usage Scenario
Each keychain consists of multiple keys that are valid within different time periods and each key is configured with an authentication algorithm and key string. When a key becomes valid, the corresponding authentication algorithm and the key string are used. Configure different keys for packet sending and receiving to be valid within different time periods.
When the system time is within the specified interval, the receive key is in active state.
Absolute time range: In this mode, keychains are valid within a certain period.
Periodic time range: In this mode, keychains are valid periodically.
The mode in which receive keys become valid must be the same as that configured for the keychain.
Precautions
Multiple receive keys can be active at the same time. The device will select a key for decryption based on the received packet.
# Configure the time for packet receiving with the timing mode as absolute and range as infinite.
<HUAWEI> system-view [HUAWEI] keychain one mode absolute [HUAWEI-keychain-one] key-id 5 [HUAWEI-keychain-one-keyid-5] receive-time 14:52 2014-11-1 duration infinite
# Configure the time for packet receiving with the timing mode as absolute.
<HUAWEI> system-view [HUAWEI] keychain two mode absolute [HUAWEI-keychain-two] key-id 5 [HUAWEI-keychain-two-keyid-5] receive-time 14:52 2014-11-1 to 14:52 2040-10-1
# Configure the time for packet receiving with the timing mode as daily periodic.
<HUAWEI> system-view [HUAWEI] keychain three mode periodic daily [HUAWEI-keychain-three] key-id 5 [HUAWEI-keychain-three-keyid-5] receive-time daily 14:52 to 18:10
# Configure the time for packet receiving with the timing mode as weekly periodic.
<HUAWEI> system-view [HUAWEI] keychain four mode periodic weekly [HUAWEI-keychain-four] key-id 5 [HUAWEI-keychain-four-keyid-5] receive-time day mon
# Configure the time for packet receiving with the timing mode as monthly periodic.
<HUAWEI> system-view [HUAWEI] keychain five mode periodic monthly [HUAWEI-keychain-five] key-id 5 [HUAWEI-keychain-five-keyid-5] receive-time date 12 to 25
# Configure the time for packet receiving with the timing mode as yearly periodic.
<HUAWEI> system-view [HUAWEI] keychain six mode periodic yearly [HUAWEI-keychain-six] key-id 5 [HUAWEI-keychain-six-keyid-5] receive-time month oct to dec