domain-id
Syntax
domain-id
domain-id
[
secondary
]
undo domain-id
[
domain-id
]
View
OSPF view
Default level
2: System level
Parameters
domain-id
: OSPF domain ID, which can be in one of the following 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
: Uses the domain ID as secondary. With this keyword not specified, the domain ID
configured is primary.
Description
Use
domain-id
to configure an OSPF domain ID.
Use
undo domain-id
to restore the default.
By default, the OSPF domain ID is 0.
With no parameter specified, the
undo domain-id
command deletes the primary domain ID.
Usually, routes injected from PEs are advertised as External-LSAs. However, routes to different
destinations in the same OSPF domain must be advertised as Type-3 LSAs. Therefore, using the
same domain ID is required for an OSPF domain.
Examples
# Configure the OSPF domain ID.
<Sysname> system-view
[Sysname] ospf 100 vpn-instance vpn1
[Sysname-ospf-100] domain-id 234
export route-policy
Syntax
export route-policy route-policy
undo export route-policy
View
VPN instance view, IPv4 VPN view
Default level
2: System level
Parameters
route-policy
: Name of the export routing policy for the VPN instance, a string of 1 to 63 characters.
460