Jump to content

[How-to] Have different set of IP addr for differnt Hardware Profile


Recommended Posts

Posted

Hi All,

I have 2 internet connections from different providers. Both connections requires different sets of windows services to run, hence I have created 2 hardware profiles and select one of them at startup, but the machine IP remains same.

Since both connections have different IP's, DNS and Gateway settings, it is kinda tedious to everytime change your network settings when you want to use either of the two connections. Therefore I would like to have done this automatically i.e my machine should have different set of IP and server settings depending on hardware profile chosen at startup.

So can someone please share some insights on how to configure my pc to have such settings.

Please note: I am looking for software only solutions. I am not sure but I think it can be done with hardware based solution.

Thanks and Regards.

:unsure::unsure:


Posted (edited)

I have used netsh command through .bat files to achieve fast change of IP address, gateway, etc..

Once u create .bat you can maybe start it automatically through startup folder for each hardware profile.

staticIP change example:

netsh interface ip set address "name of the connection" static "IP address" "subnetmask" "gateway" "interface metric"

Edited by N1K
Posted

Here's a suggestion. Since you're already using hardware profiles why not add a second NIC to the machine? Configure NIC1 for ISP1 and NIC2 for ISP2. Now in Hardware Profile 1 enable NIC1 but disable NIC2. In Hardware Profile 2 enable NIC2 but disable NIC1. That should take care of the problem. :)

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...