The filter-policy export command configures a device to use an export policy to filter the routes to be advertised so that only the routes that match the export policy are advertised.
The undo filter-policy export command restores the default configuration.
The filter-policy import command configures a device to filter received routes.
The undo filter-policy import command restores the default configuration.
The routes received and to be advertised are not filtered.
Parameter | Description | Value |
---|---|---|
acl6-number |
Specifies the number of a basic ACL6. |
The value is an integer that ranges from 2000 to 2999. |
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. |
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). |
Usage Scenario
The filter-policy export command takes effect on the routes to be advertised by BGP. BGP filters the routes that are imported using the import-route command. After the command is run, only the routes that match the export policy can be added to the local BGP routing table and advertised by BGP.
The filter-policy import command is used to filter the routes received by BGP so that BGP adds only desired routes to the BGP routing table. If protocol is specified, only the routes imported from the specified protocol will be filtered. If protocol is not specified, the routes imported from all protocols will be filtered. If rules are configured for a named ACL using the rule command, only the source address range specified by source and the time period specified by time-range are valid.Configuration Impact
If the filter-policy export command with the same protocol specified is run more than once, the latest configuration overrides the previous one.
If the filter-policy import command runs more than once, the latest configuration overrides the previous one.Precautions
The filter-policy export command is mutually exclusive with the route-filter export command.
The filter-policy import command is mutually exclusive with the route-filter import command.