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

I am having a two connection. One is local area Ethernet connection which connects to internet. Second connection is a GSM modem connected to my modem.

What I am looking for is,

  1. When eth0(local network) is down, start automatically ppp connection
  2. When eth0 is up, turn off automatically ppp connection.

So in a way I am looking for continous internet connect and priority is through eth0(local area network)

I believe this can be done by editing /etc/network/interfaces file. But I don't know exactly what to do.

I can configure my modem based ppp connection using pon/poff command.

share|improve this question

Network-manager will do this for you, so why are you not using it? I'm using it in exactly this way to prioritize wired over wifi and wifi over 3g.

share|improve this answer
Could you please provide more details and also see if you can help here:… – user25656 Mar 24 '13 at 6:28

Your Answer


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.