edit xpl ipv6-prefix-list

Function

The edit xpl ipv6-prefix-list command displays the IPv6 prefix set paragraph editing interface view.

By default, no IPv6 prefix sets are configured.

Format

edit xpl ipv6-prefix-list ipv6-prefix-list-name

Parameters

Parameter Description Value
ipv6-prefix-list-name

Specifies the name of an IPv6 prefix set.

The value is a string of 1 to 200 case-sensitive characters, spaces not supported. The string can contain letters, digits, underscores (_), hyphens (-), and dots (.). It must start with a letter or digit.

Views

User view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
route-base write

Usage Guidelines

Usage Scenario

An IPv6 prefix set is a group of IPv6 prefix data used by a route-filter to filter BGP routes based on route attributes, such as the source, destination, or next hop IP address. To enter the IPv6 prefix set paragraph editing interface view, run the edit xpl ipv6-prefix-list command.

To configure an IPv6 prefix set in the IPv6 prefix set paragraph editing interface view, perform the following steps:

  1. Configure a start clause (xpl ipv6-prefix-list ipv6-prefix-list-name) for an IPv6 prefix set.
  2. Configure elements (IPv6 addresses with masks, 2001:db8:0:1:: 64 for example) for the set and separate every two neighboring elements with a comma (,). You can use eq, ge, or le to specify the mask length. For example, 2001:db8:0:1:: 64 ge 96 le 100 matches the routes in network segment 2001:db8:0:1::/64 with the mask length ranging from 96 to 100 bits.
  3. Configure an end clause (end-list) for the IPv6 prefix set.

Precautions

An IPv6 prefix set is only a group of data used as matching rules and does not have the permit or deny function. Therefore, an IPv6 prefix set can be used to filter routes only after it is referenced by a route-filter.

Example

# Configure an IPv6 prefix set named aaa.
<HUAWEI> edit xpl ipv6-prefix-list aaa
xpl ipv6-prefix-list aaa
2001:db8:0:1:: 64,
2001:db8:1:1:: 64,
2001:db8:1:2:: 64 GE 96
end-list
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >