当前位置:首页>Support>FAQ
全部 17 Industry news 6 FAQ 11

How to set up simultaneous access to both internal and external networks (single or dual network cards)

时间:2025-06-14   访问量:1001

1、 Implementing simultaneous access to both internal and external networks with a single network card


The IP allocation for both internal and external networks in this example is as follows: (Please refer to your network for specific details)


Internal network: IP address 192.168.1.xxx Mask: 255.255.255.0 Gateway: 192.168.1.1

External network: IP address 172.18.100.xxx Mask: 255.255.255.0 Gateway: 172.18.100.1


From the above figure, it can be seen that this type of network combines the internal and external networks through a switch. The method for setting up PC to access both the external and internal networks simultaneously is as follows:


Firstly, fill in all the IP addresses, masks, gateways, and DNS of the external network using the usual manual method. As shown in the picture:


Next, click on "Advanced", then click on "Add" under "IP Address", enter the IP address and mask of the internal network, as shown in the figure:


So we have completed the IP setting part of the work.


Next, we need to add static routing to the computer:


1. Enter cmd in "Start" - "Run" to open the command prompt.


2. In the command prompt, enter: route add 172.18.0.0 mask 255.255.0.0 172.18.10-0.254

Here we will explain to you that the purpose of this command is to forward all requests accessing the intranet 172.18.xxx.xxx to the intranet gateway 172.18.100.254. If there are other network segments in your intranet, just add them in the format above. For example, if there is an address 172.16.1.25 on your company's intranet, you can write it like this: route add 172.16.0.0 mask 255.255.0.0 172.18.100.254


The setup is now complete by using a single network card to achieve shared access to both the internal and external networks.


2、 Method for setting up dual network cards to simultaneously access both internal and external networks:


Let's first take a look at the network architecture diagram of dual network cards simultaneously accessing both internal and external networks


The characteristic of this network structure is that the internal and external networks are not integrated together, but access to the internal and external networks is achieved by installing two network cards on the computer. Under normal circumstances, if you want to access the internal network, disable the network card for the external network, and vice versa. (Of course, both internal and external network cards need to be configured with their own IP addresses)


The key point now is to achieve automatic switching between internal and external networks without disabling the network card.

 

The key point now is to achieve automatic switching between internal and external networks without disabling the network card.


The principle is actually the same as the first method, but there are slight differences when setting the IP address for the network card.


Let's still list the IP addresses of the internal and external networks as follows:


1. The network card for the external network needs to have its IP address, subnet mask, gateway, and DNS set up.


2. The network card on the intranet only needs to set the IP address and subnet mask (because one computer cannot set up two gateways at the same time)


3. At the command prompt, enter: route add 172.18.0.0 mask 255.255.0.0 172.18.100.254 (this will not be explained here, but its meaning is the same as that of setting a static route)


Summary:


In fact, there are more than just two network structures for a computer to access both the internal and external networks simultaneously. But seeing this, I believe you can draw lessons from it


上一篇:How to restore the factory settings of the motherboard BIOS and how to discharge the motherboard

下一篇:How to connect the motherboard jumper? How to connect the jumper wires on the computer case

返回顶部