Sign up ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

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

2 Answers 2

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 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.