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'm using a 3G modem for a router running Ubuntu server 10.04. I have the connection established using wvdial, which works successfully, but sometimes the connection drops. I would like it to auto re-connect.

I've set the "auto reconnect" in wvdial.conf, but this does not seem to work. Any ideas? Am I missing a config option, or should I try writing a script which polls the network status and resets if ppp0 has gone down?

share|improve this question
Ideally you would configure NetworkManager to handle this task, and reconnect when the connection is down. – user4124 Jan 25 '11 at 15:55
I'm not using NetworkManager - this is a server machine, so I need manual control over the interfaces. – askvictor Jan 26 '11 at 2:29

You can disable the auto reconnect feature of wvdial and provide a wrapper script instead of calling wvdial (no need for polling):

#! /bin/bash
    while : ; do
        sleep 10
) &
share|improve this answer

Find the solution for mobile broadband autoconnection/ reconnection at

share|improve this answer
Welcome to Ask Ubuntu! Whilst this may theoretically answer the question, it would be preferable to include the essential parts of the answer here, and provide the link for reference. – Eric Carvalho Nov 10 '13 at 14:46
Additionally: what works on Mint does not necessarily on Ubuntu too – guntbert Nov 10 '13 at 18:35
This works for Mint of Ubuntu GUI, but not for server without Network Manager command line installed. – wilhil May 17 '15 at 1:10

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.