R3303-HP HSR6800 Routers IP Multicast Command Reference

232
Related commands
display bgp multicast routing-table peer
peer as-path-acl (MBGP address family view)
Use peer as-path-acl to configure the filtering of routes incoming from or outgoing to an MBGP peer or
a peer group based on a specified AS path ACL.
Use undo peer as-path-acl to remove the filtering.
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 ACL based filtering is configured.
Views
IPv4 MBGP address family view
Default command level
2: System level
Parameters
group-name: Specifies an IPv4 MBGP peer group by its name, a string of 1 to 47 characters.
ip-address: Specifies an IPv4 MBGP peer by its IP address.
as-path-acl-number: Specifies an AS path ACL in the range of 1 to 256.
export: Specifies the outgoing routes.
import: Specifies the incoming routes.
Examples
# In IPv4 MBGP address family view, reference the AS path ACL 1 to filter routes outgoing to the peer
group test.
<Sysname> system-view
[Sysname]bgp 100
[Sysname-bgp]group test external
[Sysname-bgp]peer test as-number 200
[Sysname-bgp]ipv4-family multicast
[Sysname-bgp-af-mul] peer test enable
[Sysname-bgp-af-mul] peer test as-path-acl 1 export
Related commands
apply as-path
if-match as-path
ip as-path (Layer 3—IP Routing Command Reference)