< Home

receive-time

Function

The receive-time command configures the duration of packet receiving for a keychain.

The undo receive-time command deletes the configuration.

By default, no duration of packet receiving is configured for a keychain.

Format

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 } &<1-7> } [ to end-day-name ]

receive-time date { { start-date-value } &<1-31> } [ to end-date-value ]

receive-time month { { start-month-name &<1-12> } } [ to end-month-name ]

undo receive-time

Parameters

Parameter Description Value
start-time Specifies the start time for packet receiving. The value ranges from 00:00 to 23:59, in HH:MM format.
start-date Specifies the start date for packet receiving. The value ranges from 1970-01-01 to 2050-12-31, in YYYY-MM-DD format.
duration duration-value Specifies the duration for packet receiving. The value ranges from 1 to 26280000, in minutes.
infinite Specifies a key that acts as an active key for packet receiving forever from the configured start-time. -
to Connects two durations of packet receiving. -
end-time Specifies the end time for packet receiving. The value ranges from 00:00 to 23:59, in HH:MM format.
end-date Specifies the end date for packet receiving. The value ranges from 1970-01-01 to 2050-12-31, in YYYY-MM-DD format.
daily Specifies the daily duration for packet receiving. -
day Specifies the weekly duration for packet receiving. -
start-day-name Specifies the weekly start day for packet receiving. The value can be Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, and Sunday.
end-day-name Specifies the weekly end day for packet receiving. The value can be Tuesday, Wednesday, Thursday, Friday, Saturday, and Sunday. The end day should be greater than the start day.
date Specifies the monthly duration for packet receiving. -
start-date-value Specifies the monthly start date for packet receiving. The value ranges from 1 to 31.
end-date-value Specifies the monthly end date for packet receiving. The value ranges from 2 to 31. The end date should be greater than the start date.
month Specifies the yearly duration for packet receiving. -
start-month-name Specifies the yearly start month for packet receiving. The value can be January, February, March, April, May, June, July, August, September, October, November, and December.
end-month-name Specifies yearly end month for packet receiving. It can be February, March, April, May, June, July, August, September, October, November, and December.

Views

Key-ID view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

Each keychain consists of multiple key IDs that are valid within different time periods and each key ID is configured with an authentication algorithm. When a key ID becomes valid, the corresponding authentication algorithm is used, ensuring the dynamic change of authentication algorithms. Configure different key IDs for packet sending and receiving to be valid within different time periods.

Implementation Procedure

There are two keychain validity modes:
  • Absolute time range: In this mode, keychains are valid within a certain period and are invalid out of the period.

  • Periodic time range: In this mode, keychains are valid periodically.

The mode in which key IDs for packet receiving become valid must be identical with that configured for the keychain.

Precautions

Only one key ID is valid within a time period.

Example

# Configure the time for packet receiving with the timing mode as absolute and range as infinite.

<sysname> system-view
[sysname] keychain one mode absolute
[sysname-keychain-one] key-id 5 
[sysname-keychain-one-keyid-5] receive-time 14:52 2008-10-1 duration infinite 

# Configure the time for packet receiving with the timing mode as absolute.

<sysname> system-view
[sysname] keychain two mode absolute
[sysname-keychain-two] key-id 5 
[sysname-keychain-two-keyid-5] receive-time 14:52 2008-10-1 to 14:52 2040-10-1 

# Configure the time for packet receiving with the timing mode as daily periodic.

<sysname> system-view
[sysname] keychain three mode periodic daily
[sysname-keychain-three] key-id 5 
[sysname-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.

<sysname> system-view
[sysname] keychain four mode periodic weekly
[sysname-keychain-four] key-id 5 
[sysname-keychain-four-keyid-5] receive-time day mon 

# Configure the time for packet receiving with the timing mode as monthly periodic.

<sysname> system-view
[sysname] keychain five mode periodic monthly
[sysname-keychain-five] key-id 5 
[sysname-keychain-five-keyid-5] receive-time date 12 to 25 

# Configure the time for packet receiving with the timing mode as yearly periodic.

<sysname> system-view
[sysname] keychain six mode periodic yearly
[sysname-keychain-six] key-id 5 
[sysname-keychain-six-keyid-5] receive-time month oct to dec 
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >