< Home

rename ip address-set

Function

The rename ip address-set command renames an address object or address group.

Format

rename ip address-set address-set-name [ vpn-instance vpn-instance-name ] address-set address-set-new-name

Parameters

Parameter Description Value
address-set-name Specifies the original name of an address set. The value is the name of an existing address object or address group.
vpn-instance vpn-instance-name Specifies the name of a VPN instance. If this parameter is specified, rename the address set of the specified VPN instance. The value is the name of an existing VPN instance.
address-set-new-name Specifies the new name of the address set. The value is a case-sensitive character string. The length of a name without spaces ranges from 1 to 63 characters. The length of a name with spaces ranges from 3 to 65 characters. If a name contains spaces, the name must be enclosed with quotation marks (for example, "user for test").

The name cannot contain question marks (?). If the name does not contain any space, it also cannot have any double quotation marks ("). In addition, the name cannot be any or all.

Views

System view

Default Level

2: Configuration level

Usage Guidelines

Ensure that the address set that is to be renamed exists. The new name becomes valid immediately after you run the rename ip address-set command.

Example

# Rename address set abc as newabc.

<sysname> system-view
[sysname] rename ip address-set abc address-set newabc
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic