Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?


Enable OSPF on Routers in Your Network



To enable OSPF on routers in your MPLS network, follow these steps:

  1. In configuration mode, go to the following hierarchy level:

  2. Configure the area and the interface:

  3. Disable the management interface if you have included the interface all statement in the previous step:

  4. Include the loopback (lo0) interface if you intend to manually configure the RID:

  5. Set the loopback interface (lo0) to passive:

  6. Configure traffic engineering:

  7. Manually configure the RID at the [routing-options] hierarchy level:

  8. Verify and commit the entire configuration:

Sample Output


The sample output shows that OSPF, with traffic engineering, is enabled on the interfaces on egress router R6. In addition, the RID is configured manually to avoid possible problems when the OSPF RID changes; for example, when multiple loopback addresses are configured. The RID uniquely identifies the router within the OSPF network. It is transmitted within the LSAs used to populate the link-state database and calculate the shortest-path tree. In a link-state network, it is important that two routers do not share the same RID value, otherwise IP routing problems may occur.

The sample outputs also shows the passive statement included in the configuration of the loopback (lo0) interface. Including the passive statement is considered best practice and ensures the following:

  • Protocols are not run over the loopback (lo0) interface

  • When the router ID (RID) is configured manually, ensures that the loopback (lo0) interface is advertised to other networks.