S
S
Shunkai2020-08-19 13:31:29
Computer networks
Shunkai, 2020-08-19 13:31:29

How to properly configure routing in Win10?

Good afternoon!
I'm a little confused in routing, please help.
Task: There is a machine with 2 interfaces. on 1 - Internet, subnet 192.168.100.0/24, on the other - internal local network, subnet: 172.17.0.0/24, there is no main gateway, dhcp, nothing, just LAN and manual addresses. my PC: 172.17.0.155 (interface)
Purpose: to be able to simultaneously access the Internet and this subnet. Simply put, all requests to 172.17.0.0 go to the second interface.
I use routing:

route -p add 172.17.0.0 mask 255.255.255.0 172.17.0.155 metric 1

however, it still tries to go through the internet interface and finds nothing. Please push in the right direction

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Dmitriev, 2020-08-19
@shunkai

To enter the "home subnet" of the network adapter, no additional routes are needed - the route is created during the settings of the network adapters.
Have a look at netstat -r or route print - the required route should be there.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question