Issues configuring PPPoE with Raspberry Pi 4

Ok perhaps I wasn't clear. Here's a better illustration:

ONT -> Pi (Ethernet cable from ONT going into TP-Link UE300 adapter on the Pi) -> This is my WAN

Pi -> PC (Ethernet cable from Pis Ethernet port to PCs ethernet port) -> This is my LAN

Seems like this is the most common setup I've seen people use. Just need to compile and install the drivers to get the USB to Ethernet adapter working.

Then the next would be to get the config right. Once those are done, I should have a working Pi router :slight_smile:

So whet's the screen snapshot on luci network interfaces look like ?

???

the correct drivers for TP-Link UE300 is kmod-usb-net-rtl8152 and you don't need to compile, you just need to install that package using the method I suggested before - i.e. download the IPK on your computer, then upload it to the pi4 in the software page

1 Like

Yup, I've installed it and the adapter is recognized in ifconfig now. Just need to configure the network file for internet access. I'm still getting a PPPoE error.


Here's my config @Bobcat

Here's my file config as well

Edit: removed username and password for this post, but the credentials in the config is correct.

Dotlee,

Check https://openwrt.org/docs/guide-user/network/wan/isp-configurations?s[]=pppoe
There are several pppoe settings for different countries and their ISP.
It could be that your provider need some more settings within you WAN config, like 'option mtu 1500'. 'option macaddr XX:XX:XX:XX:XX:XX' (to clone a mac) or 'option ipv6 auto'.
These are examples, I am not using pppoe so I can't tell exactly.
Your first WAN example has also the following in config:

option ipv6 'auto'
option keepalive '5 5'

Maybe you are missing those?

DG.

1 Like

I'm managing to get internet connection from the Pi itself. However, now I can't get any internet connection from the LAN PC.

From the logs, it tells me that PPPoE connects, and I can verify by sending pings to the internet from the Pi itself. However, the problem starts here:

  1. Network device 'pppoe-wan' link is up
  2. Interface 'wan' is now up
  3. Reloading firewall due to ifup of wan (pppoe-wan)
  4. eth0: link is up
  5. br-lan: port 1(eth0) entered blocking state
  6. br-lan: port 1(eth0) entered forwarding state
  7. Network device 'eth0' link is up
  8. Bridge 'br-lan' link is up
  9. Interface 'lan' has link connectivity
  10. eth0: Link is down
  11. br-lan: port1(eth0) entered disabled state
  12. Network device 'eth0' link is down
  13. Bridge 'br-lan' has link connectivity loss
  14. Network device 'eth1' link is down
  15. Interface 'wan' has link connectivity loss

Any idea what's the issue here?

Dotlee,

With not a 'real' log it's almost impossible to see where your problem is (due to timing, where is the log from, etc.)

In your summary is stated:
(2) WAN is now up (Which eth is up?)
(4) eth0 link is up (ok)
(8) br-lan is up (ok)
(10) eth0 is down (weird, WHY?)
(14) eth1 link is down? (Where did eth1 went up before?)

Check your /etc/config/network file.
What device (old: ifname) is used for WAN?
What device (old: ifname) is used under br-lan?
My guess still (only) eth0 is used for LAN as well as WAN?

A defect cable could cause eth0 goes down (9-10) what else could cause this?
How much time is between message 9 and 10?

I've further no idea what could cause this.

DG.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.