How to configure an adsl connection given ISP router config

I have been trying to configure an openwrt router with a DSL interface to no avail.
The model in question is a BT Home Hub 5.0 Type A

The ISP modem/router is a Huawei HG532s. Here are the settings it as:

In OpenWRT there was already a dsl interface with the flashed image. I set the username and password, and MTU to 1442 as well as VPI/VCI values in the AMT interface. The interface seems to synchronize successfully with the ISP, here is what I see in the status page of the Home Hub

It seems similar to the status I see on the Huawei device.
However, when I check the logs, it seems PPPoE has some problems. And it keeps looping with the following error:

Mon Aug 14 14:20:32 2023 daemon.notice netifd: Interface 'wan' is enabled
Mon Aug 14 14:20:32 2023 daemon.notice netifd: Interface 'wan' is setting up now
Mon Aug 14 14:20:32 2023 daemon.err insmod: module is already loaded - slhc
Mon Aug 14 14:20:32 2023 daemon.err insmod: module is already loaded - ppp_generic
Mon Aug 14 14:20:32 2023 daemon.err insmod: module is already loaded - pppox
Mon Aug 14 14:20:32 2023 daemon.err insmod: module is already loaded - pppoe
Mon Aug 14 14:20:32 2023 daemon.info pppd[10803]: Plugin pppoe.so loaded.
Mon Aug 14 14:20:32 2023 daemon.info pppd[10803]: PPPoE plugin from pppd 2.4.9
Mon Aug 14 14:20:33 2023 daemon.notice pppd[10803]: pppd 2.4.9 started by root, uid 0
Mon Aug 14 14:20:48 2023 daemon.warn pppd[10803]: Timeout waiting for PADO packets
Mon Aug 14 14:20:48 2023 daemon.err pppd[10803]: Unable to complete PPPoE Discovery
Mon Aug 14 14:20:48 2023 daemon.info pppd[10803]: Exit.
Mon Aug 14 14:20:48 2023 daemon.notice netifd: Interface 'wan' is now down
Mon Aug 14 14:20:48 2023 daemon.notice netifd: Interface 'wan' is disabled

Not sure what I am doing wrong here, changing the username and password to wrong values doesn't seem to affect the outcome so I guess it is something that happens before the authentication with the ISP.
I am suspecting that VLAN config on the HUAWEI device, I have no idea what it is and how I can replicate it on OpenWRT. Any help would be greatly appreciated. Also I couldn't find the terms NAPT and UBR without PCR anywhere in OpenWRT.

1 Like

Yes, set the wan Device to dsl0.210. This will tag the pppoe packets with VLAN number 210 before passing them to the modem. To configure this with the GUI, scroll all the way down the list of devices then type the new name in the custom box at the bottom.

1 Like

I set the device for wan interface as follows in /etc/config/network

config interface 'wan'
        option device 'dsl0.210'
        option proto 'pppoe'
        option username '*********'
        option password '**********'
        option ipv6 '0'
        option mtu '1442'

I set option device 'dsl0.210' as shown above. In the interface page I briefly see an error
"Error: Unknown error (AUTH_TOPEER_FAILED)" and then it displays "connection failed"

In the logs:

* Mon Aug 14 15:10:46 2023 daemon.notice netifd: Interface 'wan' is enabled
* Mon Aug 14 15:10:46 2023 daemon.notice netifd: Interface 'wan' is setting up now
* Mon Aug 14 15:10:46 2023 daemon.err insmod: module is already loaded - slhc
* Mon Aug 14 15:10:46 2023 daemon.err insmod: module is already loaded - ppp_generic
* Mon Aug 14 15:10:46 2023 daemon.err insmod: module is already loaded - pppox
* Mon Aug 14 15:10:46 2023 daemon.err insmod: module is already loaded - pppoe
* Mon Aug 14 15:10:46 2023 daemon.info pppd[31242]: Plugin pppoe.so loaded.
* Mon Aug 14 15:10:46 2023 daemon.info pppd[31242]: PPPoE plugin from pppd 2.4.9
* Mon Aug 14 15:10:47 2023 daemon.notice pppd[31242]: pppd 2.4.9 started by root, uid 0
* Mon Aug 14 15:10:47 2023 daemon.info pppd[31242]: PPP session is 26428
* Mon Aug 14 15:10:47 2023 daemon.warn pppd[31242]: Connected to 00:00:5e:00:01:0b via interface dsl0.210
* Mon Aug 14 15:10:47 2023 kern.info kernel: [ 4616.338819] pppoe-wan: renamed from ppp0
* Mon Aug 14 15:10:47 2023 daemon.info pppd[31242]: Renamed interface ppp0 to pppoe-wan
* Mon Aug 14 15:10:47 2023 daemon.info pppd[31242]: Using interface pppoe-wan
* Mon Aug 14 15:10:47 2023 daemon.notice pppd[31242]: Connect: pppoe-wan <--> dsl0.210
* Mon Aug 14 15:10:50 2023 daemon.info pppd[31242]: CHAP authentication failed: Authentication fail
* Mon Aug 14 15:10:50 2023 daemon.err pppd[31242]: CHAP authentication failed
* Mon Aug 14 15:10:50 2023 daemon.notice pppd[31242]: Modem hangup
* Mon Aug 14 15:10:50 2023 daemon.notice pppd[31242]: Connection terminated.
* Mon Aug 14 15:10:50 2023 daemon.info pppd[31242]: Exit.

I recovered the password by setting the browser to display hidden characters on the Huawei router page. Could there be any other reasons the ISP would fail the authentication? like MAC Address?

Are you sure the password you see is actually the password and not some placeholder shown in the web ui?

I realized i forgot the @ispdomain.xxx for the username. Now it fails but with the error "Invalid password"

I guess I have to call the ISP now

Yes indeed you were right! I called the ISP and the password was not the same as the one shown in the web UI!
All works now, thanks for the help everyone!

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