computer have two ethernet cards both connected to two different internet connections

I have two ethernet cards at my office PC which have WinXP SP2, one connected to the Company network and the other is connected to an ADSL router netowork, both the networks have an internet connection, but the company network have an Web Sense so that web content is filtered.
I need a way to determine the path to connect the internet using ADSL network if needed without disabling the second ethernet adaptor that is connected to the Company Network noting that the internet in the company netword is through an ISA server.
Who is Participating?
Rob WilliamsConnect With a Mentor Commented:
A couple of options.
as mentioned earlier:
assign the 192.168.1.x adapter the gateway
remove the gateway from the 10.1.5.x adapter
The 10.1.5.x network is available by default without any added routes.
If you need access to the 10.1.1.x network add the route
route -p add mask 10.1.5.x
  (assuming is the subnet mask for the ISA network and that x = your IP)

Yes you can create a batch file. Simply create 2 batch files one with gateway one and the other with gateway 2. all it needs is:
netsh interface ip set address name = "Local Area Connection" gateway = gwmetric = 1

You could also consider a tool that manages different network connections:
Rob WilliamsCommented:
Add the appropriate gateway to the network adapter you want to use and remove any gateway address from the other.

Is this a violation of company policy at all ? Someone has gone to great effort and expense to protect the corporate network with ISA and there is now an unprotected back door.
abd_1980usAuthor Commented:
changing the default gateway will not allow me to access company network resources.
Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Rob WilliamsCommented:
So I assume your company uses more than a single subnet?
If so do as suggested above but you will need to add static routes.
For example assume you company uses a subnet of 10.1.1.x and the LAN network adapter on your PC is Then at a command prompt add the following route:
route  -p  add  mask
Should you need to remove the route
route delete
You can add as many routes as necessary to reach all company subnets. The to which your network adapter is attached should already be available, by default.
abd_1980usAuthor Commented:
my company subnet at my office is 10.1.5.x with the default gateway
the ADSL subnet is 192.168.1.x with the defualt gateway of
the ISA server is on subnet 10.1.1.x

could I do a temprory script or .bat file to modify them and get back again, noting that all IP addresses are assigned by DHCP
abd_1980usAuthor Commented:
Thank you RobWill
this tool was what i looking for.
Rob WilliamsCommented:
Thanks abd_1980us.
Cheers !
Rob WilliamsCommented:
Another tool you might want to have a look at s:
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.