Home  >  Article  >  Operation and Maintenance  >  How to set up dual network cards in win7 to access both internal and external networks at the same time?

How to set up dual network cards in win7 to access both internal and external networks at the same time?

烟雨青岚
烟雨青岚Original
2020-06-22 11:27:2216139browse

How to set up dual network cards in win7 to access both internal and external networks at the same time?

#How to set up dual network cards in win7 to connect to both internal and external networks at the same time?

Method:

Step 1:

First, set the IP addresses of the two network cards. Assume that the external network The IP segment is: 192.168.10.1/24; the IP address segment of the intranet is: 134.149.55.1/24. (That is, the gateway is .1, the subnet mask is 24 bits)

Find the Internet on the computer desktop Neighbors, right-click - Properties, you can see the connections between the two networks, and you can determine which one is the internal network connection and which one is the external network connection by unplugging and plugging the network cable. (For example: unplug the network cable of the intranet, a red cross mark will appear on the network connection)

How to set up dual network cards in win7 to access both internal and external networks at the same time?

Step 2:

Set up the intranet IP address. The connection between the internal and external networks has been determined in the previous step. Select the intranet icon, right-click - Properties, find Internet Protocol (TCP/IP) in General, double-click, check Use the following IP address, and fill in the IP address. Go down. As shown in the picture, also fill in the DNS.

How to set up dual network cards in win7 to access both internal and external networks at the same time?

Step 3:

After setting the internal IP address, you can set the external IP address. It should be noted that: do not fill in the gateway of the external network, just leave it blank, otherwise it will cause routing conflicts. Other setting methods are the same as the intranet.

How to set up dual network cards in win7 to access both internal and external networks at the same time?

Step 4:

After setting the IP of the internal and external networks, it is time to start adding and deleting routing table information. You can query your own routing information by starting-run-entering cmd-confirm-entering route print-enter. Then enter: route delete 0.0.0.0; delete all default routes of 0.0.0.0.

How to set up dual network cards in win7 to access both internal and external networks at the same time?

Step 5:

Set up the static routing of the intranet, or follow the same steps, through start-run-enter cmd-ok-enter :route add 134.0.0.0 mask 255.0.0.0 134.149.55.1 -p and press Enter. Set the next hop of the access destination address 134.0.0.0/8 to 134.149.55.1. -p means permanently valid to prevent this static route from disappearing after restarting the computer.

If the internal network has more than one access address (one segment), you need to add multiple static routes. The next hop address is still 134.149.55.1.

How to set up dual network cards in win7 to access both internal and external networks at the same time?

Step 6:

Set up the static route for the external network, still follow the same steps, start-run-enter cmd-OK-enter :route add 0.0.0.0 mask 0.0.0.0 192.168.10.1 -p Enter. Set the next hop of the default route to 192.168.10.1.

How to set up dual network cards in win7 to access both internal and external networks at the same time?

Step 7:

After setting up the static routes for both internal and external networks, start-run-enter cmd-OK-enter route print-enter , you can see the basic information in the computer’s routing table. The picture shows that the internal network has multiple access addresses, so multiple static routes have been added. This completes the setup and enables computers with dual network cards to access the internal and external networks at the same time.

How to set up dual network cards in win7 to access both internal and external networks at the same time?

Recommended tutorial: windows tutorial

The above is the detailed content of How to set up dual network cards in win7 to access both internal and external networks at the same time?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn