H3C S7500 Series Ethernet Switches Command Manual

Table Of Contents
Command Manual – Routing Protocol
H3C S7500 Series Ethernet Switches Chapter 5 BGP Configuration Commands
5-33
acl-number: AS path ACL number, in the range of 1 to 199.
export: Filters the 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, no AS path ACL is configured for a peer group.
You can use the peer as-path-acl export command on a peer group. In the peer
as-path-acl export command, the acl-number argument is the AS path list number. It is
configured by using the ip as-path-acl command, instead of the acl command.
Related commands: peer as-path-acl import, ip as-path-acl.
Examples
# Filter routes exported to the peer group (named test) based on AS path ACL 1.
<H3C>system-view
System View: return to User View with Ctrl+Z.
[H3C] bgp 100
[H3C-bgp] peer test as-path-acl 1 export
5.1.35 peer as-path-acl import
Syntax
peer { group-name | ip-address } as-path-acl acl-number import
undo peer { group-name | ip-address } as-path-acl acl-number import
View
BGP view
Parameters
group-name: Name of the peer group, containing 1 to 47 alphanumeric characters.
ip-address: IP address of the peer, in dotted decimal notation.
acl-number: AS path list number, in the range of 1 to 199.
import: Applies the AS path list in filtering the received routes.
Description
Use the peer as-path-acl import command to configure filtering Policy of BGP
received routes based on AS path list.
Use the undo peer as-path-acl import command to cancel the existing configuration.