Debugging PPPOE Problems
From DD-WRT Wiki
Revision as of 20:52, 28 February 2006 (edit) 84.166.179.42 (Talk) (→Uplink - Minor.) ← Previous diff |
Current revision (13:39, 30 April 2010) (edit) (undo) Glenn (Talk | contribs) (catchg) |
||
(19 intermediate revisions not shown.) | |||
Line 1: | Line 1: | ||
- | == Debugging | + | == Debugging PPPoE Problems == |
- | + | '''[[Glossary#Point-to-Point Protocol over Ethernet (PPPoE)|PPPoE]]''' is used mainly for handling connections via Digital Subscriber Lines (DSL). | |
- | + | ||
Remember: The WRT54G / WRT54GS doesn't have an integrated DSL modem, | Remember: The WRT54G / WRT54GS doesn't have an integrated DSL modem, | ||
so you need an external one. | so you need an external one. | ||
=== Cabling === | === Cabling === | ||
- | + | After connecting the WRT54G(S) router to the DSL modem | |
- | + | on the port labeled ''Internet'' make sure | |
- | on the port labeled ''Internet'' | + | |
that the ''Internet'' LED at the front panel is lit. If not, check cabling. | that the ''Internet'' LED at the front panel is lit. If not, check cabling. | ||
Reboot your DSL modem after you connected the router to it. | Reboot your DSL modem after you connected the router to it. | ||
- | === | + | === Enable Diagnostic Output === |
- | + | To debug problems regarding PPPoE | |
- | To | + | you have to login to the router to get access to a console for entering commands. |
- | + | ||
- | + | Use ''telnet'' or ''ssh'' to login to the router. | |
- | + | Then enable ''syslog'' on the shell prompt: | |
- | Use ''telnet'' or ''ssh'' to login. | + | |
- | Then | + | |
<pre> | <pre> | ||
syslogd -O $(tty) | syslogd -O $(tty) | ||
</pre> | </pre> | ||
- | This | + | This will print |
+ | <pre> | ||
+ | Jan 1 00:00:35 syslog.info syslogd started: Now DD-WRT VeryBusyBox v1.01 (2006.02.22-10:40 0000) | ||
+ | </pre> | ||
+ | or something to this effect. From now on you'll see all syslog output on the | ||
+ | login window. | ||
+ | === Uplink === | ||
+ | To check the DSL connection we use the command line version of [http://www.roaringpenguin.com/products/pppoe rp-pppoe] that | ||
+ | comes with DD-WRT. | ||
- | Kill all running | + | '''Important''': Enable the DSL connection in your WRT54G's setup otherwise the network interfaces are not set up properly for this test. |
+ | |||
+ | Kill all running PPPoE clients | ||
<pre> | <pre> | ||
kill $(ps | grep pppoe) | kill $(ps | grep pppoe) | ||
Line 37: | Line 42: | ||
<pre> | <pre> | ||
pppoe -I vlan1 -D$(tty) -A | pppoe -I vlan1 -D$(tty) -A | ||
- | + | | | | | |
- | | | + | | | -- Find Access Concentrator |
- | + | | ---------- Output Debug Messages | |
- | + | ------------------- Set Network Interface | |
</pre> | </pre> | ||
Line 61: | Line 66: | ||
* <tt>Timeout waiting for PADS packets.</tt> | * <tt>Timeout waiting for PADS packets.</tt> | ||
- | In this case, ... more help to come... have to sort out first! | + | 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/ | There is a German page where you can find more information: http://www.adsl4linux.de/howtos/ | ||
+ | |||
+ | |||
+ | [[Category:PPPOE]] |
Current revision
Contents |
[edit] 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.
[edit] Cabling
After connecting 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.
Reboot your DSL modem after you connected the router to it.
[edit] Enable Diagnostic Output
To debug problems regarding PPPoE you have to login to the router to get access to a console for entering commands.
Use telnet or ssh to login to the router. Then enable syslog on the shell prompt:
syslogd -O $(tty)
This will print
Jan 1 00:00:35 syslog.info syslogd started: Now DD-WRT VeryBusyBox v1.01 (2006.02.22-10:40 0000)
or something to this effect. From now on you'll see all syslog output on the login window.
[edit] Uplink
To check the DSL connection we use the command line version of rp-pppoe that comes with DD-WRT.
Important: Enable the DSL connection in your WRT54G's setup otherwise the network interfaces are not set up properly for this test.
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/