< Home

filter-policy export (OSPFv3)

Function

The filter-policy export command sets the OSPFv3 rules to filter the imported routes.

By default, the imported routes are not filtered.

Format

filter-policy { acl6-number | ipv6-prefix ipv6-prefix-name } export [ direct | static | bgp | unr | { ripng | isis | ospfv3 } [ process-id ] ]

undo filter-policy [ { acl6-number |ipv6-prefix ipv6-prefix-name ] export [ direct | static | bgp | unr | { ripng | isis | ospfv3 } [ process-id ] ]

Parameters

Parameter Description Value
acl6-number Specifies the ACL6 number. The value is an integer ranging from 2000 to 2999.
ipv6-prefix ipv6-prefix-name Specifies the name of the prefix list. The name is a string of 1 to 169 case-sensitive characters, with spaces not supported. When double quotation marks are used around the string, spaces are allowed in the string.
direct Specifies direct routes. -
static Specifies static routes. -
bgp Specifies BGP routes. -
unr Specifies UNR routes. -
ripng Specifies RIPng routes. -
isis Specifies IS-IS routes. -
ospfv3 Specifies OSPFv3 routes. -
process-id Specifies the process ID. The value is an integer ranging from 1 to 65535. The default value is 1.

Views

OSPFv3 view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

The filter-policy export command is only valid for the routes that are imported by using the import-route command.

Precautions

Creating an ACL6 or IPv6 prefix list before it is referenced is recommended. If a nonexistent ACL6 or IPv6 prefix list is referenced using the command, all external routes imported to OSPFv3 are converted to Type 5 LSAs (AS-external-LSAs) or Type 7 LSAs (NSSA-external-LSAs) and then are advertised to neighbors.

Example

# Filter the imported routes based on the rule defined by ACL6 2002.

<sysname> system-view
[sysname] ospfv3 1
[sysname-ospfv3-1] filter-policy 2002 export
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >