Use this command to specify an OSPF VPN routing and forwarding (VRF) domain ID.
type type | Specifies an OSPF VRF domain ID type. Valid values are 0005 | 0105 | 0205 | 8005. |
value value | Specifies an OSPF VRF domain ID value. Valid values are six octets in hex format (up to 12 hex characters). Default value is 0. |
secondary | (Optional) Specifies an OSPF secondary domain ID |
VRF configuration, OSPF router configuration.
If the OSPF instances of an OSPF domain are given one or more domain IDs, OSPF can determine whether an OSPF-originated VPN-IPv4 route belongs to the same domain as a given OSPF instance and whether the route should be redistributed to that OSPF instance as an inter-area route or as an OSPF AS-external route.
If two OSPF instances with a domain ID configured are in the same OSPF domain, the PE-CE protocol requires that the primary domain ID of each instance must be one its own domain IDs (either primary or secondary). If two OSPF instances with a domain ID configured are not in the same OSPF domain, the primary domain ID of each instance must not be configured as a domain ID of the other OSPF instance.
The PE-CE protocol (RFC 4577) must be enabled using enable-pe-ce to set the OSPF VRF domain ID.
The “no” form of this command restores the default domain ID type to 0005 and value to 0.
This example shows how to set the OSPF VRF primary domain ID type to 0105 and value to 100 for VRF doc:
System(su)->router doc System(su-doc)->configure System(su-doc-config)->router ospf 10 System(su-doc-config-ospf-10)->enable-pe-ce System(su-doc-config-ospf-10)->domain-id type 0105 100