Networking routers: Difference between revisions

From wikinotes
No edit summary
No edit summary
Line 16: Line 16:
+---------------+    +-----------------+      +-----------------+
+---------------+    +-----------------+      +-----------------+
</syntaxhighlight>
</syntaxhighlight>
A '''frame''' may pass through several routers to reach it's destination.<br>
the routing table determines the gateway router for the next network to pass through.


= Tutorials =
= Tutorials =

Revision as of 03:31, 8 August 2021

Routers are responsible for bridging/routing packets between networks/subnets.

datalink layer frames are transmitted to a router's network-interface identified by it's MAC Address.
It looks up the target IP address network in it's routing table and if the network is reachable,
the packet's frame is replaced with info specific to the new network and sent.

+---------------+                              +-----------------+
| network-1     |                              |    network-2    |
|192.168.1.0/24 |                              |   10.0.0.0/24   |
|               |    +-----------------+       |                 |
|  datagram     |    |      router     |       |                 |
| 10.0.0.5/24 --------> 192.168.1.1/24 |       |    destination  |
|               |    |   10.0.0.1/24  ------------>  10.0.0.5/24 |
|               |    |                 |       |                 |
+---------------+    +-----------------+       +-----------------+

A frame may pass through several routers to reach it's destination.
the routing table determines the gateway router for the next network to pass through.

Tutorials

router in nixos https://francis.begyn.be/blog/nixos-home-router

Notes

routing schemes