<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/using-ip-route-to-configure-two-nodes-9jbs0gzbk" -->

---
title: Using ip route to configure two nodes | daily.dev
description: A walkthrough of an iximiuz labs networking puzzle where two nodes on separate networks are connected via a router intermediary. The solution involves adding a...
canonical: https://daily.dev/posts/using-ip-route-to-configure-two-nodes-9jbs0gzbk
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Using ip route to configure two nodes | daily.dev
og:description: A walkthrough of an iximiuz labs networking puzzle where two nodes on separate networks are connected via a router intermediary. The solution involves adding a...
og:url: https://daily.dev/posts/using-ip-route-to-configure-two-nodes-9jbs0gzbk
og:image: https://api.daily.dev/og/posts/9JBS0gzBK.png
og:image:alt: Using ip route to configure two nodes
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.

# Using ip route to configure two nodes

**[Medium](https://daily.dev/sources/medium_js)** · 1 min read · 0 upvotes · 0 comments

## Summary

A walkthrough of an iximiuz labs networking puzzle where two nodes on separate networks are connected via a router intermediary. The solution involves adding a default route on each leaf node using `ip route add default via <gateway>`, then enabling IP forwarding on the router node with `sysctl -w net.ipv4.ip_forward=1`.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://medium.com/@walkable-llc/using-ip-route-to-configure-two-nodes-f71a6ca5aabc>

## Questions this post answers

### How do I set a default route on Linux using the ip route command?

Use ip route add default via <gateway-ip>, replacing the gateway IP with the address of the router or next hop on the local subnet. This adds a default route to the kernel routing table so packets destined for external networks get forwarded through that gateway. Run ip route show first to confirm no default route already exists.

_Developers troubleshooting Linux routing setups can find practical networking walkthroughs like this on daily.dev._

### How do I enable a Linux machine to forward packets between two networks?

Enable IP forwarding by setting the net.ipv4.ip_forward kernel parameter to 1 with sysctl -w net.ipv4.ip_forward=1. This turns the machine into a router capable of passing packets between interfaces on different subnets, which is required once each connected node has a default route pointing to it.

_Sysadmins configuring routers between subnets can dig into more Linux networking practice on daily.dev._

## Similar posts on daily.dev

- [A Survey of the 7 Configuration Changes That Turn a Multi-homed Linux Host into a Switch/Router – blog](https://daily.dev/posts/a-survey-of-the-7-configuration-changes-that-turn-a-multi-homed-linux-host-into-a-switch-router-bl-lcmrlvhci) · Hacker News · 0 upvotes · 0 comments

---

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

[View this post on daily.dev](https://daily.dev/posts/using-ip-route-to-configure-two-nodes-9jbs0gzbk)

```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":"Using ip route to configure two nodes","url":"https://daily.dev/posts/using-ip-route-to-configure-two-nodes-9jbs0gzbk","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/using-ip-route-to-configure-two-nodes-9jbs0gzbk"},"datePublished":"2026-07-23T07:31:51.993Z","dateModified":"2026-09-14T06:01:40.738Z","description":"A walkthrough of an iximiuz labs networking puzzle where two nodes on separate networks are connected via a router intermediary. The solution involves adding a...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/479f138d2c14bc0ac8bb88a0692d8e2e?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/479f138d2c14bc0ac8bb88a0692d8e2e?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Medium","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":"Medium","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/medium","url":"https://daily.dev/sources/medium_js"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/using-ip-route-to-configure-two-nodes-9jbs0gzbk","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"linux","timeRequired":"PT1M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Medium","item":"https://daily.dev/sources/medium_js"},{"@type":"ListItem","position":3,"name":"Using ip route to configure two nodes"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/using-ip-route-to-configure-two-nodes-9jbs0gzbk#faq","mainEntity":[{"@type":"Question","name":"How do I set a default route on Linux using the ip route command?","acceptedAnswer":{"@type":"Answer","text":"Use ip route add default via <gateway-ip>, replacing the gateway IP with the address of the router or next hop on the local subnet. This adds a default route to the kernel routing table so packets destined for external networks get forwarded through that gateway. Run ip route show first to confirm no default route already exists. Developers troubleshooting Linux routing setups can find practical networking walkthroughs like this on daily.dev."}},{"@type":"Question","name":"How do I enable a Linux machine to forward packets between two networks?","acceptedAnswer":{"@type":"Answer","text":"Enable IP forwarding by setting the net.ipv4.ip_forward kernel parameter to 1 with sysctl -w net.ipv4.ip_forward=1. This turns the machine into a router capable of passing packets between interfaces on different subnets, which is required once each connected node has a default route pointing to it. Sysadmins configuring routers between subnets can dig into more Linux networking practice on daily.dev."}}]}
```

