<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/sr-mpls-with-ospfv2-ipspace-net-blog-7kein0fka" -->

---
title: SR-MPLS with OSPFv2 « ipSpace.net blog | daily.dev
description: A hands-on walkthrough of configuring SR-MPLS using OSPFv2 as the routing protocol, using the netlab network simulation tool. The post shows how to switch from...
canonical: https://daily.dev/posts/sr-mpls-with-ospfv2-ipspace-net-blog-7kein0fka
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: SR-MPLS with OSPFv2 « ipSpace.net blog | daily.dev
og:description: A hands-on walkthrough of configuring SR-MPLS using OSPFv2 as the routing protocol, using the netlab network simulation tool. The post shows how to switch from...
og:url: https://daily.dev/posts/sr-mpls-with-ospfv2-ipspace-net-blog-7kein0fka
og:image: https://api.daily.dev/og/posts/7KEin0FKa.png
og:image:alt: SR-MPLS with OSPFv2 « ipSpace.net blog
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# SR-MPLS with OSPFv2 « ipSpace.net blog

**[ipSpace.net Blog](https://daily.dev/sources/ipspace)** · 5 min read · 0 upvotes · 0 comments

## Summary

A hands-on walkthrough of configuring SR-MPLS using OSPFv2 as the routing protocol, using the netlab network simulation tool. The post shows how to switch from IS-IS to OSPFv2 in a lab topology with just two configuration lines, then explores how SR-MPLS information is advertised via OSPFv2 opaque LSAs (type 10). It highlights that OSPFv2 uses separate opaque LSAs for each piece of SR information (global range, prefix SIDs, adjacency SIDs), contrasting with IS-IS's more compact TLV encoding. Despite the encoding differences, the resulting MPLS forwarding table is identical to the IS-IS SR-MPLS setup. Readers can reproduce the lab using a GitHub Codespace with Arista cEOS.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://blog.ipspace.net/2026/06/sr-mpls-ospf>

## Questions this post answers

### How does OSPFv2 advertise SR-MPLS segment routing information compared to IS-IS?

OSPFv2 uses separate area-local (type 10) opaque LSAs for each piece of SR information: one LSA for the SR global label range, another mapping the loopback prefix to a node SID, and a separate LSA per adjacency SID. IS-IS uses more compact TLVs. Despite this encoding difference, the resulting MPLS forwarding table is identical between the two protocols.

_Engineers comparing SR-MPLS protocol options find the trade-offs covered on daily.dev._

### How do I configure netlab to use OSPFv2 instead of IS-IS for SR-MPLS?

Set the module list to include ospf and sr, then explicitly set sr.protocol to ospfv2. By default, the netlab SR-MPLS module expects IS-IS, so the protocol override is required. The full change is just two lines in the topology file: 'module: [ ospf, sr ]' and 'sr.protocol: ospfv2'.

_Networking engineers building SR-MPLS labs track netlab updates and configs on daily.dev._

## Similar posts on daily.dev

- [MPLS/VPN with SR-MPLS Core « ipSpace.net blog](https://daily.dev/posts/mpls-vpn-with-sr-mpls-core-ipspace-net-blog-nw3uwiphe) · ipSpace.net Blog · 0 upvotes · 0 comments
- [Multivendor SR-MPLS « ipSpace.net blog](https://daily.dev/posts/multivendor-sr-mpls-ipspace-net-blog-qekokwduk) · ipSpace.net Blog · 0 upvotes · 0 comments
- [EVPN with SR-MPLS Core « ipSpace.net blog](https://daily.dev/posts/evpn-with-sr-mpls-core-ipspace-net-blog-taobtibzc) · ipSpace.net Blog · 0 upvotes · 0 comments
- [BGP-Free Core with SR-MPLS « ipSpace.net blog](https://daily.dev/posts/bgp-free-core-with-sr-mpls-ipspace-net-blog-h7kronzy3) · ipSpace.net Blog · 0 upvotes · 0 comments

---

[View this post on daily.dev](https://daily.dev/posts/sr-mpls-with-ospfv2-ipspace-net-blog-7kein0fka)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"SR-MPLS with OSPFv2 « ipSpace.net blog","url":"https://daily.dev/posts/sr-mpls-with-ospfv2-ipspace-net-blog-7kein0fka","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/sr-mpls-with-ospfv2-ipspace-net-blog-7kein0fka"},"datePublished":"2026-08-11T08:54:00.076Z","dateModified":"2026-08-11T09:19:03.375Z","description":"A hands-on walkthrough of configuring SR-MPLS using OSPFv2 as the routing protocol, using the netlab network simulation tool. The post shows how to switch from...","image":"https://media.daily.dev/image/upload/s--P4t4XyoV--/f_auto/v1722860399/public/Placeholder%2001","thumbnailUrl":"https://media.daily.dev/image/upload/s--P4t4XyoV--/f_auto/v1722860399/public/Placeholder%2001","isAccessibleForFree":true,"articleSection":"ipSpace.net Blog","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"ipSpace.net Blog","logo":"https://media.daily.dev/image/upload/s--xS7E82MT--/f_auto,q_auto/v1786438303/logos/ipspace?_a=BAMAMicg0","url":"https://daily.dev/sources/ipspace"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/sr-mpls-with-ospfv2-ipspace-net-blog-7kein0fka","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"","timeRequired":"PT5M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"ipSpace.net Blog","item":"https://daily.dev/sources/ipspace"},{"@type":"ListItem","position":3,"name":"SR-MPLS with OSPFv2 « ipSpace.net blog"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/sr-mpls-with-ospfv2-ipspace-net-blog-7kein0fka#faq","mainEntity":[{"@type":"Question","name":"How does OSPFv2 advertise SR-MPLS segment routing information compared to IS-IS?","acceptedAnswer":{"@type":"Answer","text":"OSPFv2 uses separate area-local (type 10) opaque LSAs for each piece of SR information: one LSA for the SR global label range, another mapping the loopback prefix to a node SID, and a separate LSA per adjacency SID. IS-IS uses more compact TLVs. Despite this encoding difference, the resulting MPLS forwarding table is identical between the two protocols. Engineers comparing SR-MPLS protocol options find the trade-offs covered on daily.dev."}},{"@type":"Question","name":"How do I configure netlab to use OSPFv2 instead of IS-IS for SR-MPLS?","acceptedAnswer":{"@type":"Answer","text":"Set the module list to include ospf and sr, then explicitly set sr.protocol to ospfv2. By default, the netlab SR-MPLS module expects IS-IS, so the protocol override is required. The full change is just two lines in the topology file: 'module: [ ospf, sr ]' and 'sr.protocol: ospfv2'. Networking engineers building SR-MPLS labs track netlab updates and configs on daily.dev."}}]}
```

