plunk10 Posted October 25, 2004 Posted October 25, 2004 I'll try to explain this issue as best as I can. (my first post on msfn.org )Workstation is running XP Pro, needs to connect to network 1, and network 2 (see below)Network 1 (work) - uses dhcp to obtain ip addresses. Needs static ip address in order to connect to the internet. (we only allow certain users to have internet access)Network 2 (home) - direct cable modem connection. also uses dhcp to obtain an ip address. unrestricted internet access.I want to give this laptop access to both networks. In windows XP there is an "alternate configuration" tab in the TCP/IP settings. The "alternate configuration" only appears when setting the primary connection to obtain an ip address automatically.When setting up the first connection to obtain automatically, then setting "alternate configuration" to the static ip address, I boot the computer on network 1, and the dhcp automatically assigns an internet restricted address different than the static ip.How do I force XP to use the static ip address on network 1, and not on network 2??Thanks for any input
Le Mér0v1gien Posted October 28, 2004 Posted October 28, 2004 Hello,Why not boot your workstation unplugged while you're in Network 1. Your workstation won't find any DHCP server and will use alternate configuration.Afer that, connect the workstation to the network, it may keep the alternate configuration.If this is not convenient, you could use a script allowing you to change your IP configuration, see below:REM Script Beginning@echo off set carte="LAN" REM Change the following infos with your static ip addressing planset adrfixe=192.168.0.143 set masque=255.255.255.0 set passerelle=192.168.0.1 set adrDNS1=192.168.0.2 set adrDNS2=192.168.0.49 set adrWINS=192.168.0.49SET /P lan=Use DHCP (Y/N)? : if %lan%==y goto IPDHCP if %lan%==Y goto IPDHCP goto IPDHCP:IPfixe netsh interface ip set address %carte% static %adrfixe% %masque% %passerelle% 1 netsh interface ip set dns %carte% static %adrDNS1% netsh interface ip add dns %carte% %adrDNS2% netsh interface ip set wins %carte% static %adrWINS% goto fin :IPDHCP netsh interface ip set address %carte% dhcp netsh interface ip set dns %carte% dhcp netsh interface ip set wins %carte% dhcp :fin REM End of scriptI hope this help!!Xavier
laderio Posted October 29, 2004 Posted October 29, 2004 Why do you not use your WORK-IP at home? Should'nt be much effort to change your home-networks DHCP to use IPs in the range you use at work So you could get i-access with your IP at home AND at work ^^
tguy Posted November 12, 2004 Posted November 12, 2004 I would suggest buying a small software program like Netswitcher or Multinetwork manager to fix your problem.These two software packages are designed to specifically address the problem you are facing. Both are under $30.00 US.tguy
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now