特殊:Badtitle/NS100:ADSLPPPoE
文章出处: |
{{#if: | {{{2}}} | https://help.ubuntu.com/community/ADSLPPPoE }} |
点击翻译: |
English {{#ifexist: {{#if: UbuntuHelp:ADSLPPPoE | UbuntuHelp:ADSLPPPoE | {{#if: | :}}ADSLPPPoE}}/af | • {{#if: UbuntuHelp:ADSLPPPoE|Afrikaans| [[::ADSLPPPoE/af|Afrikaans]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ADSLPPPoE | UbuntuHelp:ADSLPPPoE | {{#if: | :}}ADSLPPPoE}}/ar | • {{#if: UbuntuHelp:ADSLPPPoE|العربية| [[::ADSLPPPoE/ar|العربية]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ADSLPPPoE | UbuntuHelp:ADSLPPPoE | {{#if: | :}}ADSLPPPoE}}/az | • {{#if: UbuntuHelp:ADSLPPPoE|azərbaycanca| [[::ADSLPPPoE/az|azərbaycanca]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ADSLPPPoE | UbuntuHelp:ADSLPPPoE | {{#if: | :}}ADSLPPPoE}}/bcc | • {{#if: UbuntuHelp:ADSLPPPoE|جهلسری بلوچی| [[::ADSLPPPoE/bcc|جهلسری بلوچی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ADSLPPPoE | UbuntuHelp:ADSLPPPoE | {{#if: | :}}ADSLPPPoE}}/bg | • {{#if: UbuntuHelp:ADSLPPPoE|български| [[::ADSLPPPoE/bg|български]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ADSLPPPoE | UbuntuHelp:ADSLPPPoE | {{#if: | :}}ADSLPPPoE}}/br | • {{#if: UbuntuHelp:ADSLPPPoE|brezhoneg| [[::ADSLPPPoE/br|brezhoneg]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ADSLPPPoE | UbuntuHelp:ADSLPPPoE | {{#if: | :}}ADSLPPPoE}}/ca | • {{#if: UbuntuHelp:ADSLPPPoE|català| [[::ADSLPPPoE/ca|català]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ADSLPPPoE | UbuntuHelp:ADSLPPPoE | {{#if: | :}}ADSLPPPoE}}/cs | • {{#if: UbuntuHelp:ADSLPPPoE|čeština| [[::ADSLPPPoE/cs|čeština]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ADSLPPPoE | UbuntuHelp:ADSLPPPoE | {{#if: | :}}ADSLPPPoE}}/de | • {{#if: UbuntuHelp:ADSLPPPoE|Deutsch| [[::ADSLPPPoE/de|Deutsch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ADSLPPPoE | UbuntuHelp:ADSLPPPoE | {{#if: | :}}ADSLPPPoE}}/el | • {{#if: UbuntuHelp:ADSLPPPoE|Ελληνικά| [[::ADSLPPPoE/el|Ελληνικά]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ADSLPPPoE | UbuntuHelp:ADSLPPPoE | {{#if: | :}}ADSLPPPoE}}/es | • {{#if: UbuntuHelp:ADSLPPPoE|español| [[::ADSLPPPoE/es|español]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ADSLPPPoE | UbuntuHelp:ADSLPPPoE | {{#if: | :}}ADSLPPPoE}}/fa | • {{#if: UbuntuHelp:ADSLPPPoE|فارسی| [[::ADSLPPPoE/fa|فارسی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ADSLPPPoE | UbuntuHelp:ADSLPPPoE | {{#if: | :}}ADSLPPPoE}}/fi | • {{#if: UbuntuHelp:ADSLPPPoE|suomi| [[::ADSLPPPoE/fi|suomi]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ADSLPPPoE | UbuntuHelp:ADSLPPPoE | {{#if: | :}}ADSLPPPoE}}/fr | • {{#if: UbuntuHelp:ADSLPPPoE|français| [[::ADSLPPPoE/fr|français]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ADSLPPPoE | UbuntuHelp:ADSLPPPoE | {{#if: | :}}ADSLPPPoE}}/gu | • {{#if: UbuntuHelp:ADSLPPPoE|ગુજરાતી| [[::ADSLPPPoE/gu|ગુજરાતી]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ADSLPPPoE | UbuntuHelp:ADSLPPPoE | {{#if: | :}}ADSLPPPoE}}/he | • {{#if: UbuntuHelp:ADSLPPPoE|עברית| [[::ADSLPPPoE/he|עברית]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ADSLPPPoE | UbuntuHelp:ADSLPPPoE | {{#if: | :}}ADSLPPPoE}}/hu | • {{#if: UbuntuHelp:ADSLPPPoE|magyar| [[::ADSLPPPoE/hu|magyar]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ADSLPPPoE | UbuntuHelp:ADSLPPPoE | {{#if: | :}}ADSLPPPoE}}/id | • {{#if: UbuntuHelp:ADSLPPPoE|Bahasa Indonesia| [[::ADSLPPPoE/id|Bahasa Indonesia]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ADSLPPPoE | UbuntuHelp:ADSLPPPoE | {{#if: | :}}ADSLPPPoE}}/it | • {{#if: UbuntuHelp:ADSLPPPoE|italiano| [[::ADSLPPPoE/it|italiano]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ADSLPPPoE | UbuntuHelp:ADSLPPPoE | {{#if: | :}}ADSLPPPoE}}/ja | • {{#if: UbuntuHelp:ADSLPPPoE|日本語| [[::ADSLPPPoE/ja|日本語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ADSLPPPoE | UbuntuHelp:ADSLPPPoE | {{#if: | :}}ADSLPPPoE}}/ko | • {{#if: UbuntuHelp:ADSLPPPoE|한국어| [[::ADSLPPPoE/ko|한국어]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ADSLPPPoE | UbuntuHelp:ADSLPPPoE | {{#if: | :}}ADSLPPPoE}}/ksh | • {{#if: UbuntuHelp:ADSLPPPoE|Ripoarisch| [[::ADSLPPPoE/ksh|Ripoarisch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ADSLPPPoE | UbuntuHelp:ADSLPPPoE | {{#if: | :}}ADSLPPPoE}}/mr | • {{#if: UbuntuHelp:ADSLPPPoE|मराठी| [[::ADSLPPPoE/mr|मराठी]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ADSLPPPoE | UbuntuHelp:ADSLPPPoE | {{#if: | :}}ADSLPPPoE}}/ms | • {{#if: UbuntuHelp:ADSLPPPoE|Bahasa Melayu| [[::ADSLPPPoE/ms|Bahasa Melayu]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ADSLPPPoE | UbuntuHelp:ADSLPPPoE | {{#if: | :}}ADSLPPPoE}}/nl | • {{#if: UbuntuHelp:ADSLPPPoE|Nederlands| [[::ADSLPPPoE/nl|Nederlands]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ADSLPPPoE | UbuntuHelp:ADSLPPPoE | {{#if: | :}}ADSLPPPoE}}/no | • {{#if: UbuntuHelp:ADSLPPPoE|norsk| [[::ADSLPPPoE/no|norsk]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ADSLPPPoE | UbuntuHelp:ADSLPPPoE | {{#if: | :}}ADSLPPPoE}}/oc | • {{#if: UbuntuHelp:ADSLPPPoE|occitan| [[::ADSLPPPoE/oc|occitan]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ADSLPPPoE | UbuntuHelp:ADSLPPPoE | {{#if: | :}}ADSLPPPoE}}/pl | • {{#if: UbuntuHelp:ADSLPPPoE|polski| [[::ADSLPPPoE/pl|polski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ADSLPPPoE | UbuntuHelp:ADSLPPPoE | {{#if: | :}}ADSLPPPoE}}/pt | • {{#if: UbuntuHelp:ADSLPPPoE|português| [[::ADSLPPPoE/pt|português]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ADSLPPPoE | UbuntuHelp:ADSLPPPoE | {{#if: | :}}ADSLPPPoE}}/ro | • {{#if: UbuntuHelp:ADSLPPPoE|română| [[::ADSLPPPoE/ro|română]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ADSLPPPoE | UbuntuHelp:ADSLPPPoE | {{#if: | :}}ADSLPPPoE}}/ru | • {{#if: UbuntuHelp:ADSLPPPoE|русский| [[::ADSLPPPoE/ru|русский]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ADSLPPPoE | UbuntuHelp:ADSLPPPoE | {{#if: | :}}ADSLPPPoE}}/si | • {{#if: UbuntuHelp:ADSLPPPoE|සිංහල| [[::ADSLPPPoE/si|සිංහල]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ADSLPPPoE | UbuntuHelp:ADSLPPPoE | {{#if: | :}}ADSLPPPoE}}/sq | • {{#if: UbuntuHelp:ADSLPPPoE|shqip| [[::ADSLPPPoE/sq|shqip]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ADSLPPPoE | UbuntuHelp:ADSLPPPoE | {{#if: | :}}ADSLPPPoE}}/sr | • {{#if: UbuntuHelp:ADSLPPPoE|српски / srpski| [[::ADSLPPPoE/sr|српски / srpski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ADSLPPPoE | UbuntuHelp:ADSLPPPoE | {{#if: | :}}ADSLPPPoE}}/sv | • {{#if: UbuntuHelp:ADSLPPPoE|svenska| [[::ADSLPPPoE/sv|svenska]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ADSLPPPoE | UbuntuHelp:ADSLPPPoE | {{#if: | :}}ADSLPPPoE}}/th | • {{#if: UbuntuHelp:ADSLPPPoE|ไทย| [[::ADSLPPPoE/th|ไทย]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ADSLPPPoE | UbuntuHelp:ADSLPPPoE | {{#if: | :}}ADSLPPPoE}}/tr | • {{#if: UbuntuHelp:ADSLPPPoE|Türkçe| [[::ADSLPPPoE/tr|Türkçe]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ADSLPPPoE | UbuntuHelp:ADSLPPPoE | {{#if: | :}}ADSLPPPoE}}/vi | • {{#if: UbuntuHelp:ADSLPPPoE|Tiếng Việt| [[::ADSLPPPoE/vi|Tiếng Việt]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ADSLPPPoE | UbuntuHelp:ADSLPPPoE | {{#if: | :}}ADSLPPPoE}}/yue | • {{#if: UbuntuHelp:ADSLPPPoE|粵語| [[::ADSLPPPoE/yue|粵語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ADSLPPPoE | UbuntuHelp:ADSLPPPoE | {{#if: | :}}ADSLPPPoE}}/zh | • {{#if: UbuntuHelp:ADSLPPPoE|中文| [[::ADSLPPPoE/zh|中文]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ADSLPPPoE | UbuntuHelp:ADSLPPPoE | {{#if: | :}}ADSLPPPoE}}/zh-hans | • {{#if: UbuntuHelp:ADSLPPPoE|中文(简体)| [[::ADSLPPPoE/zh-hans|中文(简体)]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ADSLPPPoE | UbuntuHelp:ADSLPPPoE | {{#if: | :}}ADSLPPPoE}}/zh-hant | • {{#if: UbuntuHelp:ADSLPPPoE|中文(繁體)| [[::ADSLPPPoE/zh-hant|中文(繁體)]]}}|}} |
{{#ifeq:UbuntuHelp:ADSLPPPoE|:ADSLPPPoE|请不要直接编辑翻译本页,本页将定期与来源同步。}} |
{{#ifexist: :ADSLPPPoE/zh | | {{#ifexist: ADSLPPPoE/zh | | {{#ifeq: {{#titleparts:ADSLPPPoE|1|-1|}} | zh | | }} }} }} {{#ifeq: {{#titleparts:ADSLPPPoE|1|-1|}} | zh | | }}
This guide is for setting up an ADSL Internet connection using an ethernet PPPoE modem under Ubuntu 6.06 LTS (Dapper Drake) but newer versions of Ubuntu will be similar. Warning: This guide is quite old now! Newer versions of Ubuntu use Network Manager (nice GUI) to manage DSL connections.
Introduction
Although it may be very common to use a router to connect to the Internet, often it is needed to directly connect to an ADSL (frequently referred to as 'DSL') modem using PPPoE. This is useful when you have a modem that don't have internal PPPoE dial up facility or When your modem is configured for "Bridge" connection. In both these cases, You need to do the PPPoE dial-up from your machine. this documentation shows how that can be achived Of course, you will need to have subscribed to an Internet Service Provider (ISP), and that your Internet connection be installed and functional. A "DSL" light on your modem usually shows that the line is synchronized. You will need your username and password provided by your ISP for your DSL account . You must also have an Ethernet card connected to your PPPoE modem with the correct type of cable.
Configuring PPPoE with the command line
To set up the modem, we will use a terminal. To open a terminal, use the menu bar : Applications > Accessories > Terminal. You need the PPPoE package to be installed in order for the following command to work. This package is installed by default, but can be missing if the configuration has been changed. If the following command does not work, you will need to install this package (see the PPPoE package installation section). In the terminal type:
sudo pppoeconf
A text-based menu program will guide you through the next steps, which are:
- Confirm that your Ethernet card is detected.
- Enter your username(provided by your ISP).
- Enter your password(provided by your ISP).
- If you already have a PPPoE Connection configured, you will be asked if it may be modified.
- Popular options: you are asked if you want the 'noauth' and 'defaultroute' options and to remove 'nodetach' - choose "Yes".
- Use peer DNS - choose "Yes".
- Limited MSS problem - choose "Yes".
- When you are asked if you want to connect at start up, you will probably want to say yes.
- Finally you are asked if you want to establish the connection immediately.
Once you have finished these steps, your connection should be working.
Manual connection control
To start your ADSL connection on demand, in a terminal type:
pon dsl-provider
To stop your ADSL connection, in a terminal type:
poff dsl-provider
in most cases, you can just type "poff" to stop the ADSL connection and unload the module.
Problems
If your connection does not seem to work, try turning your previously configured ADSL connection on manually (see previous section). To see log, in terminal type:
plog
PPPoE package installation
To check if the PPPoE package is installed, in a terminal type:
dpkg -s pppoeconf
If it is installed you should see the output on the package where two lines show this:
Package: pppoeconf Status: install ok installed
If the package is not installed, insert your Ubuntu CD and in a terminal type:
sudo apt-get install pppoeconf
If the package cannot be found, you may have to add your Ubuntu CD to the list of software repositories. To add your CD, make sure it is inserted in your CD drive and in a terminal type:
sudo apt-cdrom add
If all else fails, you can download the pppoeconf package from http://packages.ubuntu.com/. Of course you will need a working Internet connection, and then to transfer the package via a CDR or USB stick for example. Double click on the package in GNOME to install it.
Boot issues
If you find that you have to run pppoeconf each time you boot, you can try two things:
- Edit /etc/network/interfaces as described here, so that that 'pppoe maintained' lines are before 'auto dsl-provider':
# added by pppoeconf auto eth0 iface eth0 inet manual pre-up /sbin/ifconfig eth0 up # line maintained by pppoeconf auto dsl-provider iface dsl-provider inet ppp provider dsl-provider
- Failing that, edit /etc/rc.local, and before the last line ("exit 0"), add:
ifconfig eth0 up pon dsl-provider
Error logs
If you are having problems with your connection, you may find valuable information in the system message logs. You may acces system logs either in a terminal, or with a graphical interface.
- To use the grapical log viewer, in the menu bar, go to : System > Administration > System Log. You will find the system messages in /var/log/messages.
- To use the terminal, type:
sudo dmesg