Jump to content

Recommended Posts

Posted

I'll try to explain this issue as best as I can. (my first post on msfn.org :thumbup )

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 :D


Posted

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 plan

set 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.49

SET /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 script

I hope this help!!

Xavier

Posted

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 ^^

  • 2 weeks later...
Posted

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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Recently Browsing   0 members

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