IP change

raja53352

Disciple
Hi

I am using Laptop in office and home.Thereis separe net conection for home and office.So different ip is using in office and in home.I need to change every time i go to home and viseversa
Pls advise me that i need not change any ip in office or home.
 
use netsh command:

i'll show you a demo.

say your current IP address setting is for Home

then run the following command at command prompt

c:\netsh -c interface dump > c:\MyHome.txt

the above command will save your home connection setting to c:\MyHome.txt file

Similarly run the following command when your office settings are configured

c:\netsh -c interface dump > c:\MyOffice.txt

Now whenever you want to load your saved IP setting, say Office one then run following command at command prompt:

c:\netsh -f c:\MyOffice.txt

this command will overwrite your current settings with one in MyOffice.txt file.

Cheers
 
Assuming that one network is already configured on your laptop. Now do as given below...

Goto Network Connections>LAN>Properties.
Select Internet Protocol(TCP/IP) and click on Properties. On General tab click on Advanced. In IP Settings tab-
1. Click Add in the box of IP address. add IP address and Subnet of your second network.
2. Click Add on Default Gateway and add the Gateway for second network.

In DNS tab Add DNS for your second network. Click OK to all boxes and close the LAN window. Now you can freely roam between the two networks. :)
 
Nice tip...

better still create a desktop shortcut to batch file containing command line options by 47Shailesh

47Shailesh said:
use netsh command:

i'll show you a demo.

say your current IP address setting is for Home
then run the following command at command prompt
c:\netsh -c interface dump > c:\MyHome.txt
the above command will save your home connection setting to c:\MyHome.txt file

Similarly run the following command when your office settings are configured
c:\netsh -c interface dump > c:\MyOffice.txt

Now whenever you want to load your saved IP setting, say Office one then run following command at command prompt:
c:\netsh -f c:\MyOffice.txt
this command will overwrite your current settings with one in MyOffice.txt file.
Cheers
 
Back
Top