Rozdíly

Zde můžete vidět rozdíly mezi vybranou verzí a aktuální verzí dané stránky.

Odkaz na výstup diff

Následující verze
Předchozí verze
adslpppoe [2012/07/14 15:12]
Ubuntu vytvořeno
adslpppoe [2019/02/25 18:21] (aktuální)
Řádek 1: Řádek 1:
 +====== ADSLPPPoE ======
  
 +|Návod je na smetišti! Znamená to, že je zastaralý, a může být více ke škodě než k užitku. Pokud máte zájem, můžete se ho ujmout a přepsat ho do aktuální platné podoby.|
 +
 +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.
 +
 +====== 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.
 +
 +Of course, you will need to have subscribed to an [[http://​en.wikipedia.org/​wiki/​Internet_service_provider|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:
 +
 +<​code>​
 +sudo pppoeconf
 +</​code>​
 +
 +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:
 +
 +<​code>​
 +pon dsl-provider
 +</​code>​
 +To stop your ADSL connection, in a terminal type:
 +
 +<​code>​
 +poff dsl-provider
 +</​code>​
 +====== 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:
 +
 +<​code>​
 +plog
 +</​code>​
 +===== PPPoE package installation =====
 +To check if the PPPoE package is installed, in a terminal type:
 +
 +<​code>​
 +dpkg -s pppoeconf
 +</​code>​
 +If it is installed you should see the output on the package where two lines show this:
 +
 +<​code>​
 +Package: pppoeconf
 +Status: install ok installed
 +</​code>​
 +If the package is not installed, insert your Ubuntu CD and in a terminal type:
 +
 +<​code>​
 +sudo apt-get install pppoeconf
 +</​code>​
 +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:
 +
 +<​code>​
 +sudo apt-cdrom add
 +</​code>​
 +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 [[http://​www.ubuntuforums.org/​showthread.php?​t=97135&​page=2|here]],​ so that that 'pppoe maintained'​ lines are before 'auto dsl-provider':​
 +
 +<​code>​
 +# 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
 +</​code>​
 +  * Failing that, edit /​etc/​rc.local,​ and before the last line ("exit 0"), add:
 +
 +<​code>​
 +ip link set eth0 up
 +pon dsl-provider
 +</​code>​
 +===== 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:
 +
 +<​code>​
 +sudo dmesg
 +</​code>​
  • Poslední úprava: 2019/02/25 18:21
  • (upraveno mimo DokuWiki)