
361
[Sysname] ip vpn-instance vpn1
[Sysname-vpn-instance-vpn1] export route-policy poly-1
# Apply export routing policy
poly-3
to the IPv6 VPN of VPN instance
vpn3
.
<Sysname> system-view
[Sysname] ip vpn-instance vpn3
[Sysname-vpn-instance-vpn3] ipv6-family
[Sysname-vpn-ipv6-vpn3] export route-policy poly-3
filter-policy export (BGP-VPNv6 subaddress family view)
Description
Use the
filter-policy export
command to filter all or certain types of routes to be advertised.
Use the
undo filter-policy export
command to remove the configuration.
By default, MP-BGP does not filter routes to be advertised.
Only routes that survive the filtering are advertised by MP-BGP.
If you do not specify routing protocol parameters for the
filter-policy export
command, all routes to be
advertised are filtered.
Syntax
filter-policy
{
acl6-number
|
ipv6-prefix
ipv6-prefix-name
}
export
[
direct
|
isisv6
process-id
|
ospfv3
process-id
|
ripng
process-id
|
static
]
undo filter-policy
export
[
direct
|
isisv6
process-id
|
ospfv3
process-id
|
ripng
process-id
|
static
]
View
BGP-VPNv6 subaddress family view
Default level
2: System level
Parameters
acl6-number
: Specifies the IPv6 ACL number, ranging from 2000 to 3999.
ipv6-prefix
ipv6-prefix-name
: Specifies an IPv6 address prefix list by its name, which is a string of 1 to 19
characters.
direct
: Filters direct routes to be advertised.
isisv6
process-id
: Filters IPv6 ISIS routes to be advertised that are from a specific IPv6 ISIS process. The
process-id
parameter is ranging from 1 to 65,535.
ospfv3
process-id
: Filters OSPFv3 routes to be advertised that are from a specific OSPFv3 process. The
process-id
parameter is ranging from 1 to 65,535.
ripng
process-id
: Filters RIPng routes to be advertised that are from a specific RIPng process. The
process-
id
parameter is ranging from 1 to 65,535.
static
: Filters static routes to be advertised.
Examples
# In BGP-VPNv6 subaddress family view, use ACL 2555 to filter routes to be advertised by MP-BGP.
<Sysname> system-view