peer route-filter export (BGP multi-instance VPNv4 address family view) (group)

Function

The peer route-filter export command specifies a route-filter for the routes to be advertised to a specified BGP peer group.

The undo peer route-filter export command restores the default configuration.

By default, no route-filter is specified for the routes to be advertised to a specified BGP peer group.

Format

peer group-name route-filter route-filter-name export

undo peer group-name route-filter route-filter-name export

Parameters

Parameter Description Value
group-name

Specifies the name of a peer group.

The name is a string of 1 to 47 case-sensitive characters, with spaces not supported. When double quotation marks are used around the string, spaces are allowed in the string.

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 multi-instance VPNv4 address family view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
bgp write

Usage Guidelines

Usage Scenario

After a route-filter is created, you can run the peer route-filter export command to use the route-filter to filter the routes to be advertised to a specified BGP peer group. The command configuration ensures that only desired routes are advertised, 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.

Configuration Impact

If the peer route-filter command with a BGP peer group specified is run, all the members in the group inherit the command configuration.

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.

Example

# Apply the route-filter named aaa to the routes to be advertised to a specified BGP peer group.
<HUAWEI> system-view
[~HUAWEI] xpl route-filter aaa
[~HUAWEI-xpl-filter] end-filter
[*HUAWEI] bgp 100 instance p1
[*HUAWEI-bgp-instance-p1] group a internal
[*HUAWEI-bgp-instance-p1] ipv4-family vpnv4
[*HUAWEI-bgp-instance-p1-af-vpnv4] peer a enable
[*HUAWEI-bgp-instance-p1-af-vpnv4] peer a route-filter aaa export
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >