F3726, F3211, F3174, R5135, R3816-HP Firewalls and UTM Devices Network Management Command Reference-6PW100

Table Of Contents
488
# In BGP-VPN instance view, specify peer group test2 in AS 200. (The VPN has been created.)
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] ipv4-family vpn-instance vpn1
[Sysname-bgp-ipv4-vpn1] peer test2 as-number 200
peer as-path-acl (BGP/BGP-VPN instance view)
Use peer as-path-acl to configure the filtering of routes incoming from or outgoing to a peer/peer group
based on a specified AS path list.
Use undo peer as-path-acl to remove the configuration.
Syntax
peer { group-name | ip-address } as-path-acl as-path-acl-number { export | import }
undo peer { group-name | ip-address } as-path-acl as-path-acl-number { export | import }
Default
No AS path list filtering is configured.
Views
BGP view, BGP-VPN instance view
Default command level
2: System level
Parameters
group-name: Specifies the name of a peer group, a string of 1 to 47 characters.
ip-address: Specifies an IP address of a peer.
as-path-acl-number: Specifies an AS path list number, in the range of 1 to 256.
export: Filters outgoing routes.
import: Filters incoming routes.
Examples
# In BGP view, reference the AS path list 1 to filter routes outgoing to the peer group test.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] peer test as-path-acl 1 export
# In BGP-VPN instance view, reference the AS path list 1 to filter routes outgoing to the peer group test.
(The VPN has been created.)
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] ipv4-family vpn-instance vpn1
[Sysname-bgp-ipv4-vpn1] peer test as-path-acl 1 export
Related commands
apply as-path
if-match as-path
ip as-path