R3303-HP HSR6800 Routers MPLS Command Reference
309
With no parameter specified, the undo domain-id command deletes all domain IDs.
Examples
# Configure the OSPF domain ID.
<Sysname> system-view
[Sysname] ospf 100
[Sysname-ospf-100] domain-id 234
export route-policy (VPN instance view/IPv4 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, IPv4 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 IPv4 VPN view applies to only the IPv4 VPN.
An export routing policy specified in IPv4 VPN view takes precedence over that specified in VPN
instance view. If you specify an export routing policy in both IPv4 VPN view and VPN instance view, the
IPv4 VPN uses the policy specified in IPv4 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-2 to the IPv4 VPN of VPN instance vpn2.
<Sysname> system-view
[Sysname] ip vpn-instance vpn2
[Sysname-vpn-instance-vpn2] ipv4-family
[Sysname-vpn-ipv4-vpn2] export route-policy poly-2










