How to connect MTNL 3G or any usb data card on Linux

Ok So I Bought a MTNL 3G dongle and was struggling to connect to the 3g network.

Tried everything usb mode switch, installed the software that came along with the client, network manager but no luck.

Finally thanks to manager I got the solution. If you have installed the software that comes with the dongle remove it.

Thats it then try to connect and its works successfully.

The software blocks the port which needs to be connected on and hence I was stuck.

Looking forward to enjoying my unlimited connection.

If the above still does not work then you need to type the code below

 

lsusb

After connecting the datacard type the command above you will get an output as below

Bus 008 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 003: ID 0a5c:2145 Broadcom Corp. Bluetooth with Enhanced Data Rate II
Bus 004 Device 002: ID 08ff:2810 AuthenTec, Inc. AES2810
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 004: ID 230d:0003
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

Here the number after ID is your Vendor id and your product id respectively. If you are not sure which is yours then remove your datacard run lsusb copy the output and then compare it with the output you got with datacard.

After you have got that, you will need to install usb_modeswitch as follows


sudo apt-get install usb-modeswitch

Once done type the following command


sudo usb_modeswitch -v 230d -p 0003 -u 3

Where -v and -p we got from lsubs earlier.

and thats it you can either connect it from Network manager or with wvdial


sudo wvdialconf
sudo wvdial

You need to edit /etc/wvdialconf with your apn, username and password.

Click here for MTNL 3g tariffs

Follow me

Leo G

Is a Linux Hobbyist and Enthusiast. He Strongly believes in OpenSource Software and would like you to view and download his software at https://github.com/Leo-g
Follow me

  • Al Lobo

    Useful Info

    • NO! Linux is an operating sytsem. Anything cloud is a loose term for providing remote services for client computers. This can include remote access to programs or storage. Hosting on Linux means the machine runs the Linux operating sytsem, which is 80 % of the Internet. Cloud services are run over some hosts as an extra.References :

  • monika

    after typing

    sudo usb_modeswitch -v 230d -p 0003 -u 3

    it says device busy what to do now?

    • This is just the perfect asnewr for all of us