The domain-id command sets an OSPFv3 domain ID.
The undo domain-id command restores the default setting.
By default, the domain ID is null.
domain-id { null | domain-id [ type type value value | secondary ] * }
undo domain-id { domain-id [ type type value value ] }
Parameter | Description | Value |
---|---|---|
null | Specifies that the OSPFv3 domain ID is null. | - |
domain-id | Specifies an OSPFv3 domain ID. | The value can be an integer or expressed in dotted decimal notation. If the domain ID is an integer, its value ranges from 0 to 4294967295; it is converted to the dotted decimal notation and carried 1 with 256 when being displayed. If the domain ID is in dotted decimal notation format, it is displayed as originally entered. |
type type | Specifies the type of the OSPFv3 domain ID. | The value is an integer that can be 0005, 0105, 0205, or 8005. The default value is 0005. |
value value | Specifies the value of the OSPFv3 domain ID type. | The value is a hexadecimal number that ranges from 0 to FFFF. The default value is 0. |
secondary | Specifies the ID of a secondary domain. | - |
Generally, the routes that are imported from a PE are advertised as External-LSAs. However, such routes that belong to different nodes of the same OSPFv3 domain should be advertised as Type 3 LSAs (intra-domain routes). This requires that different nodes in the same OSPFv3 domain have the same domain ID.
Values 0 and null indicate different meanings.
The maximum number of secondary domain IDs in each OSPFv3 process is 10. The maximum number of secondary domain IDs may vary with products.
The parameter secondary can be configured only when the primary domain ID is configured. When the undo domain-id command is run, if no parameter is specified, the primary domain ID is deleted.
# Set the VPN domain ID in OSPFv3 VPN extension.
<HUAWEI> system-view
[HUAWEI] ip vpn-instance huawei
[HUAWEI-vpn-instance-huawei] ipv6-family
[HUAWEI-vpn-instance-huawei-af-ipv6] route-distinguisher 100:1
[HUAWEI-vpn-instance-huawei-af-ipv6] quit
[HUAWEI] ospfv3 1 vpn-instance huawei
[HUAWEI-ospfv3-1] domain-id 234