route-filter (BGP-IPv4 multicast address family view)

Function

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.

Format

route-filter route-filter-name { import | export [ direct | isis process-id | ospf process-id | rip process-id | static ] }

undo route-filter route-filter-name { import | export [ direct | isis process-id | ospf process-id | rip process-id | static ] }

Parameters

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.

-

Views

BGP-IPv4 multicast address family view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
bgp write

Usage Guidelines

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.

  • If you specify a route protocol in the command, MBGP filters only the routes of this protocol before advertising them.
  • If you do not specify any protocol in the command, MBGP filters all routes before advertising them.

Example

# Use the route-filter named aaa to filter the routes to be advertised by MBGP.
<HUAWEI> system-view
[~HUAWEI] bgp 100
[*HUAWEI-bgp] ipv4-family multicast
[*HUAWEI-bgp-af-multicast] route-filter aaa export
# Use the route-filter named aaa to filter the routes to be received by MBGP.
<HUAWEI> system-view
[~HUAWEI] bgp 100
[*HUAWEI-bgp] ipv4-family multicast
[*HUAWEI-bgp-af-multicast] route-filter aaa import
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >