<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/static-routes-in-netlab-lab-topologies-ipspace-net-blog-yhr4n9zov" -->

---
title: Static Routes in netlab Lab Topologies « ipSpace.net blog
description: netlab&#x27;s generic routing configuration module supports static routes in lab topologies, introduced in release 1.9.3 with gateway support in 1.9.6 and discard...
canonical: https://daily.dev/posts/static-routes-in-netlab-lab-topologies-ipspace-net-blog-yhr4n9zov
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Static Routes in netlab Lab Topologies « ipSpace.net blog | daily.dev
og:description: netlab&#x27;s generic routing configuration module supports static routes in lab topologies, introduced in release 1.9.3 with gateway support in 1.9.6 and discard...
og:url: https://daily.dev/posts/static-routes-in-netlab-lab-topologies-ipspace-net-blog-yhr4n9zov
og:image: https://api.daily.dev/og/posts/yHr4n9zOV.png
og:image:alt: Static Routes in netlab Lab Topologies « 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.

# Static Routes in netlab Lab Topologies « ipSpace.net blog

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

## Summary

netlab's generic routing configuration module supports static routes in lab topologies, introduced in release 1.9.3 with gateway support in 1.9.6 and discard next hop in release 25.06. Static routes are defined per node or group using the routing.static attribute, with destination specified as IPv4/IPv6 prefix, pool, named prefix, or node loopback. The next hop can reference a node by name, letting netlab automatically resolve IP addresses and outgoing interfaces. Examples cover default routes, group-wide static routing for multiple hosts, anycast gateway scenarios, and a customer/ISP static routing setup. Inter-VRF static routing is also supported, with platform-specific caveats noted in integration test results.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://blog.ipspace.net/2025/06/netlab-static-routes>

## Questions this post answers

### How do I define a static default route pointing to another node in a netlab topology without specifying IP addresses?

Set the routing module on the node and use the routing.static attribute with ipv4: 0.0.0.0/0 and nexthop.node set to the target node name. netlab automatically resolves the correct IP address and outgoing interface, so no manual IP assignment is needed. This works for individual nodes and for groups of nodes, even when each member is in a different subnet.

_Network engineers building netlab labs track module updates and topology patterns on daily.dev._

### When were static routes and gateway/discard next hop support added to netlab?

Static routes were introduced in netlab release 1.9.3. Gateway next hop support was added in release 1.9.6, and the discard next hop (pointing to the null interface) was added in release 25.06. Static routes are part of the generic routing configuration module and are supported on approximately a dozen platforms, with some limitations for inter-VRF scenarios.

_Developers following netlab releases and networking tool updates find relevant announcements on daily.dev._

---

Tags: [#networking](https://daily.dev/tags/networking)

[View this post on daily.dev](https://daily.dev/posts/static-routes-in-netlab-lab-topologies-ipspace-net-blog-yhr4n9zov)

```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":"Static Routes in netlab Lab Topologies « ipSpace.net blog","url":"https://daily.dev/posts/static-routes-in-netlab-lab-topologies-ipspace-net-blog-yhr4n9zov","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/static-routes-in-netlab-lab-topologies-ipspace-net-blog-yhr4n9zov"},"datePublished":"2026-08-11T08:52:42.022Z","dateModified":"2026-08-11T09:03:34.727Z","description":"netlab's generic routing configuration module supports static routes in lab topologies, introduced in release 1.9.3 with gateway support in 1.9.6 and discard...","image":"https://media.daily.dev/image/upload/s--1KxV4ohY--/f_auto/v1722860400/public/Placeholder%2007","thumbnailUrl":"https://media.daily.dev/image/upload/s--1KxV4ohY--/f_auto/v1722860400/public/Placeholder%2007","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/static-routes-in-netlab-lab-topologies-ipspace-net-blog-yhr4n9zov","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"networking","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":"Static Routes in netlab Lab Topologies « ipSpace.net blog"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/static-routes-in-netlab-lab-topologies-ipspace-net-blog-yhr4n9zov#faq","mainEntity":[{"@type":"Question","name":"How do I define a static default route pointing to another node in a netlab topology without specifying IP addresses?","acceptedAnswer":{"@type":"Answer","text":"Set the routing module on the node and use the routing.static attribute with ipv4: 0.0.0.0/0 and nexthop.node set to the target node name. netlab automatically resolves the correct IP address and outgoing interface, so no manual IP assignment is needed. This works for individual nodes and for groups of nodes, even when each member is in a different subnet. Network engineers building netlab labs track module updates and topology patterns on daily.dev."}},{"@type":"Question","name":"When were static routes and gateway/discard next hop support added to netlab?","acceptedAnswer":{"@type":"Answer","text":"Static routes were introduced in netlab release 1.9.3. Gateway next hop support was added in release 1.9.6, and the discard next hop (pointing to the null interface) was added in release 25.06. Static routes are part of the generic routing configuration module and are supported on approximately a dozen platforms, with some limitations for inter-VRF scenarios. Developers following netlab releases and networking tool updates find relevant announcements on daily.dev."}}]}
```

