R3303-HP HSR6800 Routers MPLS Command Reference

368
export route-policy (VPN instance view/IPv6 VPN view)
Use export route-policy to apply a routing policy to filter outgoing routes for the VPN instance. Such a
routing policy is referred to as an export routing policy.
Use undo export route-policy to remove the application.
Syntax
export route-policy route-policy
undo export route-policy
Default
No routing policy is applied to filter the routes to be advertised.
Views
VPN instance view, IPv6 VPN view
Default command level
2: System level
Parameters
route-policy: Specifies the name of a routing policy, a case-sensitive string of 1 to 63 characters.
Usage guidelines
You can specify an export routing policy when the VPN route advertisement control provided by the
extended community attributes is not enough.
An export routing policy specified in VPN instance view applies to both the IPv4 VPN and IPv6 VPN.
An export routing policy specified in IPv6 VPN view applies to only the IPv6 VPN.
An export routing policy specified in IPv6 VPN view takes precedence over that specified in VPN
instance view. If you specify an export routing policy in both IPv6 VPN view and VPN instance view, the
IPv6 VPN uses the policy specified in IPv6 VPN view.
Examples
# Apply export routing policy poly-1 to VPN instance vpn1.
<Sysname> system-view
[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)
Use filter-policy export to filter all or certain types of routes to be advertised.
Use undo filter-policy export to remove the configuration.