![H3C S9500 Series Command Manual Download Page 302](http://html.mh-extra.com/html/h3c/s9500-series/s9500-series_command-manual_575036302.webp)
Command Manual – MPLS L3VPN
H3C S9500 Series Routing Switches
Chapter 1 MPLS L3VPN Configuration Commands
1-39
aspath-filter-number
: AS_PATH filtering list number.
import
: Filters the received routes.
export
: Filters the routes to be advertised.
Description
Use the
peer as-path-acl
command to specify to filter routes received from or to be
advertised to a specified peer or peer group based on an AS_PATH list.
Use the
undo peer as-path-acl
command to remove the configuration.
By default, no AS filtering list is applied to a peer or peer group.
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
1.1.30 peer default-route-advertise vpn-instance
Syntax
peer
{
group-name
|
ip-address
}
default-route-advertise
vpn-instance
vpn-instance-name
undo peer
{
group-name
|
ip-address
}
default-route-advertise
vpn-instance
vpn-instance-name
View
BGP-VPNv4 subaddress family view
Default Level
2: System level
Parameters
group-name
: Name of the peer group.
ip-address
: IP address of the peer.
vpn-instance-name
: Name of the VPN instance.
Description
Use the
peer default-route-advertise vpn-instance
command to specify to advertise
all default routes of a VPN instance to a peer or peer group.