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.

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
add comment

2 Answers 2

Find the solution for mobile broadband autoconnection/ reconnection at http://community.linuxmint.com/tutorial/view/1456

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
add comment

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
        wvdial
        sleep 10
    done
) &
share|improve this answer
add comment

Your Answer

 
discard

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.