D
D
djooooo2022-03-21 10:50:35
network hardware
djooooo, 2022-03-21 10:50:35

Is there friendship between two networks on 1 PC?

Happy day everyone! Clever and clever help with advice.

There is: 1 PC, 2 network cards, 2 networks (1 corporate, without access to the Internet; 2 with access), and not much free time. The plug arose with the friendship of networks. There are no problems with access to the Internet. Windows sees both networks, receives the correct IP. To work in a corporate network, you need to cling to rdp, that's the problem with this, it doesn't want to at all, it doesn't want to go directly to the corporate server either.

On the Internet I found several topics, the advice did not help. Can someone descend (take off the crown, descend from Olympus) and explain how to do it on the fingers ?!

Answer the question

In order to leave comments, you need to log in

3 answer(s)
G
Griboks, 2022-03-21
@Griboks

Most likely, you have standard routes. If the address is not on the current network, then the computer sends a request to the Internet. This is called the default route. So in your case, the corporate address is not on the Internet at all, so the request goes, roughly speaking, through another door.
It is necessary to set up a route to the corporate network through the corporate interface (address, map, network).

A
Akina, 2022-03-21
@Akina

In the corporate network, there are apparently several subnets, except for the one in which the interface address from this network is located. In order to be able to reach hosts on these subnets, there must be appropriate routes through the correct gateway address.
However, judging by the description, both network cards are configured to automatically obtain an address. And the corresponding DHCP servers are not eager to advertise routes correctly, but simply advertise the default gateway.
Accordingly, for normal operation, it is necessary (provided that both cards are addressed via DHCP):
1. Configure the interface metrics, set the interface in the corporate network to a higher metric (a higher metric value corresponds to a lower priority of the interface, and, accordingly, its routes).
2. Find out the addresses of the nodes in the corp. networks you need access to. If access is via IP, then everything is simple, the addresses already exist. If by name, then you should disable the second interface, and then get the correspondence of the names to the addresses (yes, even with a stupid ping) and add these correspondences to the HOSTS file. Well, pray that these desired addresses are not dynamic. Having received the addresses (and even better - having learned their subnets from the administrator), register static routes to these subnets or to these addresses through the gateway announced in the corporate network. After that - on the map in bldg. network set static addresses of DNS servers, and remove all servers from the list.
3. In a good way - write a script that, when the system starts, turns off the interface in the corp. network, and then turn it back on. This operation (together with setting the metrics) ensures that the default route is used on the Internet interface.
However, this will only work if the corp. networks are not made any restructuring (addressing changes). If something changes, most likely you will have to adjust your local settings.

T
tkovacs, 2022-03-22
@tkovacs

How many times have I encountered windows and two networks, my conclusion is that windows cannot work with two networks, different applications access different networks. Windows has no logic in dealing with two network adapters.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question