Answer the question
In order to leave comments, you need to log in
How to make packets from one local network be transmitted to another through two routers on Ubuntu?
Given a network. 2 computers in two different local networks and between them 2 routers. It is necessary to configure it so that the traffic goes from one computer to another
. This is how I registered it in netplan, but the packet does not go beyond the routers. Tried through static routing. As soon as I did not register.
Help me please.
Answer the question
In order to leave comments, you need to log in
If routers are default gateways for computers in their networks, then it is enough to register routes to the neighbor's network on the routers.
If the routers are not default gateways, then the routes must be registered on all computers as the gateway to specify your router. And of course, the routers themselves must know the networks of their neighbor.
Add a route with
route add --help
Print the routing table:
route print
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question