R0106-HP MSR Router Series MPLS Command Reference(V7)
222
Parameters
domain-id: Specifies an OSPF domain ID, in one of these formats:
• Integer, in the range of 0 to 4294967295. For example, 1.
• Dotted decimal notation. For example, 0.0.0.1.
• Dotted decimal notation:16-bit user-defined number in the range of 0 to 65535. For example,
0.0.0.1:512.
secondary: Specifies a secondary domain ID. If you do not specify this keyword, the command specifies
a primary domain ID.
Usage guidelines
When you redistribute OSPF routes into BGP, BGP does the following:
• Adds the primary domain ID to the redistributed BGP VPNv4 routes as a BGP extended community
attribute.
• Advertises the routes to the peer PE.
When the peer PE receives the routes, it compares the OSPF domain ID in the routes with the locally
configured primary and secondary domain IDs. If the primary or secondary domain ID is the same as the
received domain ID, and the received routes are intra-area or inter-area routes, OSPF advertises these
routes in Network Summary LSAs (Type 3). Otherwise, OSPF advertises these routes in AS External LSAs
(Type 5) or NSSA External LSAs (Type 7).
With no parameter specified, the undo domain-id command deletes all domain IDs.
Examples
# Configure the OSPF domain ID as 234.
<Sysname> system-view
[Sysname] ospf 100
[Sysname-ospf-100] domain-id 234
export route-policy
Use export route-policy to apply an export routing policy for a VPN instance.
Use undo export route-policy to remove the application.
Syntax
export route-policy route-policy
undo export route-policy
Default
No export routing policy is applied for a VPN instance.
Views
VPN instance view, IPv4 VPN view, IPv6 VPN view
Predefined user roles
network-admin
Parameters
route-policy: Specifies a routing policy by its name, a case-sensitive string of 1 to 63 characters.