R2511-HP MSR Router Series Layer 3 - IP Routing Command Reference(V5)
447
as-number: Specifies the AS number of the peer or peer group, in the range of 1 to 4294967295.
Examples
# Configure peer 2001::1 in AS 200.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] ipv6-family vpn-instance vpn1
[Sysname-bgp-ipv6-vpn1] peer 2001::1 as-number 200
peer as-path-acl (IPv6 address family view)
Use peer as-path-acl to specify an AS path ACL to filter routes incoming from or outgoing to a peer or
peer group.
Use undo peer as-path-acl to remove the configuration.
Syntax
peer { group-name | ipv4-address | ipv6-address } as-path-acl as-path-acl-number { import | export }
undo peer { group-name | ipv4-address | ipv6-address } as-path-acl as-path-acl-number { import |
export }
Default
No AS path list is specified for filtering.
Views
IPv6 address family view
Default command level
2: System level
Parameters
group-name: Specifies the name of an IPv4 or IPv6 peer group, a string of 1 to 47 characters.
ipv4-address: Specifies the IPv4 address of a peer.
ipv6-address: Specifies the IPv6 address of a peer.
as-path-acl-number: Specifies the number of an AS path ACL, in the range of 1 to 256.
import: Filters incoming routes.
export: Filters outgoing routes.
Examples
# Specify the AS path ACL 3 to filter routes outgoing to the peer 1:2::3:4.
<Sysname> system-view
[Sysname] ip as-path 3 permit ^200
[Sysname] bgp 100
[Sysname-bgp] ipv6-family
[Sysname-bgp-af-ipv6] peer 1:2::3:4 as-path-acl 3 export










