route-filter (BGP-IPv6 unicast address family view)

Function

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.

Format

route-filter route-filter-name { import | export [ direct | isis process-id | ospfv3 process-id | ripng process-id | static | unr ] }

undo route-filter route-filter-name { import | export [ direct | isis process-id | ospfv3 process-id | ripng process-id | static | unr ] }

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.

direct

Filters the direct routes to be advertised.

-

isis process-id

Specifies the ID of an IS-IS process.

The value is an integer ranging from 1 to 4294967295.

ospfv3 process-id

Specifies the ID of an OSPFv3 process.

The value is an integer ranging from 1 to 4294967295.

ripng process-id

Specifies the ID of an RIPng process.

The value is an integer ranging from 1 to 4294967295.

static

Filters the static routes to be advertised.

-

unr

Filters the UNR routes to be advertised.

-

Views

BGP-IPv6 unicast 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 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.

Example

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