17th December 2024

Using Two Separate Networks On One Computer

Why would a computer need 2 different IP addresses? It is not necessary for normal use, but it can be a very necessary situation in workplaces or networks where many different devices are used. Let’s see how we can do this.

Example Scenario

The first case, I have 1 wifi (internet) and 1 wired (intranet) on my computer at work. It is always needed for an intranet program. But when you open a browser with an intranet, most sites do not open. We want to use 2 network connections at the same time, but we cannot use the browser internet while the intranet is open, it wants to connect over the wired intranet. we will need to enter the route to use both at the same time. Let’s follow the steps below.

First, let’s connect both networks and open the command line as an administrator.

Let’s see if there are routes already entered by entering the “route print” command. If there are routes in the 0.0.0.0 block, we will delete them and enter the IP blocks of their own two networks.

route print
route print
route print

 

When we run the “route print” command, we saw that for example “route delete 0.0.0.0 mask 0.0.0.0 192.168.16.1”, which is the Intranet route. We will delete this and then enter the blog used.

route delete
route delete

 

We will run the command “ipconfig” in the command line and enter it as a route by looking at the “IP blocks-Mask-Gateways” of its two networks.

ipconfig
ipconfig
ipconfig

 

The route we provided as the first intranet network we added is for example “route add 192.0.0.0 mask 255.0.0.0 192.168.16.1”. You will give whatever your intranet IP-mask-gateway is.

LEARN MORE  What Is MS SQL Database Server?
route add
route add

 

Secondly, the route we added to the wifi network is given as “route add 0.0.0.0 mask 0.0.0.0 192.168.1.1”. You will give whatever is your own wifi IP-mask-gateway.

route add
route add

 

Note: Network Destination: 0.0.0.0 Netmask: 0.0.0.0 Gateway: 192.168.16.1 Interface: 192.168.16.20 comes back on the intranet block when the computer is turned off and on, or the cable is unplugged. You need to delete this route again.

 

Leave a Reply

Your email address will not be published. Required fields are marked *