N
N
nonbox2016-03-26 03:08:16
VPN
nonbox, 2016-03-26 03:08:16

How to write a static route?

Good afternoon.
Tell me how and where to register a static route so that PC2 can see PC1.
f937f907fbf947adbf26c16c85df0f01.jpg
I tried to add this on PC2: route add 192.168.2.2 mask 255.255.255.255 10.10.10.2
does not work ((

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
Maxim Moseychuk, 2016-03-26
@fshp

We also need a reverse route on PC1
route add 10.10.10.2 mask 255.255.255.255 192.168.2.1
Well, in general, default gateways are enough in this configuration.
On PC1 192.168.2.1
On PC2 10.10.10.2 respectively

M
MrJeos, 2016-03-31
@MrJeos

Routes:
on PC1: route add 10.10.10.3 255.255.255.255 192.168.2.1
on PC2: route add 192.168.2.2 255.255.255.255 10.10.10.2
Perhaps it would be better to use routes not to hosts, but to networks, then like this:
on PC1: route add 10.10.10.0 255.255.255.0 192.168.2.1
on PC2: route add 192.168.2.0 255.255.255.0 10.10.10.2

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question