[RP-PPPoE] pppoe:read (asyncReadFromPPP):: Input/output error
Jolly Shah
jolly0209 at gmail.com
Fri Jul 30 02:36:28 EDT 2010
Thanks for the reply Mike.
Below are the observations:
-> Yes ath0 is up and running
-> It has write access to pid file /etc/ppp/pppoe.conf-pppoe.pid.pppoe
-> /usr/sbin/pppoe -h gives help output
-> command "/usr/sbin/pppd pty 'pppoe -I ath0' noauth user test
password YOURPASSWORDHERE debug" does not give any error.
-> pppoe modules are built in the kernel. So I cant see them in lsmod.
But they are present in the kernel otherwise it gives error saying
kernel support is missing for pppoe.
I have attached the full debug log of pppoe-start command. It gives
"pppoe: read (asyncReadFromPPP): Session 7: Input/output error" after
session confirmation request.
On Thu, Jul 29, 2010 at 8:33 PM, Mike <mike-rppppoe at tiedyenetworks.com> wrote:
> Jolly Shah wrote:
>>
>> Hello All,
>>
>>
>> I am runnning rppppoe client with pppd daemon from my router. It
>> always gives below error either after PADR request or PADS request.
>> "pppoe: read (asyncReadFromPPP): Session 27: Input/output error"
>>
>> below is excerpt from the debug log:
>>
>>
>> ********************************************************************************************************************************
>>
>> * The following section shows the pppd command we will invoke
>> pppd invocation
>> /usr/sbin/pppd pty '/usr/sbin/pppoe -p
>> /etc/ppp/pppoe.conf-pppoe.pid.pppoe -I ath0 -T 80 -U -m 1412 '
>> noipdefault noauth default-asyncmap defaultroute hide-password
>> nodetach mtu 1492 mru 1492 noaccomp nodeflate nopcomp novj novjccomp
>> user test lcp-echo-interval 20 lcp-echo-failure 3 debug
>> ---------------------------------------------
>> Created /dev/ppp device node
>> Couldn't attach tty to PPP unit 0: Invalid argument
>>
>
> Im probabbly going to be wrong, but lets check a few things:
>
> ath0 is UP
> you have write access to /etc/ppp/pppoe.com-pppoe.pid.pppoe (since you're
> writing your pid there)
> the pppoe binary is in /usr/sbin and you can run /usr/sbin/pppoe -h and get
> the help text
>
> next:
>
> /usr/sbin/pppd pty 'pppoe -I ath0' noauth user test password
> YOURPASSWORDHERE debug
>
> Do you still get the error?
>
> Lastly, just for giggles, you do have the modules loaded, right?
>
> modprobe pppoe
>
> and if you
>
> lsmod | grep ppp
>
> what do you see?
>
> Mike-
>
>
>
>
>
>> ---------------------------------------------
>> * The following section is an extract from your log.
>> * Look for error messages from pppd, such as
>> * a lack of kernel support for PPP, authentication failure
>> * etc.
>> Can't find messages file (looked for /var/{log,adm}/messages
>> Sat Jan 1 00:00:28 UTC 2000
>> ---------------------------------------------
>> * The following section is a dump of the packets
>> * sent and received by rp-pppoe. If you don't see
>> * any output, it's an Ethernet driver problem. If you only
>> * see three PADI packets and nothing else, check your cables
>> * and modem. Make sure the modem lights flash when you try
>> * to connect. Check that your Ethernet card is in
>> * half-duplex, 10Mb/s mode. If all else fails,
>> * try using pppoe-sniff.
>> rp-pppoe debugging dump
>> rp-pppoe-3.10
>> 00:00:28.035 SENT PPPoE Discovery (8863) PADI sess-id 0 length 12
>> SourceAddr 00:03:7f:12:06:a3 DestAddr ff:ff:ff:ff:ff:ff
>> 01 01 00 00 01 03 00 04 00 00 00 e8 ............
>>
>> 00:00:28.057 RCVD PPPoE Discovery (8863) PADO sess-id 0 length 49
>> SourceAddr 08:00:46:78:07:a6 DestAddr 00:03:7f:12:06:a3
>> 01 01 00 00 01 02 00 0b 52 35 30 35 2d 47 4f 4c ........R505-GOL
>> 44 45 4e 01 03 00 04 00 00 00 e8 01 04 00 12 52 DEN............R
>> 53 50 45 00 03 7f 12 06 a3 50 66 92 8e da 2f cb SPE......Pf.../.
>> 01 .
>>
>> 00:00:28.058 SENT PPPoE Discovery (8863) PADR sess-id 0 length 34
>> SourceAddr 00:03:7f:12:06:a3 DestAddr 08:00:46:78:07:a6
>> 01 01 00 00 01 03 00 04 00 00 00 e8 01 04 00 12 ................
>> 52 53 50 45 00 03 7f 12 06 a3 50 66 92 8e da 2f RSPE......Pf.../
>> cb 01 ..
>>
>> pppoe: read (asyncReadFromPPP): Session 27: Input/output error
>>
>>
>> ********************************************************************************************************************************
>>
>> Any idea what can be the issue?
>> _______________________________________________
>> RP-PPPoE mailing list
>> RP-PPPoE at lists.roaringpenguin.com
>> http://lists.roaringpenguin.com/cgi-bin/mailman/listinfo/rp-pppoe
>>
>
> _______________________________________________
> RP-PPPoE mailing list
> RP-PPPoE at lists.roaringpenguin.com
> http://lists.roaringpenguin.com/cgi-bin/mailman/listinfo/rp-pppoe
>
--
Jolly Shah
-------------- next part --------------
~ # cat /tmp/pppoe-debug-909/pppoe-debug.txt
---------------------------------------------
* The following section contains information about your system
Sat Jan 1 00:08:26 UTC 2000
Output of uname -a
Linux (none) 2.6.15--LSDK-7.3.0.423 #2 Fri Jul 30 10:23:24 IST 2010 mips unknown
---------------------------------------------
* The following section contains information about your network
* interfaces. The one you chose for PPPoE should contain the words:
* 'UP' and 'RUNNING'. If it does not, you probably have an Ethernet
* driver problem.
Output of ifconfig -a
ath0 Link encap:Ethernet HWaddr 00:03:7F:12:06:A3
inet addr:192.168.40.152 Bcast:192.168.40.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:162 errors:0 dropped:0 overruns:0 frame:0
TX packets:33 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:18114 (17.6 KiB) TX bytes:9390 (9.1 KiB)
eth0 Link encap:Ethernet HWaddr 00:03:7F:FF:FF:FF
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
eth1 Link encap:Ethernet HWaddr 00:03:7F:FF:FF:FE
inet addr:192.168.1.1 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
lo Link encap:Local Loopback
LOOPBACK MTU:16436 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
teql0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
NOARP MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
wifi0 Link encap:Ethernet HWaddr 00:03:7F:12:06:A3
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:18 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:511
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Interrupt:48 Memory:b0000000-b0010000
---------------------------------------------
* The following section contains information about kernel modules
* If the module for your Ethernet card is 'tulip', you might
* want to look for an updated version at http://www.scyld.com
Output of lsmod
Module Size Used by Tainted: P
wlan_scan_sta 18992 1 - Live 0xc0134000
ath_pktlog 17440 0 - Live 0xc00e6000
wlan_me 12480 0 - Live 0xc00ec000
wlan_acl 5536 1 - Live 0xc00d4000
wlan_wep 7168 0 - Live 0xc00c9000
wlan_tkip 14752 0 - Live 0xc00dd000
wlan_ccmp 10016 0 - Live 0xc00e2000
wlan_xauth 1568 0 - Live 0xc00d2000
ath_pci 66496 0 - Live 0xc00f5000
ath_dev 134896 2 ath_pktlog,ath_pci, Live 0xc010a000
ath_rate_atheros 51248 2 ath_pktlog,ath_dev, Live 0xc0064000
wlan 291552 11 wlan_scan_sta,ath_pktlog,wlan_me,wlan_acl,wlan_wep,wlan_tkip,wlan_ccmp,wlan_xauth,ath_pci,ath_dev, Live 0xc0080000
ath_hal 350048 4 ath_pktlog,ath_pci,ath_dev, Live 0xc0145000
ag7240_mod 38160 0 - Live 0xc0072000
---------------------------------------------
* The following section lists your routing table.
* If you have an entry which starts with '0.0.0.0', you probably
* have defined a default route and gateway, and pppd will
* not create a default route using your ISP. Try getting
* rid of this route.
Output of netstat -n -r
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1
192.168.40.0 0.0.0.0 255.255.255.0 U 0 0 0 ath0
---------------------------------------------
Contents of /etc/resolv.conf
* The following section lists DNS setup.
* If you can browse by IP address, but not name, suspect
* a DNS problem.
# MADE-BY-RP-PPPOE
nameserver 192.168.40.1
---------------------------------------------
* The following section lists /etc/ppp/options.
* You should have NOTHING in that file.
Contents of /etc/ppp/options
lock
---------------------------------------------
* The following section identifies your Ethernet interface
* and user name. Some ISP's need 'username'; others
* need 'username at isp.com'. Try both
ETH=ath0; USER=test
---------------------------------------------
* The following section shows the pppd command we will invoke
pppd invocation
/usr/sbin/pppd pty '/usr/sbin/pppoe -p /etc/ppp/pppoe.conf-pppoe.pid.pppoe -I ath0 -T 80 -U -m 1412 ' noipdefault noauth default-asyncmap defaultroute hide-password nodetach mtu 1492 mru 1492 noaccomp nodeflate nopcomp novj novjccomp user test lcp-echo-interval 20 lcp-echo-failure 3 debug
---------------------------------------------
Couldn't attach tty to PPP unit 0: Invalid argument
---------------------------------------------
* The following section is an extract from your log.
* Look for error messages from pppd, such as
* a lack of kernel support for PPP, authentication failure
* etc.
pppoe: read (asyncReadFromPPP): Session 7: Input/output error
Can't find messages file (looked for /var/{log,adm}/messages
Sat Jan 1 00:08:28 UTC 2000
---------------------------------------------
* The following section is a dump of the packets
* sent and received by rp-pppoe. If you don't see
* any output, it's an Ethernet driver problem. If you only
* see three PADI packets and nothing else, check your cables
* and modem. Make sure the modem lights flash when you try
* to connect. Check that your Ethernet card is in
* half-duplex, 10Mb/s mode. If all else fails,
* try using pppoe-sniff.
rp-pppoe debugging dump
rp-pppoe-3.10
00:08:28.754 SENT PPPoE Discovery (8863) PADI sess-id 0 length 12
SourceAddr 00:03:7f:12:06:a3 DestAddr ff:ff:ff:ff:ff:ff
01 01 00 00 01 03 00 04 00 00 03 f4 ............
00:08:28.779 RCVD PPPoE Discovery (8863) PADO sess-id 0 length 49
SourceAddr 08:00:46:78:07:a6 DestAddr 00:03:7f:12:06:a3
01 01 00 00 01 02 00 0b 52 35 30 35 2d 47 4f 4c ........R505-GOL
44 45 4e 01 03 00 04 00 00 03 f4 01 04 00 12 52 DEN............R
53 50 45 00 03 7f 12 06 a3 40 c5 69 b8 82 30 cb SPE...... at .i..0.
01 .
00:08:28.780 SENT PPPoE Discovery (8863) PADR sess-id 0 length 34
SourceAddr 00:03:7f:12:06:a3 DestAddr 08:00:46:78:07:a6
01 01 00 00 01 03 00 04 00 00 03 f4 01 04 00 12 ................
52 53 50 45 00 03 7f 12 06 a3 40 c5 69 b8 82 30 RSPE...... at .i..0
cb 01 ..
00:08:28.883 RCVD PPPoE Discovery (8863) PADS sess-id 7 length 12
SourceAddr 08:00:46:78:07:a6 DestAddr 00:03:7f:12:06:a3
01 01 00 00 01 03 00 04 00 00 03 f4 ............
00:08:28.885 SENT PPPoE Discovery (8863) PADT sess-id 7 length 82
SourceAddr 00:03:7f:12:06:a3 DestAddr 08:00:46:78:07:a6
01 03 00 04 00 00 03 f4 02 03 00 30 52 50 2d 50 ...........0RP-P
50 50 6f 45 3a 20 53 79 73 74 65 6d 20 63 61 6c PPoE: System cal
6c 20 65 72 72 6f 72 3a 20 42 61 64 20 66 69 6c l error: Bad fil
65 20 64 65 73 63 72 69 70 74 6f 72 01 04 00 12 e descriptor....
52 53 50 45 00 03 7f 12 06 a3 40 c5 69 b8 82 30 RSPE...... at .i..0
cb 01 ..
~ #
More information about the RP-PPPoE
mailing list