Debugging PPPOE Problems

From DD-WRT Wiki

(Difference between revisions)
Jump to: navigation, search
Revision as of 23:40, 2 February 2006 (edit)
84.166.191.214 (Talk)
(no dsl modem included)
← Previous diff
Revision as of 22:58, 15 February 2006 (edit) (undo)
84.166.197.47 (Talk)
(typos corrected, more debug messages, improved workflow.)
Next diff →
Line 13: Line 13:
=== Uplink === === Uplink ===
-Now 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
 +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''. commands. Use ''telnet'' or ''ssh''.
-First, enable ''syslog'' on the shell prompt:+Then, enable ''syslog'' on the shell prompt:
<pre> <pre>
-syslogd -OP $(tty)+syslogd -O $(tty)
</pre> </pre>
This should give you at least one line of output saying that syslog is now enabled. This should give you at least one line of output saying that syslog is now enabled.
-Second, check the DSL connection. To do so we use the 
-command line version of [http://www.roaringpenguin.com/penguin/open_source_rp-pppoe.php rp-pppoe]. 
-'''Hint''': Disable the DSL connection in your WRT54G's setup menues otherwise there 
-may be more than one pppoe client running concurrently. 
-Try:+Kill all running PPPOE clients
<pre> <pre>
-pppoe -I vlan1 -A+kill $(ps | grep pppoe)
</pre> </pre>
-This should print the name of your DSL ''access concentrator''. 
-Alternatively try:+'''Important''': Enable the DSL connection in your WRT54G's setup menues otherwise there the WAN interface <tt>vlan1</tt> may not be configured.
 + 
 + 
 +Now try to get the name of your DSL peer:
 +<pre>
 +pppoe -I vlan1 -D$(tty) -A
 + | | |
 + | | +-- Find Access Concentrator
 + | +---------- Output Debug Messages
 + +------------------- Set Network Interface
 +</pre>
 + 
 +This should print some network packets and
 +the name of your DSL ''access concentrator''.
 + 
 +If this works out, try to initiate the discovery procedure:
<pre> <pre>
-pppoe -I vlan1 -d+pppoe -I vlan1 -D$(tty) -d
</pre> </pre>
 +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).
-These commands my ''fail'' with one of the following messages:+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:
* <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 22:58, 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

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)

Important: Enable the DSL connection in your WRT54G's setup menues otherwise there the WAN interface vlan1 may not be configured.


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/