Connect to the Internet using Vodafone 3G/GPRS using an Option Datacard
Configure the dial up connection for use with Vodafone (contract).
As with any installation on any computing platform, it is good practice to ensure important data is backed up in case unforeseen difficulties arise.
Review all instructions on this page before you begin.
Page dependencies (ensure you have access to everything you need before you begin).
Commands issued at the command prompt in this section are done so as superuser or root unless otherwise specified. When installed, Ubuntu does not ask for a root password to be specified. Either set a root password using sudo passwd root so that you can log in as superuser, or enter the commands listed in this guide prefixed with 'sudo'.
Text in this format indicates command line entry by the user.
Text in this format indicates an error returned by the system.
Text in this format indicates a normal return from the system.
Beware of similar characters such as 1(one), l(lowercase L), 0(zero), O(uppercase 'o'), | (pipe – Shift ' \' usually).
Text enclosed in [square brackets] indicates a build-specific variable such as a version number or user name.
This page was written for Ubuntu 6.06 (Dapper) and may contain content or instructions that are not relevant to other distributions.
This information is provided for guidance only. Use of these instructions is deemed to be at your own risk.
R3UK Limited welcomes comment on this information but cannot guarantee a reply and provides no technical support. Please use one of the many dedicated Linux forums or IRC channels if you require assistance.
Text colours and fonts used in the formatting of this page relating to command input and output are used for illustration purposes. Actual command line colours and fonts will vary according to individual system preferences.
GUI instructions were written for the Gnome 2.14 desktop environment and may differ for other desktop environments.
We're currently trying to get the NHS business unit where we work to allow us to go cross platform rather than forcing everyone to blindly use Windows. A lot of our users are mobile and they access the internet and our VPN via Vodafone 3G/GPRS PCMCIA cards made by Option. One of the prerequisites for going cross platform is that this functionality remains. Fortunately, configuration of these cards in Ubuntu is simple.
About the Option 3G/GPRS datacard.
In our case the Option datacard is Vodafone branded. The card will search for a network when initialised and, if it cannot find a 3G (fast) mobile data network, it will fall back to GPRS which is much slower but has more widespread coverage. A green light flashes for GPRS connectivity while a blue light flashes if 3G is available. Both lights flash while the card searches for the network.
Firstly, open a command prompt and use the tail-f /var/log/syslog command to monitor events on the computer. Next insert the Option card. After a few seconds you should be told that the card has been detected and attached to ttyUSB0 (probably).
To configure the card to connect to the 3G/GPRS mobile service, go to System/Administration/Networking. Highlight Modem Connection and click Properties. Set the properties as below...
Tick 'Enable this connection'
Enter Phone Number as *99***1#
Enter both username and password as wap
Modem port: /dev/ttyUSB0 (or whatever port your Option card was attached to)
Dial type: Tones
Tick the box to Set modem as default route to Internet
Tick the box to Use the Internet service provider nameservers
The last box may be ticked or not depending on user preference
Click OK to exit the properties box and return to the Network Settings window. Now highlight the Modem Connection option and click Activate. Use the ifconfig command to confirm you have obtained an IP address on interface ppp0. Also try and ping an external site to confirm the connection.
For convenience you might want to add the Modem Monitor applet to your panel. This allows quick connection and disconnection to the Internet. Only one bug(?) to point out - the dial number disappears from the General Tab under the connection properties after a successful connection. This appears to just be cosmetic though as subsequent reconnections work fine.
Incidentally, I've also played with the Vodafone Mobile USB Connect Modem under Edgy - see here!
Did the information on this page help you? If so, please help to fund this site by clicking one of our sponsored ads...