To configure a routing instance for OSPF, you must include at least the following statements in the configuration:
- [edit]
- routing-instances {
-
-
routing-instance-name {
- interface interface-name;
- instance-type (forwarding | l2vpn | no-forwarding | virtual-router
| vpls | vrf);
- route-distinguisher (as-number:number | ip-address:number);
- vrf-import [ policy-names ];
- vrf-export [ policy-names ];
-
- protocols {
-
- ospf {
- ... ospf-configuration ...
- }
- }
- }
- }
![]() |
Note: You can configure a logical interface under only one routing instance. |
For more information about the OSPF configuration statements, see OSPF Configuration Guidelines.