The route-filter export command filters the routes to be advertised so that BGP advertises only desired routes.
The undo route-filter export command restores the default configuration.
The route-filter import command filters the routes to be received.
The undo route-filter import command restores the default configuration.
By default, received routes or the routes to be advertised are not filtered.
Parameter | Description | Value |
---|---|---|
route-filter-name |
Specifies the name of a route-filter. |
The value is a string of 1 to 200 case-sensitive characters, spaces not supported. If parameters are included in the referenced route-filter, specify values for them in the format of (var1, var2, ...var8) behind the route-filter name. A maximum of eight parameters can be specified, and each value ranges from 1 to 200 characters. |
Usage Scenario
To filter the routes to be advertised using a route-filter, run the route-filter export command.
If you specify a route protocol in the command, BGP filters only the routes of this protocol before advertising them. If you do not specify any protocol in the command, BGP filters all routes before advertising them.Configuration Impact
If the route-filter export command with the same route protocol specified is run more than once, the latest configuration overrides the previous one.
The route-filter export command is mutually exclusive with the filter-policy export command. If the route-filter export command is run, some BGP routes are not added to the IP routing table. Therefore, exercise caution when using the command. If the route-filter import is run more than once, the latest configuration overrides the previous one. The route-filter import command is mutually exclusive with the filter-policy import command.