Configure broadband on Ubuntu

Prerequisite
BSNL Broadband provides different types of ADSL modem/router: You should have a working ethernet card to connect the modem/router.
 * 1) Huawei ADSL modem/router with ethernet and USB port
 * 2) DareGlobal ADSL modem/router with ethernet port.
 * 3) Huawei ADSL modem/router with ethernet port, USB port and built-in wireless access point.

The UT300R2U DSL modem/router USB ones are supported out of the box from Hardy Heron (Ubuntu 8.04).

Instructions
Note: The router/modem would trigger the connection if configured this way.(Router on -> Connected)

Ethernet Connection
Steps 2, 3, 4 can also be done from menu System->Administration->Network in GUI
 * 1) Connect the modem/router to the ethernet card
 * 2) Assign an IP address for the ethernet card; the router has a fixed interface address of 192.168.1.1, so you can use 192.168.1.2 for your ethernet interface. $ sudo ifconfig eth0 192.168.1.2
 * 3) Add 192.168.1.1 as default gateway. $ sudo route add default gw 192.168.1.1
 * 4) Enter the address of some DNS servers in /etc/resolv.conf. These DNS adresses are provided on BSNL's instruction manual. $ sudo vi /etc/resolv.conf  The entry will be of typenameserver 61.1.96.71, where the IP will be the one provided in your BSNL Broadband instruction manual.
 * 5) Access the router's management interface via a browser by typing the address 192.168.1.1. The admin username/password is admin/admin
 * Set the connection type to `PPPoE'. On my MT882 box, this comes under `WAN Settings'
 * Enter your user name and password (username is of the form xyz@dataone)
 * Reset the router. It will take 2-3 minutes for the box to come up again

Alternate Method: Now go to System>Administration>Networking. Click on it. You would be asked for your password to carry out the administrative job as root. You should be prompted to enter the following details.
 * 1) Connect your ethernet wire to the port at the back of your computer.
 * 2) Fire up the terminal and type in sudo pppoeconf
 * 3) It should detect your modem.
 * 4) Keep on pressing enter. Fill in your user name and password when indicated.
 * 5) It should be easy to stick on to defaults.
 * 6) You should be prompted back to your terminal when it would say pppoe loaded. Simple. That's the end of terminal.
 * 1) Activate the Wired connection.
 * 2) Highlight the wired connection and click on properties.
 * 3) Check the box "enable the connection"
 * 4) Configuration as dhcp.
 * 5) Connect to internet.

Wireless Connection
convert: unable to open file `/home/ubuntuin/wwwroot/ubuntu-in.info/w/images/b/b9/PPPoE_Connection.png'. convert: missing an image filename `/home/ubuntuin/wwwroot/ubuntu-in.info/w/images/thumb/b/b9/PPPoE_Connection.png/640px-PPPoE_Connection.png'. convert: unable to open file `/home/ubuntuin/wwwroot/ubuntu-in.info/w/images/b/b4/GDMT_modulation.png'. convert: missing an image filename `/home/ubuntuin/wwwroot/ubuntu-in.info/w/images/thumb/b/b4/GDMT_modulation.png/640px-GDMT_modulation.png'.
 * 1) Assign an IP address for wireless NIC; the router has a fixed interface address of 192.168.1.1, so you can use 192.168.1.2 for your wireless NIC. $ sudo ifconfig wlan0 192.168.1.2 In some cases you may need to replace wlan0 with with eth0 or eth1.
 * 2) Add 192.168.1.1 as default gateway. $ sudo route add default gw 192.168.1.1
 * 3) Add network ESSID. $ sudo iwconfig wlan0 essid WA1003A Default ESSID for the modem/router provided by BSNL are same as model names. You can change it from modem/router's admin console.
 * 4) Enter the address of some DNS servers in /etc/resolv.conf. These DNS adresses are provided on BSNL's instruction manual. $ sudo vi /etc/resolv.conf The entry will be of typenameserver 61.1.96.71, where the IP will be the one provided in your BSNL broadband instruction manual.
 * 5) Access the router's management interface via a browser by typing the address 192.168.1.1. The admin username/password is admin/admin
 * Set the connection type to for PVC0 connection as 'PPPoE'. On WA1003A modem/router, this comes under 'Setup'
 * Enter your user name and password (username is of the form xyz@dataone){| class="MediaTransformError" style="width: 640px; height: 480px; "
 * Error creating thumbnail: convert: unable to open image `/home/ubuntuin/wwwroot/ubuntu-in.info/w/images/b/b9/PPPoE_Connection.png': No such file or directory.
 * }
 * Set the modulation to GDMT. On WA1003A modem/router, this comes under 'Setup->Modem Setup' {| class="MediaTransformError" style="width: 640px; height: 480px; "
 * Error creating thumbnail: convert: unable to open image `/home/ubuntuin/wwwroot/ubuntu-in.info/w/images/b/b4/GDMT_modulation.png': No such file or directory.
 * }
 * Save and restart the modem/router. On WA1003A modem/router, this can be done under 'Tools->System Commands' It will take 2-3 minutes for the box to come up again

Wireless security
convert: unable to open file `/home/ubuntuin/wwwroot/ubuntu-in.info/w/images/c/c9/WEP.png'. convert: missing an image filename `/home/ubuntuin/wwwroot/ubuntu-in.info/w/images/thumb/c/c9/WEP.png/640px-WEP.png'.
 * In admin console, 'Advanced->Wireless Security' set security to WEP.
 * Add a 64 bit authentication key, 10 characters in hex format i.e 0-9 and A-F{| class="MediaTransformError" style="width: 640px; height: 480px; "
 * Error creating thumbnail: convert: unable to open image `/home/ubuntuin/wwwroot/ubuntu-in.info/w/images/c/c9/WEP.png': No such file or directory.
 * }
 * Add this key to wireless NIC configuration. $ sudo iwconfig wlan0 key A1B2C3D4E5
 * Save settings in router and restart it. Reactivate the card, probably using ifdown and ifup

One stop instruction for wireless NIC:
iface eth0 inet static address 192.168.1.10 netmask 255.255.255.0 gateway 192.168.1.1 wireless-essid WA1003A wireless-key A1B2C3D4E5
 * Add following lines to /etc/network/interfaces

auto eth0 Most of the steps can also be done from menu System->Administration->Network in GUI

(Note: Most of the instructions are based on the document athttp://www.calcuttatelephones.com/dataoneinstall/bb008.html)

Alternative
Note: Ubuntu would trigger the connection if configured this way.(Router on -> Ubuntu on -> Connected)
 * 1) Make sure your Ethernet card is configured
 * 2) Open a Terminal: Applications->Accessories->Terminal
 * 3) Enter sudo pppoeconf
 * 4) Follow instructions on the screen. The defaults are fine for most cases. Make sure you enter your username and password carefully. Beware : The password will be visible on the screen.

Checking Usage
Casanova has made a python script for checking dataone usage. NOTE: For bug reports, feature requests go to http://code.google.com/p/doufs/ Dataone usage script

USB Connection
Todo

MTNL Triband
MTNL Triband offers DSL 502T Dlink Router for ADSL for those who opt not to buy one. However, I would recommend buying the same router, if one chooses not to pay rent to MTNL for this modem. This router has known to work without issues for me.

Users who try out Ubuntu Live CDs would have to set up DNS as shown below. For Kubuntu Users, Konqueror automatically detects the network (if through ethernet) and one can access without any configuration.

If you have a Wireless modem and want to connect it to your existing MTNL triband connection, you might want to look up this diagram.

Ethernet

 * For users, who have connected their router to the Ethernet card, only have to setup the DNS address as provided by MTNL.
 * Follow the following steps
 * Go to System->Administration->Network
 * Move to the DNS Tab
 * Click on the default entry (which could be 192.168.1.1) and click on "Delete" button
 * Click on "Add" button and enter the following DNS addresses
 * 203.94.227.70
 * 203.94.243.70
 * Notes:
 * You can also use OpenDNS servers (208.67.222.222, 208.67.220.220) instead of the default MTNL ones.
 * Alternate method: Follow these instructions.

USB

 * Works out of the box for Kubuntu 6.06 (and onwards - need confirmation)
 * Works for Ubuntu 7.10 (One would have to setup the DNS. Please see the ethernet section above to setup the DNS)

Checking usage
To find out your usage, you can log on to http://register.mtnl.net.in and input your telephone number as "username" and the password as your "CA" number, if you haven't changed it. Click on Account Summary on the left pane, when you are in.

Obtaining the sify dialer
Download the client from the same place where you got the windows client. This should ideally behttp://202.144.65.70:8090, and at the time of writing the file is can be found athttp://210.18.11.199:81/bbandclient/sifyconnect-1.3-bin.tar.gz. orhttp://210.210.4.74:81/bbandclient/sifyconnect-1.3-bin.tar.gz

Installing the dialer
Untar the the dialer using your favorite untar program, or do this : $ tar -xzvf sifyconnect-1.3-bin.tar.gz

Then run the following commands as root : $ cd sifyconnect-1.3-bin/ $ bash install.sh

Using the dialer
Run the following commands : $ sifyd $ sifyconnect -l

This will prompt you for your username & password, give them. Once you do that your as good as logged in, you can now close the terminal and use the internet.

Autologin
Want to automatically login onto sify everytime you switch on the computer. Just write a shell script. Just make a file (something like sify.sh) in "/usr/bin/". The scriptwill be something like this : $ sifyd $ echo -e 'accountname\npassword' | sifyconnect -l

To start this everytime the computer switches on add the following lines to the /etc/rc.local file (untested): $ bash sify.sh

Troubleshooting
Sometimes the client on trying to log in says something like --

"Login failed : Get the latest version of the client"

This is because after upgrading it's protocol in some places, sify has discontinoued support for the old protocol. It has also stopped development of it's GNU/linux and Mac clients, so you might have to call sifycustomer care and tell them your problem. They probably just allow you IP and account to use the old protocol It took them about 8 hours to fix the problem when I had it. :D

Another problem that might occur would be like --

"-bash: /etc/init.d/sifybb: No such file or directory"

If that ever happens all you have to do is Broadband_Howto#Installing_the_dialer again.

External Resources
Configuring Sify Broadband on Ubuntu Configuring Pacenet on Ubuntu

Pacenet
Following is a guide for configuring Pacenet on Fedora. Should be somewhat helpful for Ubuntu users.http://www.fedoraforum.org/forum/archive/index.php/t-82441.html

PPPoE (non bridged)
In this mode, your router will connect as sson as it is switched on. If you are billed for time connected then you need to use bridged mode
 * Go to System->Administartion->Networking and make sure you have configured an ip (192.168.1.2, for example) and have set your DNS (supplied by Airtel) and Default gateway (192.168.1.1). If your router is handling DHCP then you needn't configure an ip.
 * Navigate to http://192.168.1.1
 * Enter the username and password (default is admin for both)
 * Click Run Wizard
 * Click Next
 * Select your time zone (+5:30)
 * Click Next
 * Select 
 * Click Next
 * Enter your username and password. VPI = 1, VCI = 32, Connection Type = PPPoE LLC
 * Click restart

HUawei EC 168C rotable USB Stick
No need for any configuration or drivers on Ubuntu 9.04 Jaunty Jackalope.

Just plug it in.

"Preferences>Network Connections> Mobile Broadband" should detect "Auto Mobile Broadband CDMS connection"

select the connection to add phone number "#777" and you username/ password, both of which should be your 10 digit phone number.

that is all. choose the connection from notification area and enjoy.

in case it does not work. just try the following command on the terminal.

"sudo wvdialconf /etc/wvdial.conf" which will detect the modem and install it for internet connection.

the process is much simpler than configuring the modem on windows.

On Ubuntu 9.10 Karmic Koala, however, the network manager is buggy. So install wvdial and run your modem through it.

You may need to manually edit the wvdial.conf file:

"sudo gedit /etc/wvdial.conf"

Remove the semicolons from the file.

To establish connection use the following command in the terminal:

"sudo wvdial"

Press Ctrl^C to disconnect.

You can also try to update to modern manager with istructions given here:

http://hardik.in/2010/03/20/ubuntu-9-10-reliance-netconnect-broadband-modem-huawei-ec1260-networkmanager-works-out-of-the-box/

Hathway
Configuration: Static IP address
 * Note down the IP address, gateway and DNS server addresses given by Hathway.
 * Navigate to System => Administration => Network
 * Enter your password
 * In Connections tab, select your ethernet card, in my case it's Wired Connection(eth1)
 * Click on properties and set the tabs as follows, (replace the details with your own details)

IP Address: 202.88.100.15

Subnet Mask: 255.255.255.0

Gateway Address: 202.88.100.5
 * Go to DNS Tab.
 * Click on Add next to DNS box and type the address of DNS server.
 * For adding more DNS servers, repeat the above step.
 * Click on Close to finish.

USB
I haven't tried connecting on ubuntu with my modem connected via USB. I have a Motorola SB5100 cable modem .I believe it works via USB too as I had it working with USB once on Mandriva. If anyone has successfully done so on Ubuntu do please add it.