Answer the question
In order to leave comments, you need to log in
How to set up routing in Windows 7 on a PC with two LANs?
Given: PC with Windows 7 installed with two network cards
A local network is connected through the first network card with IP address 192.168.5.xx, which takes the Internet from the Gateway. Shops in different parts of the city are also connected to this local network.
Through the second network card with the IP address 192.168.1.4, the second local network is connected to communicate with the server that broadcasts television. The local network is used to upload content from a PC to a server for broadcasting.
I installed a wi-fi router between the PC and the Broadcast Server. And I turned on the DHCP server with a pool of addresses 192.168.1.4-192.168.1.4, turned off the wi-fi function. I did this so that the Gateway did not have to be registered on the network card. Without a router and without a registered gateway on the second network card in Windows 7, it is impossible to set up a home group for uploading content, there is an unidentified network.
I can’t let the Broadcast Server into the network with an Internet gateway, because when uploading content to the broadcast server, the communication channel between the stores and the 1C server will be clogged and no one will be able to work in 1C.
Please tell me how to set up routing on a PC so that the Internet works when two network cards are turned on.
UPD. removed the router from the link, connected it directly, registered ip 192.168.1.4, subnet mask 255.255.255.0, gateway 192.168.1.2 (server IP)
registered route -p add 192.168.1.0 mask 255.255.255.0 192.168.5.xx in
cmd reboot, not all sites open, so you need to write something in the rules of Kerio?
Answer the question
In order to leave comments, you need to log in
On the first map - address 192.168.5.xx, mask 255.255.255.0, gateway 192.168.5.xx, dns 192.168.5.xx or 8.8.8.8, depending on the availability of your own dns server.
On the second - the address is 192.168.1.4, the mask is 255.255.255.0, the gateway is not needed, dns is not needed.
The general principle of routing is as follows:
1. First, explicitly specified rules are checked. If the recipient's address matches one of the rules, then the packet is sent to the gateway specified in the rule.
2. It is checked whether the address is in one of the networks directly accessible from the computer (in your case, 192.168.1.0/24 and 192.168.5.0/24), if yes, the packet is sent to the appropriate network.
3. If nothing worked, then it is directed to the default gateway.
.color-select input[type=radio]:checked ~ .check {
margin: -2px;
border: 2px solid #0DFF92;
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question