Networking routers
From wikinotes
Routers use IP addresses, to route traffic between networks and/or subnets.
A routing table stores routes for each available network.
The target network for a packet is identified using the netmask, if the network exists in the routing table the packet is sent on that network.
Tutorials
router in nixos https://francis.begyn.be/blog/nixos-home-router