< Home

pcp mapping lifetime

Function

The pcp mapping lifetime command sets the maximum and minimum lifetimes for PCP mappings.

Format

pcp mapping lifetime { max max-lifetime | min min-lifetime } *

Parameters

Parameter Description Value
max-lifetime

Specifies the maximum lifetime of a PCP mapping.

The value is an integer ranging from 1800 to 86400, in seconds. The default value is 1800 seconds.
min-lifetime

Specifies the minimum lifetime of a PCP mapping.

The value is an integer ranging from 120 to 600, in seconds. The default value is 120 seconds.

Views

System view

Default Level

2: Configuration level

Usage Guidelines

The request packet sent by a PCP client contains a PCP mapping lifetime. You can also set a PCP mapping lifetime on the FW. The final PCP mapping lifetime depends on the lifetime requested by the PCP client and the lifetime configured on the FW.

You can use this command to configure a suitable PCP mapping lifetime to ensure timely resource release.

Example

# Set maximum lifetime to 2000s and minimum lifetime to 200s for PCP mappings.

<sysname> system-view
[sysname] pcp mapping lifetime max 2000 min 200
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >