VDSL2 PPPoE on Xiaomi MIFI 4/4a LAN interface

Hi All,

Have a Xiaomi 4 which has a WAN and 2xLAN interfaces.

I need to use the two LAN interfaces for PPPoE (connected to two different providers).

I have successfully configured the WAN interface to be accessibble from my local "internal" network.

Have disconnected the PPPoE cable from the Mikrotik it is working on, and connected it to one of the LAN interfaces after having it (hopefully) configured as PPPoE interface.

pppoe-discovery from the cli fails with time out.
The LAN1 interface never brings up the PPPoE connection.
Reconnecting the cable back to Mikrotik, the PPPoE connection is up withing seconds.

The kernel reports:

   OpenWrt 21.02.1, r16325-88151b8303
 -----------------------------------------------------
=== WARNING! =====================================
There is no root password defined on this device!
Use the "passwd" command to set up a new password
in order to prevent unauthorized SSH logins.
--------------------------------------------------
root@OpenWrt:~# dmesg 
[    0.000000] Linux version 5.4.154 (builder@buildhost) (gcc version 8.4.0 (OpenWrt GCC 8.4.0 r16325-88151b8303)) #0 SMP Sun Oct 24 09:01:35 2021
[    0.000000] SoC Type: MediaTek MT7621 ver:1 eco:3
[    0.000000] printk: bootconsole [early0] enabled
[    0.000000] CPU0 revision is: 0001992f (MIPS 1004Kc)
[    0.000000] MIPS: machine is Xiaomi Mi Router 4
[    0.000000] Initrd not found or empty - disabling initrd
[    0.000000] VPE topology {2,2} total 4
[    0.000000] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[    0.000000] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[    0.000000] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x0000000000000000-0x0000000007ffffff]
[    0.000000]   HighMem  empty
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000000000-0x0000000007ffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x0000000007ffffff]
[    0.000000] On node 0 totalpages: 32768
[    0.000000]   Normal zone: 288 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 32768 pages, LIFO batch:7
[    0.000000] percpu: Embedded 14 pages/cpu s26768 r8192 d22384 u57344
[    0.000000] pcpu-alloc: s26768 r8192 d22384 u57344 alloc=14*4096
[    0.000000] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3 
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 32480
[    0.000000] Kernel command line: console=ttyS0,115200n8 rootfstype=squashfs,jffs2
[    0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes, linear)
[    0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes, linear)
[    0.000000] Writing ErrCtl register=00001100
[    0.000000] Readback ErrCtl register=00001100
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] Memory: 120968K/131072K available (6089K kernel code, 210K rwdata, 748K rodata, 1260K init, 238K bss, 10104K reserved, 0K cma-reserved, 0K highmem)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[    0.000000] rcu: Hierarchical RCU implementation.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 25 jiffies.
[    0.000000] NR_IRQS: 256
[    0.000000] random: get_random_bytes called from 0x806e5a3c with crng_init=0
[    0.000000] CPU Clock: 880MHz
[    0.000000] clocksource: GIC: mask: 0xffffffffffffffff max_cycles: 0xcaf478abb4, max_idle_ns: 440795247997 ns
[    0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 4343773742 ns
[    0.000008] sched_clock: 32 bits at 440MHz, resolution 2ns, wraps every 4880645118ns
[    0.007813] Calibrating delay loop... 583.68 BogoMIPS (lpj=1167360)
[    0.042013] pid_max: default: 32768 minimum: 301
[    0.046786] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.054012] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.064453] rcu: Hierarchical SRCU implementation.
[    0.069891] smp: Bringing up secondary CPUs ...
[    7.286182] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[    7.286193] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[    7.286205] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[    7.286307] CPU1 revision is: 0001992f (MIPS 1004Kc)
[    0.102651] Synchronize counters for CPU 1: done.
[    7.347509] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[    7.347519] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[    7.347527] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[    7.347584] CPU2 revision is: 0001992f (MIPS 1004Kc)
[    0.167373] Synchronize counters for CPU 2: done.
[    7.408896] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[    7.408906] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[    7.408915] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[    7.408977] CPU3 revision is: 0001992f (MIPS 1004Kc)
[    0.225233] Synchronize counters for CPU 3: done.
[    0.255112] smp: Brought up 1 node, 4 CPUs
[    0.263564] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[    0.273264] futex hash table entries: 1024 (order: 3, 32768 bytes, linear)
[    0.280341] pinctrl core: initialized pinctrl subsystem
[    0.287168] NET: Registered protocol family 16
[    0.299112] FPU Affinity set after 4688 emulations
[    0.315742] workqueue: max_active 576 requested for napi_workq is out of range, clamping between 1 and 512
[    0.326130] random: fast init done
[    0.329653] clocksource: Switched to clocksource GIC
[    0.336198] thermal_sys: Registered thermal governor 'step_wise'
[    0.336707] NET: Registered protocol family 2
[    0.347136] IP idents hash table entries: 2048 (order: 2, 16384 bytes, linear)
[    0.356080] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes, linear)
[    0.364409] TCP established hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.371988] TCP bind hash table entries: 1024 (order: 1, 8192 bytes, linear)
[    0.378986] TCP: Hash tables configured (established 1024 bind 1024)
[    0.385424] UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.391902] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.399092] NET: Registered protocol family 1
[    0.403407] PCI: CLS 0 bytes, default 32
[    0.497510] 4 CPUs re-calibrate udelay(lpj = 1167360)
[    0.504135] workingset: timestamp_bits=14 max_order=15 bucket_order=1
[    0.522499] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.528266] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.539789] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 251)
[    0.548988] mt7621_gpio 1e000600.gpio: registering 32 gpios
[    0.554990] mt7621_gpio 1e000600.gpio: registering 32 gpios
[    0.560819] mt7621_gpio 1e000600.gpio: registering 32 gpios
[    0.567163] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled
[    0.576824] printk: console [ttyS0] disabled
[    0.581113] 1e000c00.uartlite: ttyS0 at MMIO 0x1e000c00 (irq = 19, base_baud = 3125000) is a 16550A
[    0.590097] printk: console [ttyS0] enabled
[    0.598349] printk: bootconsole [early0] disabled
[    0.610343] mt7621-nand 1e003000.nand: Using programmed access timing: 31c07388
[    0.617752] nand: device found, Manufacturer ID: 0xc8, Chip ID: 0xd1
[    0.624085] nand: ESMT NAND 128MiB 3,3V 8-bit
[    0.628433] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    0.635985] mt7621-nand 1e003000.nand: ECC strength adjusted to 4 bits
[    0.642521] mt7621-nand 1e003000.nand: Using programmed access timing: 31c07388
[    0.649810] Scanning device for bad blocks
[    2.631078] 10 fixed-partitions partitions found on MTD device mt7621-nand
[    2.637940] Creating 10 MTD partitions on "mt7621-nand":
[    2.643248] 0x000000000000-0x000000080000 : "Bootloader"
[    2.650099] 0x000000080000-0x0000000c0000 : "Config"
[    2.656335] 0x0000000c0000-0x000000100000 : "Bdata"
[    2.662665] 0x000000100000-0x000000140000 : "factory"
[    2.669002] 0x000000140000-0x000000180000 : "crash"
[    2.675306] 0x000000180000-0x0000001c0000 : "crash_syslog"
[    2.682160] 0x0000001c0000-0x000000200000 : "reserved0"
[    2.688821] 0x000000200000-0x000000600000 : "kernel_stock"
[    2.695623] 0x000000600000-0x000000a00000 : "kernel"
[    2.702128] 0x000000a00000-0x000007f80000 : "ubi"
[    2.710177] libphy: Fixed MDIO Bus: probed
[    2.740023] libphy: mdio: probed
[    2.743511] mt7530 mdio-bus:1f: MT7530 adapts as multi-chip module
[    2.753663] mtk_soc_eth 1e100000.ethernet eth0: mediatek frame engine at 0xbe100000, irq 21
[    2.764220] mt7621-pci 1e140000.pcie: Parsing DT failed
[    2.772324] NET: Registered protocol family 10
[    2.778276] Segment Routing with IPv6
[    2.782092] NET: Registered protocol family 17
[    2.786642] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this.
[    2.799844] 8021q: 802.1Q VLAN Support v1.8
[    2.806102] mt7530 mdio-bus:1f: MT7530 adapts as multi-chip module
[    2.824240] libphy: dsa slave smi: probed
[    2.828861] mt7530 mdio-bus:1f lan2 (uninitialized): PHY [dsa-0.0:01] driver [Generic PHY]
[    2.838663] mt7530 mdio-bus:1f lan1 (uninitialized): PHY [dsa-0.0:02] driver [Generic PHY]
[    2.848622] mt7530 mdio-bus:1f wan (uninitialized): PHY [dsa-0.0:04] driver [Generic PHY]
[    2.858382] mt7530 mdio-bus:1f: configuring for fixed/rgmii link mode
[    2.869619] DSA: tree 0 setup
[    2.872931] rt2880-pinmux pinctrl: pcie is already enabled
[    2.878581] mt7621-pci-phy 1e149000.pcie-phy: PHY for 0xbe149000 (dual port = 1)
[    2.886165] mt7621-pci-phy 1e14a000.pcie-phy: PHY for 0xbe14a000 (dual port = 0)
[    2.993568] mt7621-pci-phy 1e149000.pcie-phy: Xtal is 40MHz
[    2.999145] mt7621-pci-phy 1e14a000.pcie-phy: Xtal is 40MHz
[    3.104645] mt7621-pci 1e140000.pcie: pcie2 no card, disable it (RST & CLK)
[    3.111595] mt7621-pci 1e140000.pcie: PCIE0 enabled
[    3.116462] mt7621-pci 1e140000.pcie: PCIE1 enabled
[    3.121336] mt7621-pci 1e140000.pcie: PCI coherence region base: 0x60000000, mask/settings: 0xf0000002
[    3.130799] mt7621-pci 1e140000.pcie: PCI host bridge to bus 0000:00
[    3.137159] pci_bus 0000:00: root bus resource [io  0x1e160000-0x1e16ffff]
[    3.144024] pci_bus 0000:00: root bus resource [mem 0x60000000-0x6fffffff]
[    3.150887] pci_bus 0000:00: root bus resource [bus 00-ff]
[    3.156400] pci 0000:00:00.0: [0e8d:0801] type 01 class 0x060400
[    3.162430] pci 0000:00:00.0: reg 0x10: [mem 0x00000000-0x7fffffff]
[    3.168688] pci 0000:00:00.0: reg 0x14: [mem 0x60400000-0x6040ffff]
[    3.175011] pci 0000:00:00.0: supports D1
[    3.179016] pci 0000:00:00.0: PME# supported from D0 D1 D3hot
[    3.185170] pci 0000:00:01.0: [0e8d:0801] type 01 class 0x060400
[    3.191204] pci 0000:00:01.0: reg 0x10: [mem 0x00000000-0x7fffffff]
[    3.197463] pci 0000:00:01.0: reg 0x14: [mem 0x60410000-0x6041ffff]
[    3.203787] pci 0000:00:01.0: supports D1
[    3.207793] pci 0000:00:01.0: PME# supported from D0 D1 D3hot
[    3.215160] pci 0000:01:00.0: [14c3:7603] type 00 class 0x028000
[    3.221214] pci 0000:01:00.0: reg 0x10: [mem 0x00000000-0x000fffff]
[    3.227610] pci 0000:01:00.0: PME# supported from D0 D3hot D3cold
[    3.235117] pci 0000:00:00.0: PCI bridge to [bus 01-ff]
[    3.240347] pci 0000:00:00.0:   bridge window [io  0x0000-0x0fff]
[    3.246432] pci 0000:00:00.0:   bridge window [mem 0x60000000-0x600fffff]
[    3.253205] pci 0000:00:00.0:   bridge window [mem 0x60100000-0x601fffff pref]
[    3.260417] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
[    3.267257] pci 0000:02:00.0: [14c3:7662] type 00 class 0x028000
[    3.273313] pci 0000:02:00.0: reg 0x10: [mem 0x00000000-0x000fffff 64bit]
[    3.280128] pci 0000:02:00.0: reg 0x30: [mem 0x00000000-0x0000ffff pref]
[    3.286920] pci 0000:02:00.0: PME# supported from D0 D3hot D3cold
[    3.294456] pci 0000:00:01.0: PCI bridge to [bus 02-ff]
[    3.299681] pci 0000:00:01.0:   bridge window [io  0x0000-0x0fff]
[    3.305766] pci 0000:00:01.0:   bridge window [mem 0x60200000-0x602fffff]
[    3.312538] pci 0000:00:01.0:   bridge window [mem 0x60300000-0x603fffff pref]
[    3.319749] pci_bus 0000:02: busn_res: [bus 02-ff] end is updated to 02
[    3.326418] pci 0000:00:00.0: BAR 0: no space for [mem size 0x80000000]
[    3.333021] pci 0000:00:00.0: BAR 0: failed to assign [mem size 0x80000000]
[    3.339971] pci 0000:00:01.0: BAR 0: no space for [mem size 0x80000000]
[    3.346572] pci 0000:00:01.0: BAR 0: failed to assign [mem size 0x80000000]
[    3.353532] pci 0000:00:00.0: BAR 8: assigned [mem 0x60000000-0x600fffff]
[    3.360306] pci 0000:00:00.0: BAR 9: assigned [mem 0x60100000-0x601fffff pref]
[    3.367515] pci 0000:00:01.0: BAR 8: assigned [mem 0x60200000-0x602fffff]
[    3.374294] pci 0000:00:01.0: BAR 9: assigned [mem 0x60300000-0x603fffff pref]
[    3.381500] pci 0000:00:00.0: BAR 1: assigned [mem 0x60400000-0x6040ffff]
[    3.388293] pci 0000:00:01.0: BAR 1: assigned [mem 0x60410000-0x6041ffff]
[    3.395073] pci 0000:00:00.0: BAR 7: assigned [io  0x1e160000-0x1e160fff]
[    3.401851] pci 0000:00:01.0: BAR 7: assigned [io  0x1e161000-0x1e161fff]
[    3.408635] pci 0000:01:00.0: BAR 0: assigned [mem 0x60000000-0x600fffff]
[    3.415414] pci 0000:00:00.0: PCI bridge to [bus 01]
[    3.420370] pci 0000:00:00.0:   bridge window [io  0x1e160000-0x1e160fff]
[    3.427146] pci 0000:00:00.0:   bridge window [mem 0x60000000-0x600fffff]
[    3.433921] pci 0000:00:00.0:   bridge window [mem 0x60100000-0x601fffff pref]
[    3.441134] pci 0000:02:00.0: BAR 0: assigned [mem 0x60200000-0x602fffff 64bit]
[    3.448442] pci 0000:02:00.0: BAR 6: assigned [mem 0x60300000-0x6030ffff pref]
[    3.455649] pci 0000:00:01.0: PCI bridge to [bus 02]
[    3.460610] pci 0000:00:01.0:   bridge window [io  0x1e161000-0x1e161fff]
[    3.467385] pci 0000:00:01.0:   bridge window [mem 0x60200000-0x602fffff]
[    3.474160] pci 0000:00:01.0:   bridge window [mem 0x60300000-0x603fffff pref]
[    3.482760] UBI: auto-attach mtd9
[    3.486126] ubi0: attaching mtd9
[    3.494461] mt7530 mdio-bus:1f: Link is Up - 1Gbps/Full - flow control off
[    4.704071] ubi0: scanning is finished
[    4.725283] ubi0: attached mtd9 (name "ubi", size 117 MiB)
[    4.730804] ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
[    4.737664] ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 2048
[    4.744433] ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096
[    4.751377] ubi0: good PEBs: 940, bad PEBs: 0, corrupted PEBs: 0
[    4.757366] ubi0: user volume: 2, internal volumes: 1, max. volumes count: 128
[    4.764572] ubi0: max/mean erase counter: 3/1, WL threshold: 4096, image sequence number: 1505659218
[    4.773681] ubi0: available PEBs: 0, total reserved PEBs: 940, PEBs reserved for bad PEB handling: 20
[    4.782908] ubi0: background thread "ubi_bgt0d" started, PID 487
[    4.785390] block ubiblock0_0: created from ubi0:0(rootfs)
[    4.794411] ubiblock: device ubiblock0_0 (rootfs) set to be root filesystem
[    4.801358] hctosys: unable to open rtc device (rtc0)
[    4.814354] VFS: Mounted root (squashfs filesystem) readonly on device 254:0.
[    4.825775] Freeing unused kernel memory: 1260K
[    4.830311] This architecture does not have kernel memory protection.
[    4.836730] Run /sbin/init as init process
[    5.301167] init: Console is alive
[    5.304860] init: - watchdog -
[    5.868014] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[    5.958835] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[    5.969925] init: - preinit -
[    6.709405] mtk_soc_eth 1e100000.ethernet eth0: configuring for fixed/rgmii link mode
[    6.717743] mtk_soc_eth 1e100000.ethernet eth0: Link is Up - 1Gbps/Full - flow control rx/tx
[    6.726240] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[    6.911154] random: jshn: uninitialized urandom read (4 bytes read)
[    7.024092] random: jshn: uninitialized urandom read (4 bytes read)
[    7.061791] random: jshn: uninitialized urandom read (4 bytes read)
[    7.275696] mt7530 mdio-bus:1f lan1: configuring for phy/gmii link mode
[    7.282735] 8021q: adding VLAN 0 to HW filter on device lan1
[    9.338070] mt7530 mdio-bus:1f lan1: Link is Up - 100Mbps/Full - flow control rx/tx
[    9.345768] IPv6: ADDRCONF(NETDEV_CHANGE): lan1: link becomes ready
[   11.500883] UBIFS (ubi0:1): Mounting in unauthenticated mode
[   11.506814] UBIFS (ubi0:1): background thread "ubifs_bgt0_1" started, PID 599
[   11.589750] UBIFS (ubi0:1): recovery needed
[   11.754279] UBIFS (ubi0:1): recovery completed
[   11.758887] UBIFS (ubi0:1): UBIFS: mounted UBI device 0, volume 1, name "rootfs_data"
[   11.766706] UBIFS (ubi0:1): LEB size: 126976 bytes (124 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes
[   11.776599] UBIFS (ubi0:1): FS size: 111611904 bytes (106 MiB, 879 LEBs), journal size 5586944 bytes (5 MiB, 44 LEBs)
[   11.787177] UBIFS (ubi0:1): reserved for root: 4952683 bytes (4836 KiB)
[   11.793783] UBIFS (ubi0:1): media format: w4/r0 (latest is w5/r0), UUID 1177937E-1D7C-4238-9BE9-EBE792830FFA, small LPT model
[   11.817001] mount_root: switching to ubifs overlay
[   11.840502] urandom-seed: Seeding with /etc/urandom.seed
[   11.991678] mt7530 mdio-bus:1f lan1: Link is Down
[   12.011553] procd: - early -
[   12.014623] procd: - watchdog -
[   12.629689] procd: - watchdog -
[   12.639814] procd: - ubus -
[   12.709017] procd: - init -
[   13.448129] kmodloader: loading kernel modules from /etc/modules.d/*
[   13.470937] tun: Universal TUN/TAP device driver, 1.6
[   13.495920] Loading modules backported from Linux version v5.10.68-0-g4d8524048a35
[   13.503558] Backport generated by backports.git v5.10.68-1-0-ga4f9ba32
[   13.530933] xt_time: kernel timezone is -0000
[   13.564509] urngd: v1.0.2 started.
[   13.594099] mt7621-pci 1e140000.pcie: bus=1 slot=0 irq=23
[   13.599579] pci 0000:00:00.0: enabling device (0006 -> 0007)
[   13.605257] mt7603e 0000:01:00.0: enabling device (0000 -> 0002)
[   13.611528] mt7603e 0000:01:00.0: ASIC revision: 76030010
[   13.720146] random: crng init done
[   13.723582] random: 7 urandom warning(s) missed due to ratelimiting
[   14.234844] mt7603e 0000:01:00.0: Firmware Version: ap_pcie
[   14.240466] mt7603e 0000:01:00.0: Build Time: 20160107100755
[   14.273555] mt7603e 0000:01:00.0: firmware init done
[   14.458317] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
[   14.470195] mt7621-pci 1e140000.pcie: bus=2 slot=1 irq=24
[   14.475652] pci 0000:00:01.0: enabling device (0006 -> 0007)
[   14.481336] mt76x2e 0000:02:00.0: enabling device (0000 -> 0002)
[   14.487627] mt76x2e 0000:02:00.0: ASIC revision: 76120044
[   14.997617] mt76x2e 0000:02:00.0: ROM patch build: 20141115060606a
[   15.009480] mt76x2e 0000:02:00.0: Firmware Version: 0.0.00
[   15.015032] mt76x2e 0000:02:00.0: Build: 1
[   15.019219] mt76x2e 0000:02:00.0: Build Time: 201507311614____
[   15.041643] mt76x2e 0000:02:00.0: Firmware running!
[   15.048040] ieee80211 phy1: Selected rate control algorithm 'minstrel_ht'
[   15.066558] PPP generic driver version 2.4.2
[   15.072350] NET: Registered protocol family 24
[   15.100091] wireguard: WireGuard 1.0.0 loaded. See www.wireguard.com for information.
[   15.108005] wireguard: Copyright (C) 2015-2019 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved.
[   15.130094] kmodloader: done loading kernel modules from /etc/modules.d/*
[   21.059844] mtk_soc_eth 1e100000.ethernet eth0: Link is Down
[   21.073457] mtk_soc_eth 1e100000.ethernet eth0: configuring for fixed/rgmii link mode
[   21.081793] mtk_soc_eth 1e100000.ethernet eth0: Link is Up - 1Gbps/Full - flow control rx/tx
[   21.084888] mt7530 mdio-bus:1f lan1: configuring for phy/gmii link mode
[   21.097448] 8021q: adding VLAN 0 to HW filter on device lan1
[   21.105976] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[   21.126783] device eth0 entered promiscuous mode
[   21.132096] mt7530 mdio-bus:1f wan: configuring for phy/gmii link mode
[   21.139688] 8021q: adding VLAN 0 to HW filter on device wan
[   23.130067] mt7530 mdio-bus:1f lan1: Link is Up - 100Mbps/Full - flow control rx/tx
[   23.137769] IPv6: ADDRCONF(NETDEV_CHANGE): lan1: link becomes ready
[   23.144844] IPv6: ADDRCONF(NETDEV_CHANGE): lan1.835: link becomes ready
[   25.242056] mt7530 mdio-bus:1f wan: Link is Up - 1Gbps/Full - flow control rx/tx
[   25.249501] IPv6: ADDRCONF(NETDEV_CHANGE): wan: link becomes ready

Running PADO discovery from cli

root@OpenWrt:~# pppoe-discovery 
Timeout waiting for PADO packets

The system log is full of:

Fri Jan 28 18:45:57 2022 daemon.notice netifd: Interface 'Nova_50Mbps' is disabled
Fri Jan 28 18:45:57 2022 kern.info kernel: [ 1416.453742] mt7530 mdio-bus:1f lan1: configuring for phy/gmii link mode
Fri Jan 28 18:45:57 2022 kern.info kernel: [ 1416.460821] 8021q: adding VLAN 0 to HW filter on device lan1
Fri Jan 28 18:45:57 2022 daemon.notice netifd: Interface 'Nova_50Mbps' is enabled
Fri Jan 28 18:45:57 2022 daemon.notice netifd: Interface 'Nova_50Mbps' is setting up now
Fri Jan 28 18:45:57 2022 daemon.notice netifd: 8021q 'lan1.835' link is down
Fri Jan 28 18:45:57 2022 daemon.notice netifd: Interface 'Nova_50Mbps' has link connectivity loss
Fri Jan 28 18:45:57 2022 daemon.notice netifd: Network device 'lan1' link is down
Fri Jan 28 18:45:57 2022 daemon.err insmod: module is already loaded - slhc
Fri Jan 28 18:45:57 2022 daemon.err insmod: module is already loaded - ppp_generic
Fri Jan 28 18:45:57 2022 daemon.err insmod: module is already loaded - pppox
Fri Jan 28 18:45:57 2022 daemon.err insmod: module is already loaded - pppoe
Fri Jan 28 18:45:57 2022 daemon.info pppd[31364]: Plugin rp-pppoe.so loaded.
Fri Jan 28 18:45:57 2022 daemon.info pppd[31364]: RP-PPPoE plugin version 3.8p compiled against pppd 2.4.8
Fri Jan 28 18:45:57 2022 daemon.notice pppd[31364]: pppd 2.4.8 started by root, uid 0
Fri Jan 28 18:45:59 2022 kern.info kernel: [ 1418.523193] mt7530 mdio-bus:1f lan1: Link is Up - 100Mbps/Full - flow control rx/tx
Fri Jan 28 18:45:59 2022 kern.info kernel: [ 1418.530922] IPv6: ADDRCONF(NETDEV_CHANGE): lan1: link becomes ready
Fri Jan 28 18:45:59 2022 daemon.notice netifd: Network device 'lan1' link is up
Fri Jan 28 18:45:59 2022 kern.info kernel: [ 1418.538370] IPv6: ADDRCONF(NETDEV_CHANGE): lan1.835: link becomes ready
Fri Jan 28 18:45:59 2022 daemon.notice netifd: 8021q 'lan1.835' link is up
Fri Jan 28 18:45:59 2022 daemon.notice netifd: Interface 'Nova_50Mbps' has link connectivity

And the network configuration is:

root@OpenWrt:/etc/config# cat 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 packet_steering '1'
	option ula_prefix 'fd21:bc04:fcc0::/48'

config device
	option name 'br-lan'
	option type 'bridge'
	list ports 'wan'

config interface 'lan'
	option proto 'static'
	option ip6assign '60'
	option device 'wan'
	option ipaddr '10.46.236.3'
	option netmask '255.255.255.192'
	list dns '8.8.4.4'
	list dns '8.8.8.8'
	option gateway '10.46.236.1'

config interface 'Nova_50Mbps'
	option proto 'pppoe'
	option ipv6 'auto'
	option device 'lan1.835'
	option username 'userXYZ'
	option password 'some_password'
	option force_link '1'

config device
	option name 'lan1'

config device
	option type '8021q'
	option ifname 'lan1'
	option vid '835'
	option name 'lan1.835'

For comparisson, there is no VC/LLC configured on Mikrotik.

Have also tried on this same router without VLAN tagging, without success.

Any idea will be appreciated.

Best regards,
Theo

It's not related to your problem, but if you want your wireless clients to work, the device here should be set to br-lan, not wan.

This part is not needed. Setting option device to 'lan1.835' in the 'Nova_50Mbps' interface section is enough.

Add the MAC address of the last working device here using option macaddr 'AA:BB...'

If you have never been able to establish a successful PPPoE connection, you should call your provider.

Thank you for you feedback.

Tried all steps one by one without success.

Now I am using the following latest setup:

root@OpenWrt:~# cat /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 packet_steering '1'
	option ula_prefix 'fd21:bc04:fcc0::/48'

config device
	option name 'br-lan'
	option type 'bridge'
	list ports 'wan'

config interface 'lan'
	option proto 'static'
	option ip6assign '60'
	option device 'wan'
	option ipaddr '10.46.236.3'
	option netmask '255.255.255.192'
	list dns '8.8.4.4'
	list dns '8.8.8.8'
	option gateway '10.46.236.1'

config interface 'Nova_50Mbps'
	option proto 'pppoe'
	option username 'USER'
	option password 'PASS'
	option device 'lan1'
	option ipv6 '0'
        option device 'lan1.835' 

config device
	option name 'lan1'
        option macaddr 'E4:8D:8C:D7:FE:1

The MAC address defined in LAN1 is the one of the Mikrotik currently in use for the same PPPoE link (it works for the last 3 years).

One thing I did notice is:

root@OpenWrt:~# ip a s
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host 
       valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1504 qdisc fq_codel state UP qlen 1000
    link/ether 50:d2:f5:03:2e:a4 brd ff:ff:ff:ff:ff:ff
    inet6 fe80::52d2:f5ff:fe03:2ea4/64 scope link 
       valid_lft forever preferred_lft forever
3: lan2@eth0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN qlen 1000
    link/ether 50:d2:f5:03:2e:a4 brd ff:ff:ff:ff:ff:ff
4: lan1@eth0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state LOWERLAYERDOWN qlen 1000
    link/ether e4:8d:8c:d7:fe:1d brd ff:ff:ff:ff:ff:ff
5: wan@eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP qlen 1000
    link/ether 50:d2:f5:03:2e:a5 brd ff:ff:ff:ff:ff:ff
    inet 10.46.236.3/26 brd 10.46.236.63 scope global wan
       valid_lft forever preferred_lft forever
    inet6 fd21:bc04:fcc0::1/60 scope global noprefixroute 
       valid_lft forever preferred_lft forever
    inet6 fe80::52d2:f5ff:fe03:2ea5/64 scope link 
       valid_lft forever preferred_lft forever
6: wlan0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN qlen 1000
    link/ether 50:d2:f5:03:2e:a6 brd ff:ff:ff:ff:ff:ff
7: wlan1: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN qlen 1000
    link/ether 50:d2:f5:03:2e:a7 brd ff:ff:ff:ff:ff:ff
20: lan1.835@lan1: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state LOWERLAYERDOWN qlen 1000
    link/ether e4:8d:8c:d7:fe:1d brd ff:ff:ff:ff:ff:ff

Should the lan1@eth0 be running with NO-CARRIER?

Best regards
Theo

Remove this from the interface section. You need to use only option device 'lan1.835'.

I can't check it right now, but I think it's normal. If the PPPoE interface goes up, you should see an additional logical interface, named pppoe-Nova_50Mbps.

DSA VLAN setup should look like below. Every port is separate device and must be declared as such .

config device
        option name 'lan1'
        option macaddr 'xx'

config device
        option type '8021q'
        option ifname 'lan1'
        option vid '835'
        option name 'lan1.835'

config interface 'Nova_50Mbps'
        option proto 'pppoe'
        option username 'login'
        option password 'password'
        option ipv6 '0'
        option device 'lan1.835'

Thank you both.

Fixing my syntax (option device instead of option ifname) brought the CARRIER back to UP

However still no PPPoE.

I wonder if:

  1. Firewall selection plays role in PPPoE passing trough.
  2. Why Mikrotik never asked for VLAN configuration
  3. Why pppoe-discovery always times out.

Just typing my thoughts to help you to help me.

BR
Theo

ad1 no
ad2 basic DSL /VDSL modem can be bridged two ways dsl0 -> lan and You need to have VLAN set on router side . Or dsl0 -vlan- dsl0.835 ->lan then you don't have to create VLAN on router .In fancy configuration (VDSL modem with OpenWrt ) this can be even more mixed up
ad3 never used this tool sorry .
You could allways try to use 'lan1' device without VLAN as this worked on Mikrotik
I'm 6y+ on DSL ... ama

Hi All,

Aparently the problem was related to this:

https://openwrt.org/docs/guide-user/base-system/basic-networking#:~:text=The%20Linux%20kernel%20limits%20the,with%20bridges%20(%20br-%20).

Specifically:

The Linux kernel limits the physical interface name length to 15 characters including the automatically added prefix that is added for some protocols (e.g.6in4, pppoa-, pppoe-, gre4t-) or with bridges (br-).

Changing the name to VD50 reduced the ifname to pppoe-vd50 which is 10 characters long compaired to pppoe-nova_50mbps which was 17 characters long.

Once changed, both PPPoE and PPPoE v6 interfaces, came up without delay.

The VLAN 835 was not required.

Thank you for your time.

BR
Theo

1 Like

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