Padwah Posted February 21, 2002 Share Posted February 21, 2002 OK, here's my problem. I connect to two different LANs one for work and one at home. At home there are also a couple of other people who use my PC for various bits and bobs, what I want to do is have four different user accounts one admin account which will have my works IP, one admin account with the home lan IP, One limited account with the home lan IP and one limited account with no networking. Any know if something like this is possible? Any tips appreciated, BTW I only have one network card installed. Link to comment Share on other sites More sharing options...
UnaBonger Posted February 21, 2002 Share Posted February 21, 2002 Well, I dont think that you can specify different IP's for different users. An IP is machine specific not user specific... But if you're refering to having a laptop that floats among different networks, all you have to do it log in locally (not on a domain), open a command prompt and type " IPCONFIG /RELEASE " and then " IPCONFIG /RENEW ". This should help your IP problem... Link to comment Share on other sites More sharing options...
Padwah Posted February 21, 2002 Author Share Posted February 21, 2002 Well I have a static IP on each network as there's no DHCP, or whatever its called, so I don't think that would work would it? Link to comment Share on other sites More sharing options...
wd40 Posted February 21, 2002 Share Posted February 21, 2002 Like UnaBonger said "An IP is machine specific not user specific" You can add another static IP to your TCP/IP properties to access the other network. As long as the subnets and ip's are totally different everything should be fine. XP should know which one is "active" since there is something to talk to at the end of the "pipe". Link to comment Share on other sites More sharing options...
Tribe98 Posted February 22, 2002 Share Posted February 22, 2002 There is a way to make this happen. What you need to do is create two batch files. One which enables DHCP and is in all of the others users startup profile directories. And one to enable a static address which goes into the Administrators startup directory. Here is how they should look DHCP first netsh interface ip set address "local area connection" dhcp Static netsh interface ip set address "local area connection" static 10.1.1.2 255.255.255.0 10.1.1.1 1 Copy the text starting with netsh into a notepad document and save it as the corresponding name "DHCP.bat" or "Static.bat" Make sure to include the quotes. This will save the file with the .bat extension Now you will also probably need to modify the file some more. Eg..If your network connection is "local area connection 2" or something else then add the appropriate to yours. For the static file the first ip address is your IP address, the second is the subnet mask, and the third is the default gateway. Hope this helps Oh one more thing the last number one in the line is for the gateway metric. In other words how many hops to the gateway. For most people it is one. Link to comment Share on other sites More sharing options...
Padwah Posted February 22, 2002 Author Share Posted February 22, 2002 Excellent, thats just what I was lloking for Tribe98 :) one more question in the network and internet connections would I just leave that as automatic and it will get over-ridden when the batch file runs? Link to comment Share on other sites More sharing options...
Tribe98 Posted February 22, 2002 Share Posted February 22, 2002 If you are talking about your current network configuration then yes. This is what gets overwritten. Link to comment Share on other sites More sharing options...
UnaBonger Posted February 22, 2002 Share Posted February 22, 2002 Great idea with the batch file Tribes. I never would have thought of that.... :D Link to comment Share on other sites More sharing options...
Recommended Posts