The filter-policy export command specifies the filtering policy for the sent routes. Only the routes that match the filtering policy can be advertised through Update packets.
The undo filter-policy export command cancels the configuration.
The filter-policy import command specifies the filtering policy for the received route Update packets. Only the route Update packets that match the filtering policy can be received.
The undo filter-policy import command cancels the configuration.
By default, the filtering function is disabled.
filter-policy { ipv6-prefix ipv6-prefix-name | acl6-number | acl6-name acl6-name | route-policy route-policy-name } export [ direct | static | bgp | { ospfv3 | isis | ripng } [ process-id ] ]
filter-policy { ipv6-prefix ipv6-prefix-name | acl6-number | acl6-name acl6-name | route-policy route-policy-name } import
undo filter-policy export [ direct | static | bgp | { ospfv3 | isis | ripng } [ process-id ] ]
undo filter-policy { ipv6-prefix ipv6-prefix-name | acl6-number | acl6-name acl6-name | route-policy route-policy-name } export [ direct | static | bgp | { ospfv3 | isis | ripng } [ process-id ] ]
undo filter-policy import
undo filter-policy { ipv6-prefix ipv6-prefix-name | acl6-number | acl6-name acl6-name | route-policy route-policy-name } import
Parameter | Description | Value |
---|---|---|
ipv6-prefix ipv6-prefix-name |
Specifies the name of the 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. |
acl6-number |
Specifies the number of a basic IPv6 ACL. |
The value is an integer ranging from 2000 to 2999. |
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). |
route-policy route-policy-name |
Specifies the name of the route-policy. |
The name is a string of 1 to 200 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. |
- |
ospfv3 |
Specifies OSPFv3 routes. |
- |
isis |
Specifies IS-IS routes. |
- |
ripng |
Specifies RIPng routes. |
- |
process-id |
Specifies the process ID. |
The value is an integer ranging from 1 to 4294967295. |
Usage Scenario
For a named IPv6 ACL, when the rule command is used to configure a filtering rule, the filtering rule is effective only with the source address range that is specified by the source parameter and with the time period that is specified by the time-range parameter.
Only the routes that match the filtering policy can be added to the RIPng routing table.<HUAWEI> system-view [~HUAWEI] ip ipv6-prefix filter2 deny 2001:db8::1 64 [*HUAWEI] ripng 100 [*HUAWEI-ripng-100] filter-policy ipv6-prefix filter2 export
<HUAWEI> system-view [~HUAWEI] ip ipv6-prefix filter1 deny 2001:db8::1 64 [*HUAWEI] ripng 1 [*HUAWEI-ripng-1] filter-policy ipv6-prefix filter1 import