peer route-filter export (BGP-Flow address family view)

Function

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

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.

Format

peer ipv4-address route-filter route-filter-name export

undo peer ipv4-address route-filter route-filter-name export

Parameters

Parameter Description Value
ipv4-address

Specifies the IPv4 address of a BGP peer.

The value is in dotted decimal notation.

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-Flow 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. 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.

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 to the routes to be advertised to a specified BGP peer.
<HUAWEI> system-view
[~HUAWEI] bgp 100
[*HUAWEI-bgp] peer 1.1.1.1 as-number 200
[*HUAWEI-bgp] ipv4-family flow
[*HUAWEI-bgp-af-ipv4-flow] peer 1.1.1.1 enable
[*HUAWEI-bgp-af-ipv4-flow] peer 1.1.1.1 route-filter aaa export
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >