R3102-R3103-HP 6600/HSR6600 Routers MPLS Command Reference Guide
305
Usage guidelines
After you configure a domain ID for an OSPF process by using the domain-id command, when you
redistribute OSPF routes into BGP, BGP adds the configured OSPF domain ID to the redistributed BGP
VPN routes as a BGP extended community attribute and advertises the routes to the BGP peer. When you
redistribute the BGP VPN routes into OSPF on the BGP peer, OSPF uses the domain ID to determine
whether the routes belong to the same OSPF routing domain. If yes and the routes are intra-area routes,
OSPF advertises these routes in Summary LSAs (Type 3). If yes but the routes are not intra-area routes,
OSPF advertises these routes in AS External LSAs (Type 5) or NSSA External LSAs (Type 7). If not, OSPF
advertises these 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.
<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: 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.










