Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

Possible Duplicate:
How to stop wifi disconnection when eth0 link becomes ready?

I have got two active network connections on my system:

  • mobile broadband, DHCP to connect to internet via my ISP
  • ethernet static IP for local subnet in home network

Whenever the ethernet connection is active, I lose my internet connection.

Ubuntu seems to be prefering the ethernet port for internet access...

How can I setup my system to always use the mobile broadband for web access?

Thanks for any help.

share|improve this question
add comment

marked as duplicate by Lekensteyn, Jorge Castro, karthick87, Marco Ceppi Jul 19 '11 at 15:10

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

1 Answer

My guess would be, that your static network sets the default gateway. That way, all your internet traffic gets then routed to some other machine without connection to the internet.

Have a look what

route

tells you. If the default gateway is set to s.th. different than your ISP's IP try:

route del default gw
route add default gw <IP of your ISP>

If that doesn't help, it would be useful to know your exact configuration of the two interfaces and the output of route.

share|improve this answer
add comment

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