Solved

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

Posted on 2007-04-06
8
257 Views
Last Modified: 2010-08-05
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.
0
Comment
Question by:abd_1980us
  • 5
  • 3
8 Comments
 
LVL 77

Expert Comment

by:Rob Williams
ID: 18865071
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.
0
 

Author Comment

by:abd_1980us
ID: 18865119
changing the default gateway will not allow me to access company network resources.
0
 
LVL 77

Expert Comment

by:Rob Williams
ID: 18865160
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 192.168.100.101. Then at a command prompt add the following route:
route  -p  add  10.1.1.0  mask 255.255.255.0  192.168.100.101
Should you need to remove the route
route delete 10.1.1.0
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.
0
 

Author Comment

by:abd_1980us
ID: 18865250
ok
my company subnet at my office is 10.1.5.x with the default gateway 10.1.5.1
and
the ADSL subnet is 192.168.1.x with the defualt gateway of 192.168.1.254
and
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
0
Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

 
LVL 77

Accepted Solution

by:
Rob Williams earned 250 total points
ID: 18865394
A couple of options.
as mentioned earlier:
assign the 192.168.1.x adapter the 192.168.1.254 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 10.1.1.0 mask 255.255.255.0 10.1.5.x
  (assuming 255.255.255.0 is the subnet mask for the ISA network 10.1.1.0 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 = 10.1.5.1 gwmetric = 1

You could also consider a tool that manages different network connections:
http://www.netswitcher.com
0
 

Author Comment

by:abd_1980us
ID: 18865509
Thank you RobWill
this tool was what i looking for.
0
 
LVL 77

Expert Comment

by:Rob Williams
ID: 18865511
Thanks abd_1980us.
Cheers !
--Rob
0
 
LVL 77

Expert Comment

by:Rob Williams
ID: 18865526
Another tool you might want to have a look at s:
http://www.netsetman.com/
0

Featured Post

Save on storage to protect fatherhood memories

You're the dad who has everything. This Father's Day, make sure your family memories are protected. My Passport Ultra has automatic backup and password protection to keep your cherished photos and videos safe. With up to 3TB, you have plenty of room to hold the adventures ahead.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

A common practice in small networks is making file sharing easy which works extremely well when intra-network security is not an issue. In essence, everyone, that is "Everyone", is given access to all of the shared files - often the entire C: drive …
Many of us in IT utilize a combination of roaming profiles and folder redirection to ensure user information carries over from one workstation to another; in my environment, it was to enable virtualization without needing a separate desktop for each…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
In this video I am going to show you how to back up and restore Office 365 mailboxes using CodeTwo Backup for Office 365. Learn more about the tool used in this video here: http://www.codetwo.com/backup-for-office-365/ (http://www.codetwo.com/ba…

910 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

25 Experts available now in Live!

Get 1:1 Help Now