F
F
Fonzo2019-01-29 15:09:40
Computer networks
Fonzo, 2019-01-29 15:09:40

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
5c5041a3198f7852815059.png
. 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.
5c50405a1a667227268152.png
Help me please.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
res2001, 2019-01-29
@Fonzo

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 question

Ask a Question

731 491 924 answers to any question