Google
 

Wednesday, April 25, 2007

CONFIGURING BSNL ADSL CONNECTION IN LINUX

Introduction

This is a little how-to to configure an ADSL connection in Linux, mainly in Fedora, Debian or Ubuntu linux. I have assumed that you have already installed the distribution and that you have a LAN card in your computer which you are connecting to the router/modem.

Before I start the explanations, here is an excellent introduction to using a Desktop computer with Linux:
http://www.rootsecure.net/content/do..._userguide.pdf

In the steps, note that for your Dataone connection, you must use "username@dataone" as the username and your password. Note the absense of ".in" from the username; the username does NOT include this.

If you want to use your modem/router provided by your ISP (e.g. BSNL Dataone) in bridge mode, then you need a pppoe dialer in your OS. In Linux, the dialer is called pppoe dialer.

Connect your modem/router to your computer using a LAN cable (USB network connections are not reliable, stay away from them). In Linux, the LAN cards in your computer are named as eth0, eth1, etc. depending on which one is detected first. If you have only one LAN card, it will most probably be called eth0. If you have another, it will be eth1, and so on. If you have multiple cards, you need to find out which one is really eth0 and which one is really eth1 etc. (in Debian and Ubuntu, the configuration script will automatically detect the card which is connected to your ADSL modem/router). You can use trial and error to find this out.


* Account Setup:
Before doing the connection setup, you need:
a) your BSNL username and password (assume it is mintu@dataone <== there is no ".in" here!).
B) DNS nameservers provided to you by BSNL guys (assume this is 61.1.128.5, 61.0.0.5).



-------------------------------------
Debian/Ubuntu
-------------------

In Debian based distros (e.g. Ubuntu), you may use either the pppoeconf package.

This can be installed from the installation CDs or DVD. On my computer, running Debian Etch, I have these packages installed for my ADSL connection:
$> dpkg -l ppp* | grep ^ii
ii ppp 2.4.4rel-4 Point-to-Point Protocol (PPP) daemon
ii pppconfig 2.3.15 A text menu based utility for configuring pp
ii pppoe 3.8-1.1 PPP over Ethernet driver
ii pppoeconf 1.12 configures PPPoE/ADSL connections
ii pppstatus 0.4.2-8 console-based PPP status monitor

Once you have the package installed, you use the pppoeconf command as root to do the setup. This script will automatically detect which interface in your computer is connected to the router/modem, and will continue and will ask you for the usename (our exampe: mintu@dataone), password and nameservers. It will ask you for MTU, leave it at 1452 (for pppoe connections, max can be 1492, IIRC). After the setup, you give the command:
#> pon dsl-provider
to start the connection, and
#> poff dsl-provider
to stop the connection.

This page has screenshots of the pppoeconf command and the setup in Debian:
http://users.pandora.be/Asterisk-PBX/PPPoE.htm
This is a Ubuntu web site for these instructions:
https://help.ubuntu.com/community/ADSLPPPoE

You can also install the pppstatus package. It shows you the stats for your ppp connection (data speed, connection time, etc.) in a terminal. It is pretty neat really.


-------------------------
Fedora
---------
In Fedora, you may use either the Network GUI or the rp-pppoe-gui package.

Network GUI Method:
- In Fedora, go to: Desktop --> Administration --> Network, OR, just type the command "system-config-network" the shell prompt to get the same GUI (both of these methods will ask for root password). The window you will get will have title of "Network Configuration".
- From the toolbar of this new window, click on "New" button. You will get a window with title "Add new Device Type".
- In this new windoe, choose xDSL connection, click "Forward" and follow the prompt. It will ask you for the provider name (type anything. e.g. BSNL Dataone), your connection username (mintu@dataone in our example) and password.
- Once setup is complete, to test the connection, go back to the "Network Configuration" window (or open it again as specified in the first point above), and select the new connection and click on Activate button in the toolbar. Wait a few seconds and give the following commands in a terminal:
$> ping 4.2.2.2
$> ping google.com

The first one if successfuly, will prove that the internet connection is working, the second one, if successful, will prove that your DNS nameserves are also working.

Then make sure that the device will become automatically active when the computer boots up by selecting this connection in the network configuration window and by editing its profile and by checking the option that tells the device to activate on boot ups. Also, give normal users the option of controlling this device.

- To disconnect, select the Deactivate button from the network configuration window.

This website also lists this method of configuring your ADSL connection on Fedora (with screenshots link at the bottom of the page):
http://www.geocities.com/imdeemvp/dsl.html



rp-pppoe-gui Method:
rp-pppoe-gui package helps setup the adsl connection. You can installed this package by using the following command (if you are already connected to the internet; yes, I know this is a catch-22 situation, but please bear with me. Think about is, you could be able to connect using the modem/router in pppoe mode instead of using it in bridge mode!):
#> yum install rp-pppoe-gui

If you do not have connectivity when installing this package, then the best thing to do is to install it from your Fedora installation CD or DVD. Another option is to get the rpm file of the package from a friend and try to install that. This is done, as root, with teh command:
#> rpm -Uvh rp-pppoe-gui

(but I recommend the yum method or the method of installation from CD or DVD of Fedora).

Once you have the package, we can proceed as follows. Here is an example session of how the ads-setup command works:
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
#> adsl-set
Welcome to the ADSL client setup.� First, I will run some checks on

your system to make sure the PPPoE client is installed properly...

LOGIN NAME

Enter your Login Name (default root): mintu@dataone

INTERFACE

Enter the Ethernet interface connected to the ADSL modem
For Solaris, this is likely to be something like /dev/hme0.
For Linux, it will be ethX, where 'X' is a number.
(default eth0): if you have only one LAN card, just press ENTER to accept the default

Do you want the link to come up on demand, or stay up continuously?
If you want it to come up on demand, enter the idle time in seconds
after which the link should be dropped.� If you want the link to
stay up permanently, enter 'no' (two letters, lower-case.)
NOTE: Demand-activated links do not interact well with dynamic IP
addresses. You might have some problems with demand-activated links.

Enter the demand value (default no):just press ENTER to accept the default

DNS

Please enter the IP address of your ISP's primary DNS server.
If your ISP claims that 'the server will provide dynamic DNS addresses', enter 'server' (all lower-case) here.
If you just press enter, I will assume you know what you are doing and not modify your DNS setup.
Enter the DNS information here: 61.1.128.5
Please enter the IP address of your ISP’s secondary DNS server.
If you just press enter, I will assume there is only one DNS server.
Enter the secondary DNS server address here: 61.0.0.5


PASSWORD
enter your BSNL password here, twice
Please enter your Password:
Please re-enter your Password:

USERCTRL

Please enter 'yes' (two letters, lower-case.) if you want to allow normal user to start or stop DSL connection (default yes):

FIREWALLING

Please choose the firewall rules to use. Note that these rules are very basic. You are strongly encouraged to use a more sophisticated firewall setup; however, these will provide basic security. If you are running any servers on your machine, you must choose 'NONE' and set up firewalling yourself. Otherwise, the firewall rules will deny access to all standard servers like Web, e-mail, ftp, etc. If you are using SSH, the rules will block outgoing SSH connections which allocate a privileged source port.

The firewall choices are:

0 - NONE: This script will not set any firewall rules. You are responsible
for ensuring the security of your machine. You are STRONGLY
recommended to use some kind of firewall rules.
1 - STANDALONE: Appropriate for a basic stand-alone web-surfing workstation
2 - MASQUERADE: Appropriate for a machine acting as an Internet gateway
for a LAN

Choose a type of firewall (0-2): 0

Start this connection at boot time

Do you want to start this connection at boot time?
Please enter no or yes (default no): yes
** Summary of what you entered **


Ethernet Interface: eth0

User name: mintu@dataone
Activate-on-demand: No
Primary DNS: 61.1.128.5
Secondary DNS: 61.0.0.5
Firewalling: NONE
User Control: yes
Accept these settings and adjust configuration files (y/n)? y

Adjusting /etc/sysconfig/network-scripts/ifcfg-ppp0
Adjusting /etc/ppp/chap-secrets and /etc/ppp/pap-secrets
(But first backing it up to /etc/ppp/chap-secrets.bak)
(But first backing it up to /etc/ppp/pap-secrets.bak)

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

After this, you can just enter "adsl-start" to start the connection (as a normal user) and "adsl-stop" to end the connection. It is that simple.
Summary:
From the ads-setup script questions, you just need to give this info:
- dataone username
- interface: accept default (eth0) if you have only one interface. otherwise, give the name of the interface to which you have connected your modem/router's cable to your computer
- dial on demand: no
- dataone DNS nameserver
- dataone password
- normal users' user control: yes
- Firewalling: 0
- Use connection at startup: yes


Now, give the "adsl-start" command as normal user and verify your connection is working. Wait a few seconds and give the command:
$> /sbin/route -n

It should list a routing table. Then try:
$> ping 4.2.2.2
$> ping google.com
The first ping test will show if your internet connection is working, the second will prove that your DNS nameservers are also working.

To stop the connection, use:
$> adsl-stop

To see the status of the connection, use:
$> adsl-status


That is it. Linux rocks!!


Good luck.

Airtel Broadband 2 mbps packages launched

Airtel Broadband 2 mbps packages launched


Yeh yeh...new packages/plans from Airtel....Does that make a difference????

Top Up 250
Installation Charges: Rs. 500
Security Deposit: Rs. 500
Monthly Charges: Rs. 250
Speed: Up To 2 mbps
Free Usage: 600 MB
Free Voice: As per voice plan
Modem Charge: Rs. 99 per month
Monthly Voice Tariff: As per voice plan
Additional usage for data: Rs. 0.90 per MB
Free email id: One of 5 MB
Plan Type: Top up

Combo 499
Installation Charges: Rs. 500
Security Deposit: Rs. 500
Monthly Charges: Rs. 499
Speed: Up To 2 mbps
Free Usage: 1 GB
Free Voice: 50 pulses
Modem Charge: Included
Monthly Voice Tariff: All for one
Additional usage for data: Rs. 0.90 per MB
Free email id: One of 5 MB
Plan Type: Combo

Combo 699
Installation Charges: Rs. 500
Security Deposit: Rs. 500
Monthly Charges: Rs. 699
Speed: Up To 2 mbps
Free Usage: 1 GB
Free Voice: 100 pulses
Modem Charge: Included
Monthly Voice Tariff: All for one
Additional usage for data: Rs. 0.80 per MB
Free email id: One of 5 MB
Plan Type: Combo

Combo 999
Installation Charges: Rs. 500
Security Deposit: Rs. 500
Monthly Charges: Rs. 999
Speed: Up To 2 mbps
Free Usage: 3 GB
Free Voice: 200 pulses
Modem Charge: Included
Monthly Voice Tariff: All for one
Additional usage for data: Rs. 0.80 per MB
Free email id: One of 5 MB
Plan Type: Combo

BSNL BROADBAND SPEED TEST

BSNL BROADBAND SPEED TEST

http://speedtest.dataone.in:83/bandw...itialmeter.php

Detect Invisible Users on Yahoo! Messenger

Detect Invisible Users on Yahoo! Messenger

with XEEBER [Detect Invisible Users on Yahoo! Messenger] you can find all invisible users on yahoo
this site use new bug on yahoo

NEW BSNL BUSINESS PLAN

BSNL is going to launch the VPN on BB for its Business plan customers (except the start up plan)

This service is offered to the Corporate/ Govt Departments/ Govt Institutions/ PSU/ Educational Institutions. This will be offered as addon- service.
Features: 1. There will be two plans VPNoBB256 VPNoBB512 WITH UPLILNKS AND DOWNLINKS 256 kbps and 512 kbps respectively.
2.No downloading and uploading limits have been kept for these plans.

Particulars VPNoBB256 VPNoBB512
==================================
UP &DOWNbw 256KBPS 512KBPS
==================================

fIXED MONTHLY Rs.500 Rs 900

==================================
Annual option Rs 5000 Rs 9000
=================================

This service will be offered in 1st of May 2007


(bulk customers are offered discounts based on the number of connections
(from 100 connections to above 5000 )

A Liverbird Upon My Chest - LIVERPOOL FC SONG

A Liverbird Upon My Chest
Here's a song about a football team
The greatest team you've ever seen
A team that play total Football
They've won the league, Europe and all.

Chorus:
A Liverbird upon my chest
We are the men, of Shankly's best
A team that plays the Liverpool way
And wins the championship in May

With Kenny Dalglish on the ball
He was the greatest of them all
And Ian Rush, four goals or two
Left Evertonians feeling blue

(Chorus)

Now if you go down Goodison Way
Hard luck stories you hear each day
Theres not a trophy to be seen
'Cos Liverpool have swept them clean

(Chorus)

Now on the glorious 10th of May
There's laughing reds on Wembley Way
We're full of smiles and joy and glee
It's Everton 1 and Liverpool 3

(Chorus)

Now on the 20th of May
We're laughing still on Wembley Way
Those Evertonians feeling blue
at Liverpool 3 and Everton 2

(Chorus)

And as we sang round Goodison Park
With crying blues all in a nark
They're probably crying still
at Liverpool 5 and Everton nil.

(Chorus)

We Remember them with pride
Those mighty reds of Shankly's side
And Kenny's boys of '88
There's never been a side so great.

(Chorus)

LIVERPOOL FC SONG

YOU'LL NEVER WALK ALONE


You'll Never Walk Alone

When you walk through a storm,
Hold your head up high,
And don't be afraid of the dark.
At the end of a storm,
There's a golden sky,
And the sweet silver song of a lark.
Walk on through the wind,
Walk on through the rain,
Though your dreams be tossed and blown.
Walk on, walk on, with hope in your heart,
And you'll never walk alone…
Walk on, walk on, with hope in your heart,
And you'll never walk alone…
You'll never walk alone.

UEFA CHAMPIONS LEAGUE POST MATCH BRIEF ANALYSIS : :




rooney's stoppage time goal overshadowed kaka's two brilliant goals in succession and the final result stands 3-2 in favour of the english team . however milan has 2 precious away goals . so the competition is not over . there ll be more ferocious,belligerent battle at the san siro on may 2 nd ... perhaps man utd defence may get some boost as some of their injured defenders may be back for the second leg.
for match highlights visit
http://www.goaltube.org/

-- crankygeek@sivaprakash