Thursday, August 16, 2007

BSNL Broadband with Fedora Core 6 or 7 ( FC6/FC7 )

Lets say you have got BSNL Broadband service, meaning you have received or bought the Modem ( I have HUWAI one ), you have received the login and password for your service as well. You will need RJ-45 Cable going from your computer's network card to the modem. Here we are going to assume that you have everything above ready and you want to connect to internet using BSNL Modem.

For Fedora Core 6 you are going to need a script named adsl-setup. The same script is called pppoe-setup on Fedora Core 7. On Fedora Core 7 you need to install rp-pppoe RPM installed on your system. On Fedora Core 6 you need the same RPM you can get one from download rp-pppoe or you can run "yum install rp-pppoe" if your yum is configured to download and install the packages.

Now lets say you have proper version of rp-pppoe RPM installed on you platform. Lets begin to configure the connection.

  • Login to your system as root and run "adsl-setup" on FC-6, on FC-7 that will be "pppoe-setup". You will be asked number of questions including whats the name of the new connection ( generally by default this is ppp0 ) a network alias with that name will be created.
  • One of the questions you need to answer are about your login and password. Give your BSNL Broadband userid and password given by BSNL. e.g. your userid would be username@dataone and password.
  • One of the questions would be to configure Firewall for your connection. For starters select None. You can configure this later on.
  • Another question would be about DNS Entries give 218.248.240.208 and for secondary DNS server provide 218.248.255.193. Keep these entries handy in case you need to reconfigure your connection again.
  • You may not want your connection to be up when you start the computer, so do say "Yes" to "Do you want this link to come up on demand?"
Once you have answered all the questions your connection setup would be ready and script should print how to start your connection.

Connect to BSNL
  • As root tail the /var/log/messages in one console while you try connecting to BSNL in another. ;-)
  • On FC-6 run "adsl-start" as root or on FC-7 run "pppoe-start" check out messages in /var/log/messages for any problem your connection may encounter.
  • General problems are because of password mismatch like "Incorrect userid or password provided" passwords are stored in /etc/ppp/pap-secrets and readable by root only. ( There is also /etc/ppp/chap-secrets and they both are alike but I am yet to figure out which one is used for what? ). If you need to modify your userid or password one can directly modify these files.
If you have any problems, or anything above is not clear, let me know and I will try to correct them.
P.S. :- I did setup BSNL Broadband on FC-6 initially. But later I got Linksys router which is now connected to the modem through RJ-45 (LAN) Cable. So now whenever I power on my modem and router connection is available to the computers connected to the router. In short I have jotted down the above things from the memory :-)

No comments: