R3303-HP 6600/HSR6600 Routers MPLS Command Reference Guide

319
[Sysname-bgp-af-l2vpn] peer 1.1.1.1 allow-as-loop 2
# In BGP-VPLS address family view, allow the local AS number to appear repeatedly in the AS-PATH
attribute of a route received from peer 1.1.1.1 for up to twice.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] vpls-family
[Sysname-bgp-af-vpls] peer 1.1.1.1 allow-as-loop 2
peer as-path-acl (BGP-VPNv4 subaddress family view)
Use peer as-path-acl to specify to filter routes received from, or to be advertised to, a specific peer or
peer group based on an 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 { import | export }
undo peer { group-name | ip-address } as-path-acl as-path-acl-number { import | export }
Default
No AS filtering list is applied to a peer or peer group.
Views
BGP-VPNv4 subaddress family view
Default command level
2: System level
Parameters
group-name: Specifies the name of the peer group, a case-sensitive string of 1 to 47 characters.
ip-address: Specifies the IP address of the peer.
as-path-acl-number: Specifies the AS_PATH filtering list number in the range of 1 to 256.
import: Filters the received routes.
export: Filters the routes to be advertised.
Examples
# In BGP-VPNv4 subaddress family view, apply AS filtering list 3 to routes advertised by peer group test.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] ipv4-family vpnv4
[Sysname-bgp-af-vpnv4] peer test as-path-acl 3 export
peer capability-advertise orf ip-prefix (BGP-VPNv4 subaddress
family view)
Use peer capability-advertise orf ip-prefix to enable the ORF capability for a BGP peer or peer group.