Usage guidelines
You can specify an export routing policy to filter advertised routes or modify their route attributes for
the VPN instance.
If you execute this command multiple times, the most recent configuration takes effect.
An export routing policy specified in VPN instance view applies to both IPv4 VPN and IPv6 VPN. An
export routing policy specified in VPN instance IPv4 address family view applies only to IPv4 VPN.
An export routing policy specified in VPN instance IPv6 address family view applies only to IPv6
VPN.
If you have specified export routing policies in both VPN instance IPv4 address family view and VPN
instance view, IPv4 VPN uses the export routing policy specified in VPN instance IPv4 address
family view.
If you have specified export routing policies in both VPN instance IPv6 address family view and VPN
instance view, IPv6 VPN uses the export routing policy specified in VPN instance IPv6 address
family 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
Related commands
import route-policy
route-policy
import route-policy
Use
import route-policy
Use
undo import route-policy
Syntax
import route-policy route-policy
undo import route-policy
Default
All routes matching the import target attribute are accepted.
Views
VPN instance view
VPN instance IPv4 address family view
VPN instance IPv6 address family view
Predefined user roles
network-admin
Parameters
route-policy
characters.
(Layer 3—IP Routing Command Reference)
to apply an import routing policy to a VPN instance.
: Specifies a routing policy by its name, a case-sensitive string of 1 to 63
to restore the default.
4