1. Introduction to ADSL
Although it is common to connect to a vro network, we sometimes need to use PPPoE to directly connect to the ADSL (or DSL) modem.
Of course, you must first pay for the network operators of China Netcom or China Telecom to connect the lines. The "DSL" on the modem is on, which generally indicates that your line is smooth.
You must have the username and password of your account. A suitable network line must be used to connect the Modem and the ethernet card.
2. Use the command line to configure PPPoE
Set the modem to use a terminal. Choose Application> accessories> terminal from the following menu.
The package used for configuration is PPPoE. This package is installed by default, but sometimes it may not be in the system when the configuration is changed. If the following command cannot be run, you have to install this package (see the PPPoE package installation section ).
Type:
$ Sudo pppoeconf
A text-mode selection program will guide you through the following steps:
Confirm the ENI to be detected.
Enter the user name.
Enter the password.
If you already have a PPPoE connection, you will be asked if you want to modify it.
Common options: whether to use the 'noauth' and 'defaultroute 'options to remove 'nodetach'-select "Yes ".
DNS-select "Yes ".
MSS-select "Yes ".
Ask if you want to start the connection at startup, and select "yes" most of the time ". However, if your network is frequently disconnected, You Have To reconnect frequently, or choose not, and then write a script to connect. Because the high permission is used for automatic connection at startup, the "poff" command must use sudo, which is inconvenient .)
Finally, I asked you if you want to establish a network connection immediately. (Let's do it !)
After the configuration is completed, the network can be used normally.
3. manually control network connections
To connect to your configured ADSL connection, enter:
$ Sudo pon dsl-provider
To disconnect the ADSL connection, enter:
$ Sudo poff dsl-provider
4. Problem
If the connection fails, try to connect manually (see the previous section ).
4.1. PPPoE package installation
Check whether the PPPoE package is installed. Enter the following information in the terminal:
$ Dpkg-s pppoeconf
If the installation is complete, you can see the following two lines:
Package: pppoeconfStatus: install OK installed
If no installation is available, enter:
$ Sudo apt-get install pppoeconf
If you want to use CD for installation and the system cannot find the package, you may need to add a CD source. Add a CD as the source, put the CD into the optical drive, and enter it on the terminal:
$ Sudo apt-cdrom add
You can download it at http://packages.ubuntu.com. But at this time, you will get the download from another host and copy it. Double-click the software package icon in GNOME to install it.
4.2. startup Problems
If you need to re-run pppoeconf after each restart, you can try the following two methods:
In this way, edit/etc/network/interfaces to make several lines of 'pppoe maintained' before the lines of 'Auto dsl-provider:
# Added by pppoeconfauto eth0iface eth0 inet manualpre-up/sbin/ifconfig eth0 up # line maintained by pppoeconfauto dsl-provideriface dsl-provider inet pppprovider dsl-provider
If not, edit/etc/init. d/bootmisc. sh and add:
$ Ifconfig eth0 up pon dsl-provider
4.3. Error Log
If the connection is faulty, you may find useful information in the system log. You can use a terminal or graphical interface to view system log files.
* To use the graphic interface, choose system> System Management> System log in/var/log/messages.
* To use a terminal, enter:
$ Sudo dmesg