Command Manual – Routing Protocol
Quidway S8500 Series Routing Switches
Chapter 5 BGP Configuration Commands
Huawei Technologies Proprietary
5-33
undo peer
group-name
as-path-acl
acl-number
export
View
BGP view
Parameter
group-name
: Specifies name of the peer group.
acl-number:
Number of an AS path list, in the range of 1 to 199.
export
: Applies the AS path list to advertised routes.
Description
Use the
peer as-path-acl
export
command to configure filtering Policy of BGP
advertised routes based on AS path list.
Use the
undo peer as-path-acl
command to cancel the existing configuration.
By default, the peer group has no AS path list.
This command can only be configured on the peer group. The
acl-number
specifies the
number of the AS path list. It is configured by the
ip as-path-acl
command rather than
the
acl
command.
Related command:
peer as-path-acl import
,
ip as-path-acl
.
Example
# Configure to filter the routes advertised by the peer group test using the AS path-list 1.
[Quidway-bgp] peer test as-path-acl 1 export
5.1.36 peer as-path-acl import
Syntax
peer
{
group-name
|
peer-address
}
as-path-acl
acl-number import
undo peer
{
group-name
|
peer-address
}
as-path-acl
acl-number
import
View
BGP view
Parameter
group-name
: Specifies the name of the peer group.
peer-address
: Specifies IP address of the peer, in dotted decimal format.
acl-number
: Specifies the filter list number of an AS regular expression. The range is 1
to 199.
import
: Applies the AS path list to received routes.