marmrk
Posts: 16
Joined: Fri May 25, 2012 6:29 pm

Can't get PPPoE working

Fri May 25, 2012 6:47 pm

Hi all,

I have to connect to my ISP over ADSL + PPPoE and I have Speedtouch 780wl router in Router mode so each computer has to establish a PPPoE connection by itself.

I'm now struggling to configure PPPoE on RPI but without success.

I've managed to install ppp, pppoe and pppoeconf packages from debian repository and I created configuration for my account. But it seams that pppoe connection cannot be established.

This is pppd log:

Code: Select all

Apr 17 17:26:50 raspberrypi pppd[4497]: Plugin rp-pppoe.so loaded.
Apr 17 17:26:50 raspberrypi pppd[4500]: pppd 2.4.5 started by root, uid 0
Apr 17 17:26:50 raspberrypi pppd[4500]: Interface eth0 has MTU of 1488 -- should be at least 1500.
Apr 17 17:26:50 raspberrypi pppd[4500]: This may cause serious connection problems.
Apr 17 17:26:50 raspberrypi pppd[4500]: PPP session is 23
Apr 17 17:26:50 raspberrypi pppd[4500]: Failed to create PPPoE socket: Address family not supported by protocol
Apr 17 17:26:50 raspberrypi pppd[4500]: Sent PADT
Apr 17 17:27:20 raspberrypi pppd[4500]: Interface eth0 has MTU of 1488 -- should be at least 1500.
Apr 17 17:27:20 raspberrypi pppd[4500]: This may cause serious connection problems.
Apr 17 17:27:20 raspberrypi pppd[4500]: PPP session is 23
Apr 17 17:27:20 raspberrypi pppd[4500]: Failed to create PPPoE socket: Address family not supported by protocol
Apr 17 17:27:20 raspberrypi pppd[4500]: Sent PADT
Apr 17 17:27:50 raspberrypi pppd[4500]: Interface eth0 has MTU of 1488 -- should be at least 1500.
Apr 17 17:27:50 raspberrypi pppd[4500]: This may cause serious connection problems.
Apr 17 17:27:50 raspberrypi pppd[4500]: PPP session is 23
Apr 17 17:27:50 raspberrypi pppd[4500]: Failed to create PPPoE socket: Address family not supported by protocol
Apr 17 17:27:50 raspberrypi pppd[4500]: Sent PADT
Apr 17 17:28:20 raspberrypi pppd[4500]: Interface eth0 has MTU of 1488 -- should be at least 1500.
Apr 17 17:28:20 raspberrypi pppd[4500]: This may cause serious connection problems.
Apr 17 17:29:10 raspberrypi pppd[4500]: Timeout waiting for PADO packets
Apr 17 17:29:10 raspberrypi pppd[4500]: Unable to complete PPPoE Discovery
Apr 17 17:29:40 raspberrypi pppd[4500]: Interface eth0 has MTU of 1488 -- should be at least 1500.
Apr 17 17:29:40 raspberrypi pppd[4500]: This may cause serious connection problems.
Apr 17 17:30:26 raspberrypi pppd[4500]: Timeout waiting for PADO packets
Apr 17 17:30:26 raspberrypi pppd[4500]: Unable to complete PPPoE Discovery
Apr 17 17:30:56 raspberrypi pppd[4500]: Interface eth0 has MTU of 1488 -- should be at least 1500.
Apr 17 17:30:56 raspberrypi pppd[4500]: This may cause serious connection problems.
Apr 17 17:31:36 raspberrypi pppd[4500]: Timeout waiting for PADO packets
Apr 17 17:31:36 raspberrypi pppd[4500]: Unable to complete PPPoE Discovery
Apr 17 17:32:06 raspberrypi pppd[4500]: Interface eth0 has MTU of 1488 -- should be at least 1500.
Apr 17 17:32:06 raspberrypi pppd[4500]: This may cause serious connection problems.
Apr 17 17:32:46 raspberrypi pppd[4500]: Timeout waiting for PADO packets
Apr 17 17:32:46 raspberrypi pppd[4500]: Unable to complete PPPoE Discovery
Apr 17 17:33:16 raspberrypi pppd[4500]: Interface eth0 has MTU of 1488 -- should be at least 1500.
Apr 17 17:33:16 raspberrypi pppd[4500]: This may cause serious connection problems.
Apr 17 17:33:31 raspberrypi pppd[4500]: PPP session is 27
Apr 17 17:33:31 raspberrypi pppd[4500]: Failed to create PPPoE socket: Address family not supported by protocol
Apr 17 17:33:31 raspberrypi pppd[4500]: Sent PADT
Apr 17 17:34:01 raspberrypi pppd[4500]: Interface eth0 has MTU of 1488 -- should be at least 1500.
Apr 17 17:34:01 raspberrypi pppd[4500]: This may cause serious connection problems.
Apr 17 17:34:57 raspberrypi pppd[4500]: Timeout waiting for PADO packets
Apr 17 17:34:57 raspberrypi pppd[4500]: Unable to complete PPPoE Discovery
Apr 17 17:35:27 raspberrypi pppd[4500]: Interface eth0 has MTU of 1488 -- should be at least 1500.
Apr 17 17:35:27 raspberrypi pppd[4500]: This may cause serious connection problems.
Apr 17 17:36:12 raspberrypi pppd[4500]: Timeout waiting for PADO packets
Apr 17 17:36:12 raspberrypi pppd[4500]: Unable to complete PPPoE Discovery
Apr 17 17:36:12 raspberrypi pppd[4500]: Exit.
I'm using Debian image from RPi download pages. I'm stuck here, so any help is appreciated.

User avatar
jbeale
Posts: 4003
Joined: Tue Nov 22, 2011 11:51 pm

Re: Can't get PPPoE working

Sat May 26, 2012 12:37 am

You may be the first person to try setting up PPPoE on the R-Pi, at least I haven't seen anything on it before. I'm not a networking expert, but is there a reason you can't have the router do the PPPoE connection on the ADSL side by itself, and then appear as a normal DHCP server to your LAN?

marmrk
Posts: 16
Joined: Fri May 25, 2012 6:29 pm

Re: Can't get PPPoE working

Sat May 26, 2012 8:13 am

I really thought that setting PPPoE on RPi will be trivial. I can't establish PPPoE connection on router since it's locked in router mode which does not allow setting PPPoE connection. I could switch to bridge mode, but I don't have router admin password :(

dms05
Posts: 6
Joined: Mon Jan 16, 2012 12:12 pm

Re: Can't get PPPoE working

Sat May 26, 2012 8:31 am

I've had similar experiences with Linux in the distant past. My solution was to use a very handy 'free' commercial offering from Roaring Penguin. You can find it at http://www.roaringpenguin.com/products/pppoe It worked well for me!

marmrk
Posts: 16
Joined: Fri May 25, 2012 6:29 pm

Re: Can't get PPPoE working

Sat May 26, 2012 8:51 am

dms05 wrote:I've had similar experiences with Linux in the distant past. My solution was to use a very handy 'free' commercial offering from Roaring Penguin. You can find it at http://www.roaringpenguin.com/products/pppoe It worked well for me!
Thanks, I will try it.

I'm already using this pppoeconf, pppoe and ppp on my laptop with Ubuntu installed and I did not have any problems.

Floyd
Posts: 2
Joined: Sun May 13, 2012 4:54 am

Re: Can't get PPPoE working

Sat May 26, 2012 10:12 am

Is PPPoE support enabled and compiled into the kernel or pppoe module loaded?

marmrk
Posts: 16
Joined: Fri May 25, 2012 6:29 pm

Re: Can't get PPPoE working

Sat May 26, 2012 10:34 am

Floyd wrote:Is PPPoE support enabled and compiled into the kernel or pppoe module loaded?
I'm not sure, I've just used the Debian distribution published on Raspberrypi web site. Can you tell me how to check this?

Floyd
Posts: 2
Joined: Sun May 13, 2012 4:54 am

Re: Can't get PPPoE working

Sat May 26, 2012 12:34 pm

I don't have a Raspberry Pi yet so I just can guess.

Do a 'lsmod' first to check if the pppoe module is loaded. Then try to load the module with 'modprobe pppoe'. If the module isn't available you would get something like 'Module pppoe not found'.
If there is a file '/proc/config.gz' or '/boot/config-*' you could check if the symbol 'CONFIG_PPPOE' is set to 'y' (compiled into the kernel) or 'm' (loadable module).

I just downloaded the Debian image and it looks like there's no pppoe enabled in the kernel. Seems that you have to compile your own.

User avatar
rurwin
Forum Moderator
Forum Moderator
Posts: 4257
Joined: Mon Jan 09, 2012 3:16 pm

Re: Can't get PPPoE working

Sat May 26, 2012 12:45 pm

marmrk wrote:Hi all,

Code: Select all

Apr 17 17:26:50 raspberrypi pppd[4500]: Interface eth0 has MTU of 1488 -- should be at least 1500.
Apr 17 17:26:50 raspberrypi pppd[4500]: This may cause serious connection problems.
You can set the MTU of /dev/eth0 by using the ifconfig command.

marmrk
Posts: 16
Joined: Fri May 25, 2012 6:29 pm

Re: Can't get PPPoE working

Sat May 26, 2012 12:45 pm

dms05 wrote:I've had similar experiences with Linux in the distant past. My solution was to use a very handy 'free' commercial offering from Roaring Penguin. You can find it at http://www.roaringpenguin.com/products/pppoe It worked well for me!
UPDATE:

I've installed pppoe conf from Roaring Penguin and it seems that pppoe connection is now established:

Code: Select all

Apr 17 17:23:14 raspberrypi pppd[935]: pppd 2.4.5 started by root, uid 0
Apr 17 17:23:14 raspberrypi pppd[935]: Using interface ppp0
Apr 17 17:23:14 raspberrypi pppd[935]: Connect: ppp0 <--> /dev/pts/1
Apr 17 17:23:15 raspberrypi pppd[935]: PAP authentication succeeded
Apr 17 17:23:15 raspberrypi pppd[935]: kernel does not support PPP filtering
Apr 17 17:23:16 raspberrypi pppd[935]: not replacing existing default route via xxx.xxx.xxx.xxx
Apr 17 17:23:16 raspberrypi pppd[935]: local  IP address xxx.xxx.xxx.xxx
Apr 17 17:23:16 raspberrypi pppd[935]: remote IP address xxx.xxx.xxx.xxx
Apr 17 17:23:16 raspberrypi pppd[935]: primary   DNS address xxx.xxx.xxx.xxx
Apr 17 17:23:16 raspberrypi pppd[935]: secondary DNS address xxx.xxx.xxx.xxx
But RPi is not connected to internet. ping http://www.google.com does not resolve ip address, and ping 74.125.239.20 says:

Code: Select all

PING 74.125.239.20 (74.125.239.20) 56(84) bytes of data.
From xxx.xxx.xxx.xxx icmp_seq=1 Destination Host Unreachable
From xxx.xxx.xxx.xxx icmp_seq=2 Destination Host Unreachable

marmrk
Posts: 16
Joined: Fri May 25, 2012 6:29 pm

Re: Can't get PPPoE working

Sat May 26, 2012 12:47 pm

rurwin wrote:
marmrk wrote:Hi all,

Code: Select all

Apr 17 17:26:50 raspberrypi pppd[4500]: Interface eth0 has MTU of 1488 -- should be at least 1500.
Apr 17 17:26:50 raspberrypi pppd[4500]: This may cause serious connection problems.
You can set the MTU of /dev/eth0 by using the ifconfig command.
Thanks, this removes the error message but the connectivity problem still resides.

marmrk
Posts: 16
Joined: Fri May 25, 2012 6:29 pm

Re: Can't get PPPoE working

Sat May 26, 2012 11:21 pm

Floyd wrote:I don't have a Raspberry Pi yet so I just can guess.

Do a 'lsmod' first to check if the pppoe module is loaded. Then try to load the module with 'modprobe pppoe'. If the module isn't available you would get something like 'Module pppoe not found'.
If there is a file '/proc/config.gz' or '/boot/config-*' you could check if the symbol 'CONFIG_PPPOE' is set to 'y' (compiled into the kernel) or 'm' (loadable module).

I just downloaded the Debian image and it looks like there's no pppoe enabled in the kernel. Seems that you have to compile your own.
Yes, I will try to compile kernel with CONFIG_PPPOE and CONFIG_PPP_FILTER options set. I hope it will help.

marmrk
Posts: 16
Joined: Fri May 25, 2012 6:29 pm

Re: Can't get PPPoE working

Sun May 27, 2012 9:57 am

marmrk wrote:
Floyd wrote:I don't have a Raspberry Pi yet so I just can guess.

Do a 'lsmod' first to check if the pppoe module is loaded. Then try to load the module with 'modprobe pppoe'. If the module isn't available you would get something like 'Module pppoe not found'.
If there is a file '/proc/config.gz' or '/boot/config-*' you could check if the symbol 'CONFIG_PPPOE' is set to 'y' (compiled into the kernel) or 'm' (loadable module).

I just downloaded the Debian image and it looks like there's no pppoe enabled in the kernel. Seems that you have to compile your own.
Yes, I will try to compile kernel with CONFIG_PPPOE and CONFIG_PPP_FILTER options set. I hope it will help.
I compiled kernel with PPPOE module and PPP filter enabled. I successfully loaded the module with modprobe pppoe.

But still I don't have success with configuring connection.

This is ifconfig pppoe output:

Code: Select all

ppp0      Link encap:Point-to-Point Protocol  
          inet addr:31.147.126.58  P-t-P:193.198.190.248  Mask:255.255.255.255
          UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1492  Metric:1
          RX packets:36 errors:0 dropped:0 overruns:0 frame:0
          TX packets:4 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:3 
          RX bytes:2780 (2.7 KiB)  TX bytes:61 (61.0 B)
This is syslog output:

Code: Select all

Apr 17 21:25:33 raspberrypi pppd[1345]: pppd 2.4.5 started by root, uid 0
Apr 17 21:25:33 raspberrypi pppd[1345]: Using interface ppp0
Apr 17 21:25:33 raspberrypi pppd[1345]: Connect: ppp0 <--> /dev/pts/1
Apr 17 21:25:33 raspberrypi ifplugd(ppp0)[1361]: ifplugd 0.28 initializing.
Apr 17 21:25:33 raspberrypi ifplugd(ppp0)[1361]: Using interface ppp0/00:00:00:00:00:00
Apr 17 21:25:33 raspberrypi ifplugd(ppp0)[1361]: Using detection mode: IFF_RUNNING
Apr 17 21:25:33 raspberrypi ifplugd(ppp0)[1361]: Initialization complete, link beat detected.
Apr 17 21:25:33 raspberrypi pppoe[1350]: PADS: Service-Name: ''
Apr 17 21:25:33 raspberrypi pppoe[1350]: PPP session is 12 (0xc)
Apr 17 21:25:33 raspberrypi ifplugd(ppp0)[1361]: Executing '/etc/ifplugd/ifplugd.action ppp0 up'.
Apr 17 21:25:33 raspberrypi ifplugd(ppp0)[1361]: client: Ignoring unknown interface ppp0=ppp0.
Apr 17 21:25:33 raspberrypi ifplugd(ppp0)[1361]: Program executed successfully.
Apr 17 21:25:34 raspberrypi pppd[1345]: PAP authentication succeeded
Apr 17 21:25:34 raspberrypi pppd[1345]: not replacing existing default route via 192.168.5.1
Apr 17 21:25:34 raspberrypi pppd[1345]: local  IP address 31.147.126.58
Apr 17 21:25:34 raspberrypi pppd[1345]: remote IP address 193.198.190.248
Apr 17 21:25:34 raspberrypi pppd[1345]: primary   DNS address 193.198.184.130
Apr 17 21:25:34 raspberrypi pppd[1345]: secondary DNS address 193.198.184.140
Apr 17 21:26:33 raspberrypi ntpd[743]: Listen normally on 5 ppp0 31.147.126.58 UDP 123

marmrk
Posts: 16
Joined: Fri May 25, 2012 6:29 pm

Re: Can't get PPPoE working

Sun May 27, 2012 10:29 am

I wanted to report that I managed to establish internet connection with PPPoE.

After the kernel with appropriate PPPoE modules was installed, I reinstalled the pppoeconf and deleted previous configuration from /etc/ppp/peers/ directory. Then I followed the setup instructions from http://wiki.debian.org/PPPoE and I can report that it worked!

seymounp
Posts: 1
Joined: Wed Jun 13, 2012 11:42 am

BT ADSL internet connection

Wed Jun 13, 2012 11:55 am

[quote

Hi, i have BT ADSL internet connection with AccessRunner PCI board on my PC. Will BT ADSL work with RaspPi?

Thanks

igs
Posts: 1
Joined: Thu Jul 12, 2012 6:41 pm

Re: Can't get PPPoE working

Thu Jul 12, 2012 7:03 pm

marmrk wrote:I wanted to report that I managed to establish internet connection with PPPoE.

After the kernel with appropriate PPPoE modules was installed, I reinstalled the pppoeconf and deleted previous configuration from /etc/ppp/peers/ directory. Then I followed the setup instructions from http://wiki.debian.org/PPPoE and I can report that it worked!
Hello mamrk!
I was wondering about the gape to connect RPi to ADSL. May be I understand Eben and the team: first task "learn programming the RPi" !
But seems You managed a bridge?
Could You please give a detailed list step by step of the procedure?
Yes, it is in the thread, ok!
But I think it would be a great help for the undeserving poor as Shaw lets Doolittle explain against Higgins and Pickering.
Now please excuse detour!
Greetings from Hamburg!
igs

Perl
Posts: 4
Joined: Wed Jun 06, 2012 2:55 pm

Re: Can't get PPPoE working

Sat Jul 21, 2012 3:28 am

Using wvdial I get these errors in /var/log/messages

Jul 21 02:58:32 raspberrypi pppd[2672]: pppd 2.4.5 started by root, uid 0
Jul 21 02:58:32 raspberrypi pppd[2672]: Using interface ppp0
Jul 21 02:58:32 raspberrypi pppd[2672]: Connect: ppp0 <--> /dev/ttyUSB0
Jul 21 02:58:32 raspberrypi pppd[2672]: Remote message: Welcome!
Jul 21 02:58:33 raspberrypi pppd[2672]: PAP authentication succeeded
Jul 21 02:58:33 raspberrypi pppd[2672]: kernel does not support PPP filtering
Jul 21 02:58:48 raspberrypi pppd[2672]: Terminating on signal 15

I'm using the latest distribution.
Linux raspberrypi 3.1.9+ #171 PREEMPT Tue Jul 17 01:08:22 BST 2012 armv6l GNU/Linux

I tried everything. The rasberian kernel is missing a key piece here, preventing 3G connectivity.

cyanarnofsky
Posts: 70
Joined: Tue Jul 31, 2012 11:33 pm

Re: Can't get PPPoE working

Fri Jun 20, 2014 6:25 pm

I am having similar issue. Wvdial and PPPoE. I dial up my 3G modem, connects fine. PPP grabs correct static IP from ISP. I can even ping the device and ssh into it through the modem but once inside the Raspi I can't ping anything external. :/


EDIT: wasnt outa my VPN...doh
Last edited by cyanarnofsky on Wed Jul 02, 2014 5:23 pm, edited 1 time in total.

Jakob Staudinger
Posts: 13
Joined: Tue Nov 26, 2013 3:20 pm

Re: Can't get PPPoE working

Tue Jun 24, 2014 9:41 pm

marmrk wrote:I wanted to report that I managed to establish internet connection with PPPoE.

After the kernel with appropriate PPPoE modules was installed, I reinstalled the pppoeconf and deleted previous configuration from /etc/ppp/peers/ directory. Then I followed the setup instructions from http://wiki.debian.org/PPPoE and I can report that it worked!
Thanks, that helped me, too.

The key here is to purge /etc/ppp/peers/

User avatar
Chupo_cro
Posts: 54
Joined: Mon Dec 14, 2015 8:45 pm
Location: Hrvatska

Re: Can't get PPPoE working

Sat Dec 10, 2016 5:18 am

marmrk wrote:I can't establish PPPoE connection on router since it's locked in router mode which does not allow setting PPPoE connection. I could switch to bridge mode, but I don't have router admin password :(
It is in fact the other way round. When ADSL adapter is in router mode then it can establish the connection by itself and after establishing the connection it can run DHCP. But when the ADSL adapter is in bridge (modem) mode, then you have to establish the connection by PPPoE (e.g. dial-up on Windows). So, your ADSL adapter is not in router mode but rather in bridge mode.

While you probably could ask your ISP to switch your ADSL adapter from bridge to router mode, there are many advantages of bridge mode over router mode so I would'n want to ask for that change. In fact, I called my ISP to upload the firmware into my ADSL adapter to switch it from router mode to bridge mode (my PC it is always on anyway so other devices can always access internet).

You said: '...so each computer has to establish a PPPoE connection by itself.' It doesn't have to. For example, I have one computer which establishes the connection and there is Internet Connection Sharing enabled on this computer so all other computers can access internet in the same way as if ADSL adapter would be in router mode. The only thing I have to set up for other computers is gateway and DNS server, which is an IP address of the computer which establishes the connection.

In case your computer is not always on you can simply plug in another ADSL adapter in router mode into your ADSL adapter which is in bridge mode - then this second router will be establishing the connection when your computer is turned off.
Chupo_cro

Return to “Troubleshooting”