Answer the question
In order to leave comments, you need to log in
How to set up static routing?
There are two objects located in different cities. It is necessary to configure the network between them so that the devices see each other in the Windows Network Neighborhood as if they are on the same network.
At object A, the network is 192.168.0.1/24 and object B is 192.168.1.0/24. Both networks are connected to the Internet through routers that have dedicated IP addresses IP_A and IP_B.
I suppose that I need to register a static route for the network at object A
route -p add 192.168.1.0 mask 255.255.255.0 IP_B
and for the network at object B
route -p add 192.168.0.1 mask 255.255.255.0 IP_A
and everything should work or am I missing something?
Answer the question
In order to leave comments, you need to log in
Opening the balls to the outside by a white IP address is not the best idea. You need a VPN. And in terms of routing, think in the right direction. Configure routing based on the VPN server.
Both networks are connected to the Internet through routers that have dedicated IP addresses IP_A and IP_B.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question