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 a PC with a LAN connection and a WLAN connection like this:

LAN: Local network, several PCs and an old DSL-modem that is not connected to the internet but only used as a DHCP server, the IP comes from that DHCP server.

WLAN: a DSL router connected to the internet, IP comes from DSL-router.

If I deactivate the LAN, I can connect to the internet through the DSL-router as usual.

If I activate the LAN, it seems that any internet request is routed to the LAN and therefore I don't have an internet connection. A ping to a website shows that the LAN-DSL-DHCP-device answers that it cannot connect to the website.
I guess that's because there is a device in the LAN that would be able to connect to the internet?

How can I route internet requests towards the WLAN connection, even if the LAN is active?

And how does Windows decide which network connection to use for an internet connection?

(one more note: everything worked before the LAN-DHCP device was added)

share|improve this question
add comment

1 Answer

up vote 1 down vote accepted

Look at the advanced option within ncpa.cpl (Network interfaces) and prioritise the WAN interface over the LAN one. Or maybe removing the Default Gateway on the LAN interface may work. (But you will lose DHCP)

You can print the routes in a cmd with : route PRINT command. You should see something like :

Network destination   Netmask        Gateway           Interface        Metric
0.0.0.0               0.0.0.0        192.168.1.253     192.168.1.18     10

Saying that all packet to networks that did not match an address for other routes are directed to the Gateway mentioned here (by using the interface mentioned).

You can alter the routing table with the route command as well.

share|improve this answer
    
Thank you! I had two entries with 0.0.0.0 MASK 0.0.0.0, one to the DSL-router and one to the LAN. After removing both (seems one can only remove all 0.0.0.0 at once) and adding just one pointing to the DSL-router, it now works fine. –  Holgerwa Mar 10 '11 at 12:01
    
In fact you should be able to distinguish between two 0.0.0.0 route, maybe with more parameters don't remember for windows. Good Luck. –  M'vy Mar 10 '11 at 12:29
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.