The route-filter command filters the routes to be received and advertised .
The undo route-filter command restores the default configuration.
By default, the routes to be received are not filtered, 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. |
import |
Filter incoming routing updates. |
- |
export |
Filter outgoing routing updates. |
- |
direct |
Filters the direct routes to be advertised. |
- |
isis process-id |
Filters the IS-IS routes to be advertised. process-id indicates the process ID of ISIS protocol. |
The value is an integer ranging from 1 to 4294967295. |
ospf process-id |
Filters the OSPF routes to be advertised. process-id indicates the process ID of OSPF protocol. |
The value is an integer ranging from 1 to 4294967295. |
rip process-id |
Filters the RIP routes to be advertised. process-id indicates the process ID of RIP protocol. |
The value is an integer ranging from 1 to 4294967295. |
static |
Filters the static routes to be advertised. |
- |
Usage Scenario
To filter the routes to be received by MBGP, run the route-filter import command. MBGP adds only the received routes that match the route-filter to the MBGP routing table.
To filter the routes to be advertised using a route-filter, run the route-filter export command.<HUAWEI> system-view [~HUAWEI] bgp 100 [*HUAWEI-bgp] ipv4-family multicast [*HUAWEI-bgp-af-multicast] route-filter aaa export
<HUAWEI> system-view [~HUAWEI] bgp 100 [*HUAWEI-bgp] ipv4-family multicast [*HUAWEI-bgp-af-multicast] route-filter aaa import