Thursday, August 21, 2008

How to configure broadband in Ubuntu linux

To configure the DSL connection in Ubuntu please follow the steps provided below.

1. Connect your modem/router to your computer using a LAN cable .

Note: 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.

2. Install pppoeconf package

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

This can be installed from the installation CDs or DVD.

$> 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

3. Detection of router/Modem

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 and 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.

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


No comments: