PPPoE Config for D-Link DIR-3060

Using a newly acquired D-Link DIR-3060 to connect to Internode.on.net NBN FTC modem via PPPoE, and having no luck.

The router: https://openwrt.org/toh/d-link/dir-3060_a1

PPoE configuration parameters from old router:
VLAN ID: Enable
VLAN ID (1-4094): 2
Internet Connection Type: PPPoE
Username: redacted@internode.on.net
Password: redacted
Confirm Password:
Connection Mode: Auto
Authentication Type: Auto
IPv4: Enable
IPv6: Disable
Service Name:
Access Concentrator Name:
MTU Size: 1480
NAT: Enable
Full-cone NAT: Disable
IGMP Proxy: Enable
Use the IP Specified by ISP: Disable
Echo Request Interval: 30
Use the Following DNS Addresses: Disable
Do NOT Clone MAC Address

What I tried in /etc/config/network:
config interface 'wan'
option device 'eth0.2'
option proto 'pppoe'
option username 'redacted@internode.on.net'
option password 'redacted'
option mtu '1500'
option pppd_options 'debug'
option ipv6 'auto'

In LuCI, this sets my wan device to 'Software VLAN eth0.2 (wan)'.

The log file excerpt produced:
Mon Sep 23 15:28:09 2024 daemon.notice netifd: Interface 'wan' is enabled
Mon Sep 23 15:28:09 2024 daemon.notice netifd: Interface 'wan' has link connectivity
Mon Sep 23 15:28:09 2024 daemon.notice netifd: Interface 'wan' is setting up now
Mon Sep 23 15:28:09 2024 daemon.info pppd[26528]: Plugin pppoe.so loaded.
Mon Sep 23 15:28:09 2024 daemon.info pppd[26528]: PPPoE plugin from pppd 2.4.9
Mon Sep 23 15:28:09 2024 daemon.notice pppd[26528]: pppd 2.4.9 started by root, uid 0
Mon Sep 23 15:28:09 2024 daemon.debug pppd[26528]: Send PPPOE Discovery V1T1 PADI session 0x0 length 12
Mon Sep 23 15:28:09 2024 daemon.debug pppd[26528]: dst ff:ff:ff:ff:ff:ff src c4:e9:0a:d9:d7:b0
Mon Sep 23 15:28:09 2024 daemon.debug pppd[26528]: [service-name] [host-uniq a0 67 00 00]
Mon Sep 23 15:28:10 2024 daemon.warn odhcpd[1640]: No default route present, overriding ra_lifetime!
Mon Sep 23 15:28:10 2024 daemon.info dnsmasq[1]: read /etc/hosts - 12 names
Mon Sep 23 15:28:10 2024 daemon.info dnsmasq[1]: read /tmp/hosts/dhcp.cfg01411c - 4 names
Mon Sep 23 15:28:10 2024 daemon.info dnsmasq-dhcp[1]: read /etc/ethers - 0 addresses
Mon Sep 23 15:28:11 2024 daemon.warn odhcpd[1640]: No default route present, overriding ra_lifetime!
Mon Sep 23 15:28:14 2024 daemon.debug pppd[26528]: Send PPPOE Discovery V1T1 PADI session 0x0 length 12
Mon Sep 23 15:28:14 2024 daemon.debug pppd[26528]: dst ff:ff:ff:ff:ff:ff src c4:e9:0a:d9:d7:b0
Mon Sep 23 15:28:14 2024 daemon.debug pppd[26528]: [service-name] [host-uniq a0 67 00 00]
Mon Sep 23 15:28:19 2024 daemon.debug pppd[26528]: Send PPPOE Discovery V1T1 PADI session 0x0 length 12
Mon Sep 23 15:28:19 2024 daemon.debug pppd[26528]: dst ff:ff:ff:ff:ff:ff src c4:e9:0a:d9:d7:b0
Mon Sep 23 15:28:19 2024 daemon.debug pppd[26528]: [service-name] [host-uniq a0 67 00 00]
Mon Sep 23 15:28:24 2024 daemon.warn pppd[26528]: Timeout waiting for PADO packets
Mon Sep 23 15:28:24 2024 daemon.err pppd[26528]: Unable to complete PPPoE Discovery
Mon Sep 23 15:28:24 2024 daemon.info pppd[26528]: Exit.

Despite all efforts, I can't seem to get past the 'No default route present' error.

Completely exhausted. Anyone care to please take a stab?

M.

Ignore this update: I've abandoned PPPoE on the wan, started with a fresh config, and attached to my normal router's wifi. Now it works.

I had a conflict between the IP address of my openwrt router on it's lan, and the IP address for the gateway supplied by my usual router's DHCP wifi server.

M.

Some ISPs restrict the connection to one single route. Try to clone the MAC address from the other router.

Thanks, eduperez.

Didn't know some ISPs did this, but I've used other routers with the modem my ISP provided. Thankfully, we can eliminate mac filtering. Good clue.

M.

The important messages are here:

Mon Sep 23 15:28:09 2024 daemon.debug pppd[26528]: Send PPPOE Discovery V1T1 PADI session 0x0 length 12
...
Mon Sep 23 15:28:14 2024 daemon.debug pppd[26528]: Send PPPOE 
...
Mon Sep 23 15:28:19 2024 daemon.debug pppd[26528]: Send PPPOE Discovery V1T1 PADI session 0x0 length 12
...
Mon Sep 23 15:28:24 2024 daemon.warn  pppd[26528]: Timeout waiting for PADO packets

Your router is trying to reach the PPPoE server (PADI packets), but it is not receiving any answer (PADO packets). Either it is not connected properly to the modem, the VLAN is not configured properly (it looks correct to me), the interface is wrong (it looks correct to me, too), the modem is just refusing to answer, ...

This seems not to rhyme, but you do not need to force an MTU in /etc/config/network, so maybe remove that line? Now, MTU issues might not be the reason for the PPPoE negotiation to go nowhere (as configuration packets likely are not fullMTU size anyway).

For debugging, please post the output of ifconfig.

Thanks, moeller0.

Oops, I posted an error. I think it was LuCI that complained about the mis-configured MTU size, and I did actually correct it to 1500 before giving in. Good pick-up, though my problem runs deeper.

Okay, nothing heard back from my router, after PADI packets sent. I'll have to post my ifconfig output. Gimme a tick...

M.

1 Like

Yes, but that really only tells us that either the PADI did not reach the remote side, or the response PADO from the remote side did not reach your router. There are, unfortunately, quite a lot of reasons for that to happen, starting from a not connected cable, over VLAN issues or more subtle problems.

1 Like

Okay, Back to trying to setup a PPPoE connection to my service provider via NBN FTC modem.

Seems I can get an ipv6 connection with VLAN 2 tagging, but the modem only does ipv4. I can't seem to figure out the PPPoE setup that will give me an ipv4 link. I think that's what the situation is?
/etc/config/network

config interface 'loopback'
option device 'lo'
option proto 'static'
option ipaddr '127.0.0.1'
option netmask '255.0.0.0'

config globals 'globals'
option ula_prefix 'fdf7:6685:5cd9::/48'
option packet_steering '1'

config device
option name 'br-lan'
option type 'bridge'
list ports 'lan1'
list ports 'lan2'
list ports 'lan3'
list ports 'lan4'

config interface 'lan'
option device 'br-lan'
option proto 'static'
option ip6assign '60'
list ipaddr '192.168.0.1/24'
list dns '192.168.0.101'

config interface 'wan'
option proto 'pppoe'
option username 'redacted@internode.on.net'
option password 'redacted'
option device 'eth0.2'
option ipv6 '0'

config switch_vlan
option device 'switch0'
option vlan '2'
option ports '4t'

root@OpenWrt:~# ifconfig

br-lan Link encap:Ethernet HWaddr C4:E9:0A:D9:D7:AC
inet addr:192.168.0.1 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::c6e9:aff:fed9:d7ac/64 Scope:Link
inet6 addr: fdf7:6685:5cd9::1/60 Scope:Global
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1462 errors:0 dropped:0 overruns:0 frame:0
TX packets:1630 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:170228 (166.2 KiB) TX bytes:867472 (847.1 KiB)

eth0 Link encap:Ethernet HWaddr C4:E9:0A:D9:D7:AC
inet6 addr: fe80::c6e9:aff:fed9:d7ac/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1504 Metric:1
RX packets:4968 errors:0 dropped:0 overruns:0 frame:0
TX packets:5275 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:659619 (644.1 KiB) TX bytes:2558155 (2.4 MiB)
Interrupt:21

eth0.2 Link encap:Ethernet HWaddr C4:E9:0A:D9:D7:AC
UP BROADCAST RUNNING MULTICAST MTU:1504 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:42 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:1344 (1.3 KiB)

lan1 Link encap:Ethernet HWaddr C4:E9:0A:D9:D7:AC
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:4968 errors:0 dropped:0 overruns:0 frame:0
TX packets:4654 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:570195 (556.8 KiB) TX bytes:2464804 (2.3 MiB)

...

Anyone able to please shed some light on what might be going on?

TIA,
M.

What router model was that, and was that connected to the same modem you are trying to use under OpenWrt?

Thanks, moeller0.

Same modem connected to each router, and the old router is a TP-Link Archer VR1600v.

HTH,
M.

1 Like

RESOLVED:

config interface 'wan'
option proto 'pppoe'
option device 'wan.2'
option username 'redacted@internode.on.net'
option password 'redacted'
option ipv6 '0'

Thanks muchly for all the valuable guidance, peeps.
M.

2 Likes