filter-policy export (OSPFv3 view)

Function

The filter-policy export command filters imported routes to be advertised based on a filtering policy.

The undo filter-policy export command restores the default setting.

By default, the imported routes to be advertised are not filtered.

Format

filter-policy { acl6-name acl6-name | ipv6-prefix ipv6-prefix-name } export unr

filter-policy { acl6-name acl6-name | ipv6-prefix ipv6-prefix-name } export direct

filter-policy { acl6-name acl6-name | ipv6-prefix ipv6-prefix-name } export bgp

filter-policy { acl6-name acl6-name | ipv6-prefix ipv6-prefix-name } export static

filter-policy { acl6-name acl6-name | ipv6-prefix ipv6-prefix-name } export ripng protocolID

filter-policy { acl6-name acl6-name | ipv6-prefix ipv6-prefix-name } export isis protocolID

filter-policy { acl6-name acl6-name | ipv6-prefix ipv6-prefix-name } export ospfv3 protocolID

filter-policy acl-number export direct

filter-policy acl-number export bgp

filter-policy acl-number export static

filter-policy acl-number export ripng protocolID

filter-policy acl-number export isis protocolID

filter-policy acl-number export ospfv3 protocolID

filter-policy acl-number export

filter-policy { acl6-name acl6-name | ipv6-prefix ipv6-prefix-name } export

undo filter-policy [ acl-number | acl6-name acl6-name | ipv6-prefix ipv6-prefix-name ] export direct

undo filter-policy [ acl-number | acl6-name acl6-name | ipv6-prefix ipv6-prefix-name ] export bgp

undo filter-policy [ acl-number | acl6-name acl6-name | ipv6-prefix ipv6-prefix-name ] export static

undo filter-policy [ acl-number | acl6-name acl6-name | ipv6-prefix ipv6-prefix-name ] export ripng protocolID

undo filter-policy [ acl-number | acl6-name acl6-name | ipv6-prefix ipv6-prefix-name ] export isis protocolID

undo filter-policy [ acl-number | acl6-name acl6-name | ipv6-prefix ipv6-prefix-name ] export ospfv3 protocolID

undo filter-policy [ acl-number | acl6-name acl6-name | ipv6-prefix ipv6-prefix-name ] export

filter-policy acl-number export unr

undo filter-policy [ acl-number | acl6-name acl6-name | ipv6-prefix ipv6-prefix-name ] export unr

Parameters

Parameter Description Value
ipv6-prefix ipv6-prefix-name

Specifies the name of an IPv6 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 to filter imported direct routes to be advertised based on a filtering policy.

-

bgp

Specifies to filter imported BGP routes to be advertised based on a filtering policy.

-

static

Specifies to filter imported static routes to be advertised based on a filtering policy.

-

ripng

Specifies to filter imported RIPng routes to be advertised based on a filtering policy.

-

protocolID

Specifies a process ID.

The value is an integer ranging from 1 to 4294967295.

isis

Specifies to filter imported IS-IS routes to be advertised based on a filtering policy.

-

ospfv3

Specifies to filter imported OSPFv3 routes from other OSPFv3 processes to be advertised based on a filtering policy.

-

acl6-name acl6-name

Specifies the name of a named basic ACL6.

The value is a string of 1 to 64 case-sensitive characters without spaces. The value must start with a letter (a to z or A to Z, case sensitive).

unr

Indicates the user network route (UNR) protocol that advertises routes.

-

acl-number

Specifies the number of a basic ACL.

The value is an integer ranging from 2000 to 2999.

Views

OSPFv3 view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
ospf write

Usage Guidelines

Usage Scenario

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

If no external routes are imported using the import-route (OSPFv3) command, the filter-policy export command does not take effect. The external routes include the OSPFv3 routes of other processes.

When the rule (basic ACL6 view) command is used to configure a filtering rule for an IPv6 named ACL, only the source address range that is specified in source and the time period that is specified in time-range take effect on the filtering rule.

Example

# Filter the imported routes based on the rule defined by ACL6 2002.
<HUAWEI> system-view
[~HUAWEI] acl ipv6 2002
[*HUAWEI-acl6-basic-2002] rule deny source 2001:db8::1 64
[*HUAWEI-acl6-basic-2002] quit
[*HUAWEI] ospfv3 1
[*HUAWEI-ospfv3-1] filter-policy 2002 export
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >