The domain-id command sets the ID for an OSPF domain.
The undo domain-id command restores the default setting.
By default, the domain ID is null.
domain-id { null | domain-id [ type { 0005 | 0105 | 0205 | 8005 } value value | secondary ] * }
undo domain-id [ domain-id [ type { 0005 | 0105 | 0205 | 8005 } value value ] ]
| Parameter | Description | Value |
|---|---|---|
| domain-id | Specifies the ID of an OSPF domain. | The domain ID can be an integer or in dotted decimal notation.
|
| null | Indicates that the OSPF domain ID is null. | - |
| type { 0005 | 0105 | 0205 | 8005 } | Specifies the type of the OSPF domain ID. | By default, it is 0005. |
| value value | Specifies the value of the type of the OSPF domain ID. | The value is a hexadecimal number that ranges from 0 to FFFF, and the default value is 0. |
| secondary | Indicates the ID of a secondary domain. | The maximum number of domain-id secondary in each OSPF process is 1000. |
Usage Scenario
Domain IDs are used to identify domains.
If the local OSPF area and an OSPF area of a remote VPN attempt to exchange Type-3 LSAs, the two areas must be in the same OSPF domain. You can run the domain-id command to configure the same domain ID for the two OSPF areas.
The routes that are imported from a PE device are advertised using External-LSAs. The routes destined for different nodes in the same OSPF domain are advertised based on Type-3 LSAs. This requires that the nodes in the same OSPF domain be configured with the same domain ID.
If the undo domain-id command without any parameter is executed, the primary domain ID will be deleted.
Configuration Impact
Before sending routes to a remote CE device, a PE device sends Type-3 LSAs or Type-5 LSAs to the CE based on domain ID. If local domain IDs are the same as or compatible with remote domain IDs in BGP routes, the PE advertises Type-3 routes. If local domain IDs are different from or incompatible with remote domain IDs in BGP routes, the PE advertises Type-5 routes.
Precautions