Routes on two servers

0 like 0 dislike
4 views
Good day!

At the moment trying to "cloud" servers. Decided to move the project from one provider to another. Both are in the same DC and IP are in the same subnet 255.255.0.0. I need the server server2 have access to server1.
For example, server1 has IP address xxx.yyy.11.22, server2 xxx.yyy.33.44.

On server1 there are such routes:
xxx.yyy.228.0/24 dev eth1 proto kernel scope link src xxx.yyy.11.22
default via xxx.yyy.228.254 dev eth1


On server2 are:
xxx.yyy.0.0/16 dev eth0 proto kernel scope link src xxx.yyy.33.44
default via xxx.yyy.239.254 dev eth0


As I understand it, the case in the first routes routes. Tried on server 1 to put the rout to the server 2 via default, and on server 2 to start the route to the server 1 via default... did Not work... what to do?

Sincerely,
Mikola
by | 4 views

2 Answers

0 like 0 dislike
> Both are in the same DC and IP are in the same 255.255.0.0 subnet.
\r
There's something wrong, usually such large subnets do not. Check with techsupport DC accurate subnet masks, if the servers in one VLAN if one switch or have a connection through the router.
by
0 like 0 dislike
> server server2 have access to server1
\r
who, you mean?
if you need L2 Broadcast — vlan
\r
if the L3 IP connectivity is great in principle, must provide default gateway
by

Related questions

110,608 questions
257,186 answers
0 comments
28,667 users