W
W
wazebup2016-09-27 18:12:52
linux
wazebup, 2016-09-27 18:12:52

Two computers behind routers on different subnets. How to solve the problem?

| computer on subnet XXXX/23 | ------ | router | ---------------------- | router | ------ | computer on subnet XXXX/17 |
We were given such a task. Help solve it. This may seem like a simple and stupid task to someone, but I'm a beginner. In general, there are two computers on the /23 and /17 subnets. They are behind the routers. How and where and what to do so that they see each other and work with each other?

Answer the question

In order to leave comments, you need to log in

5 answer(s)
A
Alexander, 2016-09-28
@Adorne

God, what's so complicated. Obviously, if no additional conditions are given, then everything is as simple as shelling pears.
On the left router, it is necessary to register in the routing table that the xxxx/17 network is located behind its external port, on the right router it is necessary to register that the xxxx/23 network is located behind its external port. On each PC, specify the address of the router to which it is directly connected as the default gateway.
End.

M
Marchd, 2016-09-27
@Marchd

write routes on routers for non-their networks to the router where this network exists, for example, if the first router has ip 10.20.10.10 and it serves the XXXX / 23 network, then on the second router you need to register something like
route add -net XXXX / 23 gw 10.20 .10.10

S
solalex, 2016-09-27
@solalex

1. between routers Internet or direct connection?
1a. if the Internet, what addresses do routers receive?
2. describe the networks in numbers, because xxxx does not mean anything, as if two networks 10.10.10.10
p.s. In general, routers should have routes to each other, then the computers will "see" each other, but on condition that the networks behind the routers are different.
zzy The task was written by a narrow-minded person, since he could not designate two different networks in different ways.

A
athacker, 2016-09-28
@athacker

Please provide a complete statement of the problem.

V
Victor Taran, 2016-09-28
@shambler81

1 network card can have any number of IPs.
Issue two IPs at once with their own subnets and that's it.
In Windows it looks like this. Well, then by analogy.
In Linux, on Linux routers it's even easier.
DHCP can also issue several addresses, the question is already in the admin panel of routers.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question