R0106-HP MSR Router Series Layer 3 - IP Routing Command Reference(V7)

388
Syntax
In BGP IPv4 unicast address family view/BGP-VPN IPv4 unicast address family view/BGP VPNv4
address family view/BGP IPv4 multicast address family view:
peer { group-name | ip-address } as-path-acl as-path-acl-number { export | import }
undo peer { group-name | ip-address } as-path-acl { export | import }
In BGP IPv6 unicast address family view:
peer { group-name | ip-address | ipv6-address } as-path-acl as-path-acl-number { export | import }
undo peer { group-name | ip-address | ipv6-address } as-path-acl { export | import }
In BGP IPv6 multicast address family view:
peer { group-name | ipv6-address } as-path-acl as-path-acl-number { export | import }
undo peer { group-name | ipv6-address } as-path-acl { export | import }
Default
No AS path list is specified for filtering.
Views
BGP IPv4 unicast address family view, BGP-VPN IPv4 unicast address family view, BGP-VPNv4 address
family view, BGP IPv6 unicast address family view, BGP IPv4 multicast address family view, BGP IPv6
multicast address family view
Predefined user roles
network-admin
Parameters
group-name: Specifies a peer group by its name, a case-sensitive string of 1 to 47 characters. The peer
group must have been created.
ip-address: Specifies a peer by its IPv4 address. The peer must have been created.
ipv6-address: Specifies a peer by its IPv6 address. The peer must have been created.
as-path-acl-number: Specifies an AS path list by its number in the range of 1 to 256.
export: Filters outgoing routes.
import: Filters incoming routes.
Usage guidelines
The specified AS path list must have been created with the ip as-path command in system view.
Otherwise, all routes can pass the AS path list.
Examples
# In BGP IPv4 unicast address family view, specify the AS path list 1 to filter routes outgoing to the peer
group test.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] address-family ipv4 unicast
[Sysname-bgp-ipv4] peer test as-path-acl 1 export
# In BGP-VPN IPv4 unicast address family view, specify the AS path list 1 to filter routes outgoing to the
peer group test.