Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

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

This question was marked as an exact duplicate of an existing question.

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


tells you. If the default gateway is set to 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

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