This guide will help you establish an ADSL network connection with the PPPoE Ethernet modem under Ubuntu 6.06 LTS (Dapper Drake).
1. Introduction
Although networking with routers is common, we sometimes need to use PPPoE directly to connect to ADSL (sometimes called DSL) modem.
Of course, first of all you have to pay a good money to netcom or telecommunications network operators, the line to connect well. Modem on the "DSL" light, generally indicates that your line is smooth.
You need to have the username and password for your account. The modem and Ethernet card also have to connect with the appropriate network cable.
2. Configure PPPoE with the command line
Set modem to use Terminal. Open with the following menu: Applications > Accessories > Terminals.
The package used to configure is called PPPoE. This package is installed by default, but there are times when configuration changes may not be available in the system. If the following command does not work, you will have to install the package (see PPPoE Package Installation section).
In the terminal, type:
sudo pppoeconf
A text-mode selector will guide you through the following steps:
Confirm the detected Ethernet card.
Enter the user name.
Enter a password.
If you already have a PPPoE connection, ask if you want to modify it.
Common option: Use the ' noauth ' and ' defaultroute ' option to remove ' Nodetach ' at the same time-choose Yes.
DNS-Select "Yes".
MSS-Select "Yes".
Ask if you want to start the connection at boot time, most of the time to choose "Yes". But if your network is often broken so that you can reconnect often, choose No, and then write a script to connect. Because the automatic connection with the power-on is high permissions, "Poff" command to use sudo, inconvenient. )
The final question is whether you want to establish a network connection immediately. (Watch it, do it!)
When the settings are complete, the general network can be used.
3. Manual control of Network Connections
To connect to your set up ADSL connection, enter in the terminal:
sudo pon dsl-provider
To disconnect the ADSL connection, enter in the terminal:
sudo poff dsl-provider 4. Problem
If you are not connected, try connecting manually (see the previous section).
4.1. PPPoE Package Installation
Check that the PPPoE package is not installed and can be entered in the terminal:
Dpkg-s pppoeconf
If installed, you should be able to see the following two lines of words:
Package:pppoeconfStatus:install OK installed
If it is not installed, enter:
sudo apt-get install pppoeconf
If you want to install with a CD and the system cannot find the package, you may need to add a CD source. To add a CD to do the source, put the CD into the optical drive and enter at the end:
sudo apt-cdrom add
When there is no way, can go to http://packages.ubuntu.com/download. But this time you will get the other machines to download, and then copy over. Double-click the package icon in GNOME to install it.
4.2. Issues relating to start-up
If you want to rerun pppoeconf after each reboot, try the following two options:
Edit/etc/network/interfaces so that ' PPPoE maintained ' a few lines in front of the ' Auto Dsl-provider ' line:
# added by Pppoeconfauto eth0iface eth0 inet manualpre-up/sbin/ifconfig eth0 Up # line maintained by Pppoeconfauto DSL-PR Ovideriface Dsl-provider inet Pppprovider dsl-provider
If not, edit/etc/init. D/bootmisc.sh, before the last line ("Exit 0"), plus:
Ifconfig eth0 up Pon Dsl-provider
4.3. Error log
If there is a problem with the connection, you may be able to find useful information in the system log. You can view the system log files using a terminal or graphical interface.
* To use the graphical interface, you can choose from the menu: System > System Management > System Log System Log in/var/log/messages.
* To use the terminal, then enter:
sudo dmesg