Monday, August 9, 2010

BSNL broadband connection in ubuntu 10.04

i had to go through a lot of sites to get this working..so i ve decided to document what has worked for me..
first we need to add DNS server addresses to /etc/resolv.conf..to get the addresses iused ipconfig -a in windows.this is what the file looks like
nameserver 218.248.245.1
nameserver 218.248.255.141

then cd to /etc/ppp/peers
edit the file named profile and add your username(broadband username) and phone no..

# There should be a matching entry with the password in /etc/ppp/pap-secrets
# and/or /etc/ppp/chap-secrets.
user "guruvyasa"<------username here

# MUST CHANGE: replace ******** with the phone number of your provider.
# The /etc/chatscripts/pap chat script may be modified to change the
# modem initialization string.
connect "/usr/sbin/chat -v -f /etc/chatscripts/pap -T 173333" <-------your phone no. will be same for entire area

with this done, open new terminal and type

sudo pppoeconf
it will ask for username and password rest all dont worry..
switch off modem and switch on again.
type sudo poff -a to close connection
sudo pon dsl-provider
to connect to internet

there are some problems with vi editor which comes pre-installed with ubuntu..so use gedit to edit files initially..it also doesnt allow cd to these directories..so we need to change permissions using chmod command..
enjoy

No comments: