I am using wvdial to connect to a mobile network (I have a usb modem) and it works fine. However, I wanted to automate the connection a bit (currently I am running wvdial every time I want to connect). I was wandering if there is a way to add this network to /etc/network/interfaces (in a truly Debian way) to have it connect on startup and/or whenever I connect my modem.

Any ideas anyone?

link|improve this question

feedback

2 Answers

You need to integrate wvdial with the ifupdown system. If you want a full shell-based solution start with The alternative PPP connection with wvdialconf. But note that Debian recommends using graphical tools like the NetworkManager for configuring network connections on GUI-based desktops.

PS: That should normally be a comment but I don't have permissions to comment yet :)

link|improve this answer
Regarding GUI-based tools, I am using KDE and KNetworkManager just doesn't work :( – Grzenio Mar 13 '11 at 8:32
@Grzenio What do you mean by "just doesn't work"? I remember that it was very easy to create a new mobile broadband connection using the GNOME NetworkManager and set it to auto-connect. It should be similar in KNetworkManager. – faif Mar 16 '11 at 8:40
feedback

Add to /etc/network/interfaces something like

auto ppp0
iface ppp0 inet wvdial

(tested on Ubuntu Lucid)

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

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