R21xx-HP FlexFabric 11900 MPLS Command Reference

Table Of Contents
7
and the routes are intra-area or inter-area routes, OSPF advertises these routes in Type-3 LSAs. If the
domain ID is the same but the routes are not intra-area or inter-area routes, OSPF advertises these routes
in Type-5 or Type-7 LSAs. If the domain ID is different, OSPF advertises the routes in Type-5 or Type-7
LSAs.
With no parameter specified, the undo domain-id command deletes all domain IDs.
Examples
# Configure the OSPF domain ID as 234 for VPN instance vpn1.
<Sysname> system-view
[Sysname] ospf 100 vpn-instance vpn1
[Sysname-ospf-100] domain-id 234
export route-policy
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, IPv6 VPN view
Predefined user roles
network-admin
Parameters
route-policy: Specifies the name of a routing policy, a case-sensitive string of 1 to 63 characters.
Usage guidelines
Use this command to apply a routing policy to a VPN instance for more precise and flexible route
advertisement of the VPN instance. When the device advertises routes of the VPN instance, it filters the
advertised routes and modifies attributes for the advertised routes according to the specified routing
policy.
Note the following guidelines when you use this command:
If you execute this command multiple times, the most recent configuration takes effect.
A routing policy specified in VPN instance view applies to both the IPv4 VPN and IPv6 VPN. A
routing policy specified in IPv4 VPN view applies only to the IPv4 VPN. A routing policy specified
in IPv6 VPN view applies only to the IPv6 VPN.
A routing policy specified in IPv4 VPN view or IPv6 view takes precedence over that specified in
VPN instance view. If you specify a routing policy in both IPv4 VPN view (or IPv6 VPN view) and
VPN instance view, the IPv4 VPN (IPv6 VPN) uses the policy specified in IPv4 VPN view (IPv6 VPN
view).