Debugging PPPOE Problems

From DD-WRT Wiki

(Difference between revisions)
Jump to: navigation, search
Revision as of 22:58, 15 February 2006 (edit)
84.166.197.47 (Talk)
(typos corrected, more debug messages, improved workflow.)
← Previous diff
Revision as of 23:00, 15 February 2006 (edit) (undo)
84.166.150.42 (Talk)
(rearranged a bit)
Next diff →
Line 13: Line 13:
=== Uplink === === Uplink ===
-To check the DSL connection we use the+'''Important''': Enable the DSL connection in your WRT54G's setup menues otherwise the network interfacec are not set up properly for this test.
-command line version of [http://www.roaringpenguin.com/penguin/open_source_rp-pppoe.php rp-pppoe] that+
-comes with the WRT54GS.+
-Thus you have to login to the router to get access to a console for entering +To check the DSL connection we use the command line version of [http://www.roaringpenguin.com/penguin/open_source_rp-pppoe.php rp-pppoe] that
-commands. Use ''telnet'' or ''ssh''.+comes with the WRT54GS. Thus you have to login to the router to get access to a console for entering commands. Use ''telnet'' or ''ssh''.
Then, enable ''syslog'' on the shell prompt: Then, enable ''syslog'' on the shell prompt:
Line 31: Line 29:
kill $(ps | grep pppoe) kill $(ps | grep pppoe)
</pre> </pre>
- 
-'''Important''': Enable the DSL connection in your WRT54G's setup menues otherwise there the WAN interface <tt>vlan1</tt> may not be configured. 
Line 57: Line 53:
If your uplink does not work properly or your DSL modem If your uplink does not work properly or your DSL modem
-does not work correctly, these commands may+does not work correctly, these commands may ''fail''
- ''fail'' with one of the following messages:+with one of the following messages:
* <tt>Timeout waiting for PADO packets.</tt> * <tt>Timeout waiting for PADO packets.</tt>
* <tt>Timeout waiting for PADS packets.</tt> * <tt>Timeout waiting for PADS packets.</tt>

Revision as of 23:00, 15 February 2006

Debugging PPPOE Problems

PPPOE is used mainly for handling connections via Digital Subscriber Lines (DSL). Remember: The WRT54G / WRT54GS doesn't have an integrated DSL modem, so you need an external one.

Cabling

To debug problems regarding PPPOE, connect the WRT54G(S) router to the DSL modem on the port labeled Internet. Make sure that the Internet LED at the front panel is lit. If not, check cabling.

Uplink

Important: Enable the DSL connection in your WRT54G's setup menues otherwise the network interfacec are not set up properly for this test.

To check the DSL connection we use the command line version of rp-pppoe that comes with the WRT54GS. Thus you have to login to the router to get access to a console for entering commands. Use telnet or ssh.

Then, enable syslog on the shell prompt:

syslogd -O $(tty)

This should give you at least one line of output saying that syslog is now enabled.


Kill all running PPPOE clients

kill $(ps | grep pppoe)


Now try to get the name of your DSL peer:

pppoe -I vlan1 -D$(tty) -A
       |        |       |
       |        |       +-- Find Access Concentrator
       |        +---------- Output Debug Messages
       +------------------- Set Network Interface

This should print some network packets and the name of your DSL access concentrator.

If this works out, try to initiate the discovery procedure:

pppoe -I vlan1 -D$(tty) -d

Apart from a bunch of network packets representing the dialogue between the WRT54G and the peer, the last line should display a session number and the hardware address of your peer (separated by colons).

If your uplink does not work properly or your DSL modem does not work correctly, these commands may fail with one of the following messages:

  • Timeout waiting for PADO packets.
  • Timeout waiting for PADS packets.

In this case, ... more help to come... have to sort out first!

There is a German page where you can find more information: http://www.adsl4linux.de/howtos/