route-filter (BGP-VPNv6 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 }

undo route-filter route-filter-name { import | export }

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.

Views

BGP-VPNv6 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 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 vpnv6
[*HUAWEI-bgp-af-vpnv6] route-filter aaa export
# Use the route-filter named aaa to filter the routes to be received by BGP.
<HUAWEI> system-view
[~HUAWEI] bgp 100
[*HUAWEI-bgp] ipv6-family vpnv6
[*HUAWEI-bgp-af-vpnv6] route-filter aaa import
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >