< Home

alias (ISAKMP IPSec policy view, IPSec policy template view)

Function

The alias command sets an alias of an IPSec policy or IPSec policy template.

The undo alias command restores the default alias of an IPSec policy or IPSec policy template.

By default, the alias of an IPSec policy or IPSec policy template is the combination of its name and ID. If the default alias has been used by another IPSec policy or IPSec policy template, the system defines the default alias of the IPSec policy or IPSec policy template by combining the current time with its name and ID.

Format

alias alias

undo alias

Parameters

Parameter

Description

Value

alias

Specifies an alias for an IPSec policy or IPSec policy template.

The value is a string of 1 to 127 case-sensitive characters, which do not include question marks (?).

NOTE:
  • The value supports multiple languages, including ASCII characters such as the English and non-ASCII characters such as the Chinese, German, and French.
  • You can use a command editor of the GBK or UTF-8 encoding format to edit characters. For details about how to switch the encoding format of the system and related precautions, see the language character-set utf-8 command.
  • After the encoding format is switched, if the original aliases contain non-ASCII characters, garbled characters are displayed. When multiple languages are converted to ASCII characters, the total length cannot exceed 127.

Views

ISAKMP IPSec policy view, IPSec policy template view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

In real-world applications, multiple IPSec policies or IPSec policy templates are often configured in an IPSec policy group. In this case, you can use the alias command to configure alias to identify these IPSec policies or IPSec policy templates. It is recommended that you configure meaningful alias that are easy to remember.

Precautions

The alias of each IPSec policy or IPSec policy template must be unique. Otherwise, the system displays a configuration failure message.

Example

# Configure the alias huawei for the IPSec policy policy1 with the ID of 1.

<sysname> system-view
[sysname] ipsec policy policy1 1 isakmp
[sysname-ipsec-policy-isakmp-policy1-1] alias huawei
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
Next topic >