How to use two different ips at same time

rajatchd

Reputable
Aug 14, 2014
2
0
4,510
Hi,

In my there is one main network and my system static ip is [removed] , and we have another simple modem connected ( for internet use) to switch with ip range starting from [removed].
I am doing this thing to use these, changing ips every time to use both . my system ip for modem is [removed].
My system has one NIC.
My question is how to use both the networks that is office network and internet at same time.

IP information removed by moderator. - G
 
It depends how large your networks are and the complexity and how actually manged to cable this. I will for now assume you do not physically swap the cable to your machine and have cabled these together with a switch or other method.

If all the machines in the main network are on the 10.50.91.x network ie you do not also have 10.50.99.x someplace else via a switch/router. It is pretty easy though kinda non standard.

What you want to do is use 2 IP addresses on the nic at the same time. You want to assign the primary as 192.168.1.99 (or whatever) and set the gateway to 192.168.1.1. You now will add a second IP as 10.51.91.x. You do this via the advanced option in the tcpip v4 settings screen.

The machine is smart enough to know that the 10.51.91.x network is local as well as the 192.168.1.x network is local and all other traffic will go to 192.168.1.1 The key thing is to make sure the 192.168.1.x address is the main one because it will be the source address for unkown networks.

A much better way to do this is to reassign the internet router a IP in you main network. You would assign it say 10.50.91.250. You would then change the gateway in your machine to be 10.50.91.250 so all traffic outside your local network would use that device.

There are many other things you can do if you have a more complex network. For example if you had another 10.x.x.x network connected to 10.50.91.1 you could use the ROUTE command to tell the machine to send 10.x.x.x to 10.50.91.1 but continue to send all other traffic to 10.50.91.250
 

rajatchd

Reputable
Aug 14, 2014
2
0
4,510
Thanks for your reply. My main network is 10.50.8.X and 2nd network 192.168.1.X and Default gateway of main network is X.X.X.1. And second network X.X.X.1. please tell me how to route . Becuase I a little bit confused. Please