Enabling Segment Routing for OSPF Protocol
Segment routing on the OSPF control plane supports the following:
-
OSPFv2 control plane
-
Multi-area
-
IPv4 prefix SIDs for host prefixes on loopback interfaces
-
Adjacency SIDs for adjacencies
-
MPLS penultimate hop popping (PHP) and explicit-null signaling
This section describes how to enable segment routing MPLS and MPLS forwarding in OSPF. Segment routing can be configured at the instance, area, or interface level.
Before you begin
Your network must support the MPLS Cisco IOS XR software feature before you enable segment routing for OSPF on your router.
![]() Note |
You must enter the commands in the following task list on every OSPF router in the traffic-engineered portion of your network. |
SUMMARY STEPS
- configure
- router ospf process-name
- segment-routing mpls
- area area
- segment-routing mpls
- exit
- Use the commit or end command.
DETAILED STEPS
Command or Action | Purpose | |
---|---|---|
Step 1 |
configure Example:
|
Enters mode. |
Step 2 |
router ospf process-name Example:
|
Enables OSPF routing for the specified routing process and places the router in router configuration mode. |
Step 3 |
segment-routing mpls Example:
|
Enables segment routing using the MPLS data plane on the routing process and all areas and interfaces in the routing process. Enables segment routing fowarding on all interfaces in the routing process and installs the SIDs received by OSPF in the forwarding table. |
Step 4 |
area area Example:
|
Enters area configuration mode. |
Step 5 |
segment-routing mpls Example:
|
(Optional) Enables segment routing using the MPLS data plane on the area and all interfaces in the area. Enables segment routing fowarding on all interfaces in the area and installs the SIDs received by OSPF in the forwarding table. |
Step 6 |
exit Example:
|
|
Step 7 |
Use the commit or end command. |
commit —Saves the configuration changes and remains within the configuration session.
|
What to do next
Configure the prefix SID.