The peer route-filter import command specifies a route-filter for the routes to be received from a specified BGP peer group.
The undo peer route-filter import command restores the default configuration.
By default, no route-filter is specified for the routes to be received from a specified BGP peer group.
Parameter | Description | Value |
---|---|---|
group-name |
Specifies the name of a peer group. |
The name is a string of 1 to 47 case-sensitive characters, with spaces not supported. When double quotation marks are used around the string, spaces are allowed in the string. |
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
After a route-filter is created, you can run the peer route-filter import command to use the route-filter to filter the routes to be received from a specified BGP peer group. The command configuration ensures that only desired routes are accepted, which helps manage routes and reduces the routing table size and system resource consumption.
Prerequisites
The route-filter paragraph editing interface view has been displayed and a route-filter has been created using the edit xpl route-filter command.
Configuration Impact
If the peer route-filter command with a BGP peer group specified is run, all the members in the group inherit the command configuration.
Precautions
The peer route-filter command is mutually exclusive with the peer as-path-filter, peer filter-policy, peer ip-prefix, peer route-policy commands.
If a peer is specified when the peer route-filter command is run, a peer group is specified when the peer capability-advertise orf command is run, and then the peer is added to the peer group, the peer cannot inherit the configuration of the peer capability-advertise orf command from the peer group.<HUAWEI> system-view [~HUAWEI] xpl route-filter aaa [~HUAWEI-xpl-filter] end-filter [*HUAWEI] bgp 100 [*HUAWEI-bgp] group a internal [*HUAWEI-bgp] ipv4-family vpnv4-multicast [*HUAWEI-bgp-af-vpnv4-multicast] peer a enable [*HUAWEI-bgp-af-vpnv4-multicast] peer a route-filter aaa import