The peer route-filter import command specifies a route-filter for the routes to be received from a specified BGP peer.
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
Parameter | Description | Value |
---|---|---|
ipv4-address |
Specifies the IPv4 address of a BGP peer. |
The value is in dotted decimal notation. |
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. 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.
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] peer 10.1.1.1 as-number 100 [*HUAWEI-bgp] ipv4-family vpnv4-multicast [*HUAWEI-bgp-af-vpnv4-multicast] peer 10.1.1.1 enable [*HUAWEI-bgp-af-vpnv4-multicast] peer 10.1.1.1 route-filter aaa import