Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have two (three) network connections. LAN, Wireless WiFi, and Built in WiFi. Built in is off in this case.

I want to be able to tell my computer to always use the Wireless Wifi for internet (no firewall) and use the LAN for secondary Networking (work LAN).

I set the Metric on the LAN to 9999 and the Metric on the Wifi to 1 and this works most of the time, but I still get contention issues.

Is there anything else I can do to insure internet traffic goes through the Wifi first?

Windows 7 BTW

EDIT: What I'm doing is connecting to the LAN and Remoting into my machine. Then with that intact, I do a ROUTE DELETE 0.0.0.0 to remove the default route. Then I attach my Sprint card which connects and adds its own default route. Working like a charm!

share|improve this question
    
"wireless wifi" and "built-in wifi"? huh? –  quack quixote Dec 6 '09 at 21:17
    
Yep. Wireless as in "cellular", wi-fi as in standard home wireless wi-fi. –  klkitchens Dec 7 '09 at 22:48
add comment

4 Answers

up vote 3 down vote accepted

The way to do that would be to change your routing table so that only the WiFi connection has a route to the Internet. What that practically means is that you should remove the default route from your LAN connection. This will make the TCP/IP stack not see anyway to get to an outside network using your LAN connection.

I'll assume why what your doing is failing sometimes is that at some point the WiFi connection disconnects momentarily and Windows switches to the default route on the LAN connection.

If you can't disable the default route, you can try to find a proxy server that you can run locally that will let you determine which interface it uses.

Here is some information on having multiple default routes (gateways) on Windows. It hasn't been updated in a while so it may or may not be out of date.

share|improve this answer
add comment

use a static IP address for the LAN connection and leave the DNS server blank.

share|improve this answer
add comment

In Windows XP you can influence which interface will be selected by specifying the interface metric. So, for example, for "Local Area Connection" (or any other network connection):

  • open the Properties page
  • double-click Internet Protocol (TCP/IP)
  • on that page, click the Advanced button
  • and on that page, uncheck "Automatic metric"
  • in the "Interface metric" box type in your chosen value.

Interface metric

I don't know the analog in Windows 7, but I'd be surprised if this was not available in some form. Surely someone will know where to get at this in Windows 7 if it's not similar to this.

share|improve this answer
    
Yeah, as I mentioned I've already set the metric. Was hoping rather than "influencing" I could force it :) –  klkitchens Oct 29 '09 at 16:16
    
Sorry @peiklk, I must have been blind or asleep to have missed your note about the metric. :-/ –  JMD Oct 29 '09 at 19:04
add comment

In Windows 7 it's similar. Go to Control Panel - Network & Internet - Network connections.

Right click Local Area connection, then properties. From that point on the process is the same as in Windows xp :)

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.