![Huawei S6700 Series Configuration Manual Download Page 589](http://html.mh-extra.com/html/huawei/s6700-series/s6700-series_configuration-manual_169517589.webp)
l
export
: filters the routes sent to a specified remote MBGP peer or peer group. Only the routes
that pass the filtering are sent.
----End
9.5.5 Configuring the Route Filtering Policy Based on AS-Path List
An AS_Path filter specifies rules for filtering routes regarding AS_Path attributes.
Context
Do as follows on the switch configured with an MBGP peer:
NOTE
The configuration is optional. By default, the route filtering policy based on the AS-Path list is not
configured.
Procedure
Step 1
Run:
system-view
The system view is displayed.
Step 2
Run:
bgp
as-number
The BGP view is displayed.
Step 3
Run:
ipv4-family
multicast
The BGP-IPv4 multicast address family view is displayed.
Step 4
Run:
peer
{
ipv4-address
|
group-name
}
as-path-filter
{
as-path-filter-number
|
as-path-
filter-name
} {
import
|
export
}
The MBGP routing policy based on the AS-Path list is configured to control the route exchange
with a specified remote MBGP route.
The parameters of the command are explained as follows:
l
group-name
specifies an MBGP peer group.
l
ipv4-address
: specifies the IP address of a remote MBGP peer.
l
as-path-filter-number
and
as-path-filter-name
: specifies the AS-Path list.
l
import
: filters the routes sent by a specified remote MBGP peer or peer group. Only the
routes that pass the filtering are received.
l
export
: filters the routes sent to a specified remote MBGP peer or peer group. Only the routes
that pass the filtering are sent.
----End
9.5.6 Configuring the Route Filtering Policy Based on IP Prefix
By configuring an IP prefix list, you can filter MBGP routes based on route prefixes.
S6700 Series Ethernet Switches
Configuration Guide - IP Routing
9 MBGP Configuration
Issue 01 (2012-03-15)
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
570