How to debug netifd issue?

Hi!

I've lost my IPv6 connection again. I don't really know how to find the source of the problem. I've configured my router with dnsmasq (DHCPv4+DNS), odhcpd-ipv6-only (DHCPv6), unbound (DNS) because the odhcpd server doesn't allow to send DHCPv4 options to clients. I tried to follow the “parallel dnsmasq” instructions.

Mon Aug 26 16:31:14 2024 kern.info kernel: [   12.513703] mt798x-wmac 18000000.wifi: registering led 'mt76-phy1'
Mon Aug 26 16:31:14 2024 user.info kernel: [   15.175426] kmodloader: done loading kernel modules from /etc/modules.d/*
Mon Aug 26 16:31:14 2024 kern.warn kernel: [   15.493860] sfp sfp-1: please wait, module slow to respond
Mon Aug 26 16:31:14 2024 user.notice : Added device handler type: bonding
Mon Aug 26 16:31:14 2024 user.notice : Added device handler type: 8021ad
Mon Aug 26 16:31:14 2024 user.notice : Added device handler type: 8021q
Mon Aug 26 16:31:14 2024 user.notice : Added device handler type: macvlan
Mon Aug 26 16:31:14 2024 user.notice : Added device handler type: veth
Mon Aug 26 16:31:14 2024 user.notice : Added device handler type: bridge
Mon Aug 26 16:31:14 2024 user.notice : Added device handler type: Network device
Mon Aug 26 16:31:14 2024 user.notice : Added device handler type: tunnel
Mon Aug 26 16:31:15 2024 daemon.notice procd: /etc/rc.d/S25packet_steering: pid 347's current affinity list: 0-3
Mon Aug 26 16:31:15 2024 daemon.notice procd: /etc/rc.d/S25packet_steering: pid 347's new affinity list: 0
Mon Aug 26 16:31:15 2024 daemon.notice procd: /etc/rc.d/S25packet_steering: pid 348's current affinity list: 0-3
Mon Aug 26 16:31:15 2024 daemon.notice procd: /etc/rc.d/S25packet_steering: pid 348's new affinity list: 0
Mon Aug 26 16:31:15 2024 daemon.notice wpa_supplicant[1640]: Successfully initialized wpa_supplicant
Mon Aug 26 16:31:15 2024 daemon.notice procd: /etc/rc.d/S50uhttpd: 4+0 records in
Mon Aug 26 16:31:15 2024 daemon.notice procd: /etc/rc.d/S50uhttpd: 4+0 records out
Mon Aug 26 16:31:15 2024 user.notice ucitrack: Setting up /etc/config/luci-splash reload dependency on /etc/config/firewall
Mon Aug 26 16:31:15 2024 user.notice ucitrack: Setting up /etc/config/qos reload dependency on /etc/config/firewall
Mon Aug 26 16:31:15 2024 user.notice ucitrack: Setting up /etc/config/miniupnpd reload dependency on /etc/config/firewall
Mon Aug 26 16:31:15 2024 user.notice ucitrack: Setting up /etc/config/odhcpd reload dependency on /etc/config/dhcp
Mon Aug 26 16:31:15 2024 user.notice ucitrack: Setting up /etc/config/dhcp reload dependency on /etc/config/network
Mon Aug 26 16:31:15 2024 user.notice ucitrack: Setting up /etc/config/network reload dependency on /etc/config/wireless
Mon Aug 26 16:31:15 2024 user.notice ucitrack: Setting up non-init /etc/config/fstab reload handler: /sbin/block mount
Mon Aug 26 16:31:15 2024 user.notice ucitrack: Setting up /etc/config/system reload trigger for non-procd /etc/init.d/led
Mon Aug 26 16:31:15 2024 user.notice ucitrack: Setting up /etc/config/luci_statistics reload dependency on /etc/config/system
Mon Aug 26 16:31:15 2024 user.notice ucitrack: Setting up /etc/config/dhcp reload dependency on /etc/config/system
Mon Aug 26 16:31:15 2024 kern.info kernel: [   17.146253] mtk_soc_eth 15100000.ethernet eth0: Link is Down
Mon Aug 26 16:31:15 2024 kern.info kernel: [   17.167464] mtk_soc_eth 15100000.ethernet eth0: configuring for fixed/2500base-x link mode
Mon Aug 26 16:31:15 2024 kern.info kernel: [   17.176043] mtk_soc_eth 15100000.ethernet eth0: Link is Up - 2.5Gbps/Full - flow control rx/tx
Mon Aug 26 16:31:15 2024 kern.info kernel: [   17.183212] mt7530-mdio mdio-bus:1f lan1: configuring for phy/gmii link mode
Mon Aug 26 16:31:15 2024 kern.info kernel: [   17.196629] br-lan: port 1(lan1) entered blocking state
Mon Aug 26 16:31:15 2024 kern.info kernel: [   17.201865] br-lan: port 1(lan1) entered disabled state
Mon Aug 26 16:31:15 2024 kern.info kernel: [   17.207180] mt7530-mdio mdio-bus:1f lan1: entered allmulticast mode
Mon Aug 26 16:31:15 2024 kern.info kernel: [   17.213471] mtk_soc_eth 15100000.ethernet eth0: entered allmulticast mode
Mon Aug 26 16:31:15 2024 daemon.notice netifd: Interface 'home' is enabled
Mon Aug 26 16:31:15 2024 daemon.notice netifd: Interface 'home' is setting up now
Mon Aug 26 16:31:15 2024 daemon.notice netifd: Interface 'home' is now up
Mon Aug 26 16:31:15 2024 kern.info kernel: [   17.226296] mt7530-mdio mdio-bus:1f lan1: entered promiscuous mode
Mon Aug 26 16:31:15 2024 daemon.notice netifd: Interface 'dmz' is enabled
Mon Aug 26 16:31:15 2024 daemon.notice netifd: Interface 'dmz' is setting up now
Mon Aug 26 16:31:15 2024 daemon.notice netifd: Interface 'dmz' is now up
Mon Aug 26 16:31:15 2024 daemon.notice netifd: Interface 'livebox' is enabled
Mon Aug 26 16:31:15 2024 daemon.notice netifd: Interface 'livebox' is setting up now
Mon Aug 26 16:31:15 2024 daemon.notice netifd: Interface 'livebox' is now up
Mon Aug 26 16:31:15 2024 kern.info kernel: [   17.255972] mt7530-mdio mdio-bus:1f lan2: configuring for phy/gmii link mode
Mon Aug 26 16:31:15 2024 kern.info kernel: [   17.268414] br-lan: port 2(lan2) entered blocking state
Mon Aug 26 16:31:15 2024 kern.info kernel: [   17.273739] br-lan: port 2(lan2) entered disabled state
Mon Aug 26 16:31:15 2024 kern.info kernel: [   17.279012] mt7530-mdio mdio-bus:1f lan2: entered allmulticast mode
Mon Aug 26 16:31:15 2024 kern.info kernel: [   17.287861] mt7530-mdio mdio-bus:1f lan2: entered promiscuous mode
Mon Aug 26 16:31:15 2024 kern.info kernel: [   17.308518] mt7530-mdio mdio-bus:1f lan3: configuring for phy/gmii link mode
Mon Aug 26 16:31:15 2024 kern.info kernel: [   17.320267] br-lan: port 3(lan3) entered blocking state
Mon Aug 26 16:31:15 2024 kern.info kernel: [   17.325562] br-lan: port 3(lan3) entered disabled state
Mon Aug 26 16:31:15 2024 kern.info kernel: [   17.330815] mt7530-mdio mdio-bus:1f lan3: entered allmulticast mode
Mon Aug 26 16:31:15 2024 user.notice firewall: Reloading firewall due to ifup of home (br-lan.10)
Mon Aug 26 16:31:15 2024 kern.info kernel: [   17.339887] mt7530-mdio mdio-bus:1f lan3: entered promiscuous mode
Mon Aug 26 16:31:15 2024 kern.info kernel: [   17.358478] mt7530-mdio mdio-bus:1f lan4: configuring for phy/gmii link mode
Mon Aug 26 16:31:15 2024 kern.info kernel: [   17.370199] br-lan: port 4(lan4) entered blocking state
Mon Aug 26 16:31:15 2024 kern.info kernel: [   17.375446] br-lan: port 4(lan4) entered disabled state
Mon Aug 26 16:31:15 2024 kern.info kernel: [   17.380702] mt7530-mdio mdio-bus:1f lan4: entered allmulticast mode
Mon Aug 26 16:31:15 2024 kern.info kernel: [   17.389669] mt7530-mdio mdio-bus:1f lan4: entered promiscuous mode
Mon Aug 26 16:31:15 2024 kern.info kernel: [   17.402449] mt7530-mdio mdio-bus:1f sfp2: configuring for inband/2500base-x link mode
Mon Aug 26 16:31:15 2024 kern.info kernel: [   17.412146] br-lan: port 5(sfp2) entered blocking state
Mon Aug 26 16:31:15 2024 kern.info kernel: [   17.417377] br-lan: port 5(sfp2) entered disabled state
Mon Aug 26 16:31:16 2024 kern.info kernel: [   17.422633] mt7530-mdio mdio-bus:1f sfp2: entered allmulticast mode
Mon Aug 26 16:31:16 2024 kern.info kernel: [   17.431696] mt7530-mdio mdio-bus:1f sfp2: entered promiscuous mode
Mon Aug 26 16:31:16 2024 kern.info kernel: [   17.448013] mt7530-mdio mdio-bus:1f wan: configuring for phy/gmii link mode
Mon Aug 26 16:31:16 2024 kern.info kernel: [   17.459602] br-lan: port 6(wan) entered blocking state
Mon Aug 26 16:31:16 2024 kern.info kernel: [   17.464734] br-lan: port 6(wan) entered disabled state
Mon Aug 26 16:31:16 2024 kern.info kernel: [   17.469873] mt7530-mdio mdio-bus:1f wan: entered allmulticast mode
Mon Aug 26 16:31:16 2024 kern.info kernel: [   17.479001] mt7530-mdio mdio-bus:1f wan: entered promiscuous mode
Mon Aug 26 16:31:16 2024 kern.info kernel: [   17.491377] mtk_soc_eth 15100000.ethernet eth1: configuring for inband/2500base-x link mode
Mon Aug 26 16:31:16 2024 daemon.notice netifd: Interface 'wan' is enabled
Mon Aug 26 16:31:16 2024 daemon.notice netifd: Interface 'wan6' is enabled
Mon Aug 26 16:31:16 2024 daemon.notice netifd: Interface 'loopback' is enabled
Mon Aug 26 16:31:16 2024 daemon.notice netifd: Interface 'loopback' is setting up now
Mon Aug 26 16:31:16 2024 daemon.notice netifd: Interface 'loopback' is now up
Mon Aug 26 16:31:16 2024 daemon.notice netifd: Network device 'eth0' link is up
Mon Aug 26 16:31:16 2024 daemon.info procd: - init complete -
Mon Aug 26 16:31:16 2024 daemon.notice netifd: Network device 'lo' link is up
Mon Aug 26 16:31:16 2024 daemon.notice netifd: Interface 'loopback' has link connectivity
Mon Aug 26 16:31:16 2024 user.notice firewall: Reloading firewall due to ifup of dmz (br-lan.20)
Mon Aug 26 16:31:16 2024 user.notice firewall: Reloading firewall due to ifup of livebox (br-lan.832)
Mon Aug 26 16:31:16 2024 daemon.info dropbear: Using network interface 'home' (network device 'br-lan.10') for direct binding
Mon Aug 26 16:31:17 2024 user.info : Binding to interface 'br-lan.10'
Mon Aug 26 16:31:17 2024 authpriv.info dropbear[2617]: Not backgrounding
Mon Aug 26 16:31:19 2024 user.notice unbound: default protocol configuration
Mon Aug 26 16:31:19 2024 user.notice unbound: default memory configuration
Mon Aug 26 16:31:19 2024 user.notice unbound: default recursion configuration
Mon Aug 26 16:31:20 2024 daemon.notice unbound: [2966:0] notice: init module 0: respip
Mon Aug 26 16:31:20 2024 daemon.notice unbound: [2966:0] notice: init module 1: iterator
Mon Aug 26 16:31:20 2024 daemon.info unbound: [2966:0] info: start of service (unbound 1.20.0).
Mon Aug 26 16:31:33 2024 kern.info kernel: [   35.115092] mt7530-mdio mdio-bus:1f lan1: Link is Up - 100Mbps/Full - flow control off
Mon Aug 26 16:31:33 2024 kern.info kernel: [   35.115118] br-lan: port 1(lan1) entered blocking state
Mon Aug 26 16:31:33 2024 kern.info kernel: [   35.128219] br-lan: port 1(lan1) entered forwarding state
Mon Aug 26 16:31:33 2024 daemon.notice netifd: Network device 'lan1' link is up
Mon Aug 26 16:31:33 2024 daemon.notice netifd: bridge 'br-lan' link is up
Mon Aug 26 16:31:33 2024 daemon.notice netifd: VLAN 'br-lan.10' link is up
Mon Aug 26 16:31:33 2024 daemon.notice netifd: Interface 'home' has link connectivity
Mon Aug 26 16:31:33 2024 daemon.notice netifd: VLAN 'br-lan.20' link is up
Mon Aug 26 16:31:33 2024 daemon.notice netifd: Interface 'dmz' has link connectivity
Mon Aug 26 16:31:33 2024 daemon.notice netifd: VLAN 'br-lan.832' link is up
Mon Aug 26 16:31:33 2024 daemon.notice netifd: Interface 'livebox' has link connectivity
Mon Aug 26 16:31:34 2024 kern.info kernel: [   35.701942] sfp sfp-1: module FS               REDACTED   REDACTED REDACTED     REDACTED
Mon Aug 26 16:31:34 2024 kern.info kernel: [   35.751161] hwmon hwmon4: temp1_input not attached to any thermal zone
Mon Aug 26 16:31:34 2024 daemon.info dropbear: Using network interface 'home' (network device 'br-lan.10') for direct binding
Mon Aug 26 16:31:46 2024 daemon.notice netifd: Network device 'eth1' link is up
Mon Aug 26 16:31:46 2024 daemon.notice netifd: 8021q 'eth1.832' link is up
Mon Aug 26 16:31:46 2024 daemon.notice netifd: Interface 'wan' has link connectivity
Mon Aug 26 16:31:46 2024 daemon.notice netifd: Interface 'wan' is setting up now
Mon Aug 26 16:31:46 2024 daemon.notice netifd: Interface 'wan6' has link connectivity
Mon Aug 26 16:31:46 2024 daemon.notice netifd: Interface 'wan6' is setting up now
Mon Aug 26 16:31:46 2024 kern.info kernel: [   47.926216] mtk_soc_eth 15100000.ethernet eth1: Link is Up - 2.5Gbps/Full - flow control off
Mon Aug 26 16:31:46 2024 daemon.err odhcp6c[3211]: Failed to send RS (Address not available)
Mon Aug 26 16:31:46 2024 daemon.notice netifd: wan (3215): udhcpc: started, v1.36.1
Mon Aug 26 16:31:46 2024 daemon.notice netifd: wan (3215): udhcpc: broadcasting discover
Mon Aug 26 16:31:47 2024 daemon.err odhcp6c[3211]: Failed to send SOLICIT message to ff02::1:2 (Address not available)
Mon Aug 26 16:31:49 2024 daemon.notice netifd: wan (3215): udhcpc: broadcasting discover
Mon Aug 26 16:31:49 2024 daemon.notice netifd: wan (3215): udhcpc: broadcasting select for (REDACTED), server (REDACTED)
Mon Aug 26 16:31:50 2024 daemon.warn odhcpd[1768]: No default route present, overriding ra_lifetime to 0!
Mon Aug 26 16:31:50 2024 daemon.warn odhcpd[1768]: No default route present, overriding ra_lifetime to 0!
Mon Aug 26 16:31:50 2024 daemon.warn odhcpd[1768]: No default route present, overriding ra_lifetime to 0!
Mon Aug 26 16:31:52 2024 daemon.notice netifd: wan (3215): udhcpc: broadcasting select for (REDACTED), server (REDACTED)
Mon Aug 26 16:31:53 2024 daemon.notice netifd: wan (3215): udhcpc: lease of (REDACTED) obtained from (REDACTED), lease time 604800
Mon Aug 26 16:31:53 2024 daemon.notice netifd: Interface 'wan' is now up
Mon Aug 26 16:31:53 2024 user.notice firewall: Reloading firewall due to ifup of wan (eth1.832)
Mon Aug 26 16:31:54 2024 daemon.warn odhcpd[1768]: No default route present, overriding ra_lifetime to 0!
Mon Aug 26 16:31:54 2024 daemon.warn odhcpd[1768]: No default route present, overriding ra_lifetime to 0!
Mon Aug 26 16:31:54 2024 daemon.warn odhcpd[1768]: No default route present, overriding ra_lifetime to 0!
Mon Aug 26 16:31:54 2024 user.notice unbound: default protocol configuration
Mon Aug 26 16:31:54 2024 user.notice unbound: default memory configuration
Mon Aug 26 16:31:54 2024 user.notice unbound: default recursion configuration
Mon Aug 26 16:31:54 2024 daemon.info unbound: [2966:0] info: service stopped (unbound 1.20.0).
Mon Aug 26 16:31:54 2024 daemon.info unbound: [2966:0] info: server stats for thread 0: 80 queries, 0 answers from cache, 80 recursions, 0 prefetch, 0 rejected by ip ratelimiting
Mon Aug 26 16:31:54 2024 daemon.info unbound: [2966:0] info: server stats for thread 0: requestlist max 2 avg 1 exceeded 0 jostled 0
Mon Aug 26 16:31:54 2024 daemon.info unbound: [2966:0] info: average recursion processing time 0.001714 sec
Mon Aug 26 16:31:54 2024 daemon.info unbound: [2966:0] info: histogram of recursion processing times
Mon Aug 26 16:31:54 2024 daemon.info unbound: [2966:0] info: [25%]=0.00128 median[50%]=0.001536 [75%]=0.001792
Mon Aug 26 16:31:54 2024 daemon.info unbound: [2966:0] info: lower(secs) upper(secs) recursions
Mon Aug 26 16:31:54 2024 daemon.info unbound: [2966:0] info:    0.001024    0.002048 78
Mon Aug 26 16:31:55 2024 daemon.notice unbound: [3560:0] notice: init module 0: respip
Mon Aug 26 16:31:55 2024 daemon.notice unbound: [3560:0] notice: init module 1: iterator
Mon Aug 26 16:31:55 2024 daemon.info unbound: [3560:0] info: start of service (unbound 1.20.0).
Mon Aug 26 16:32:01 2024 daemon.notice netifd: wan6 (3211): Cannot find device "wan6"
Mon Aug 26 16:32:01 2024 daemon.notice netifd: wan6 (3211): Error: inet6 address is expected rather than "".
Mon Aug 26 16:32:01 2024 daemon.notice netifd: Network device 'lan1' link is down
Mon Aug 26 16:32:01 2024 kern.info kernel: [   63.154523] br-lan: port 1(lan1) entered disabled state
Mon Aug 26 16:32:01 2024 kern.info kernel: [   63.154635] mt7530-mdio mdio-bus:1f lan1: Link is Down
Mon Aug 26 16:32:03 2024 daemon.warn odhcpd[1768]: No default route present, overriding ra_lifetime to 0!
Mon Aug 26 16:32:05 2024 daemon.notice netifd: bridge 'br-lan' link is down
Mon Aug 26 16:32:05 2024 daemon.notice netifd: VLAN 'br-lan.10' link is down
Mon Aug 26 16:32:05 2024 daemon.warn odhcpd[1768]: No default route present, overriding ra_lifetime to 0!
Mon Aug 26 16:32:05 2024 daemon.notice netifd: Interface 'home' has link connectivity loss
Mon Aug 26 16:32:05 2024 daemon.notice netifd: VLAN 'br-lan.20' link is down
Mon Aug 26 16:32:05 2024 daemon.notice netifd: Interface 'dmz' has link connectivity loss
Mon Aug 26 16:32:05 2024 daemon.notice netifd: VLAN 'br-lan.832' link is down
Mon Aug 26 16:32:05 2024 daemon.notice netifd: Interface 'livebox' has link connectivity loss
Mon Aug 26 16:32:05 2024 daemon.warn odhcpd[1768]: No default route present, overriding ra_lifetime to 0!
Mon Aug 26 16:32:07 2024 kern.info kernel: [   68.810601] mt7530-mdio mdio-bus:1f lan1: Link is Up - 1Gbps/Full - flow control rx/tx
Mon Aug 26 16:32:07 2024 kern.info kernel: [   68.810628] br-lan: port 1(lan1) entered blocking state
Mon Aug 26 16:32:07 2024 daemon.notice netifd: Network device 'lan1' link is up
Mon Aug 26 16:32:07 2024 daemon.notice netifd: bridge 'br-lan' link is up
Mon Aug 26 16:32:07 2024 daemon.notice netifd: VLAN 'br-lan.10' link is up
Mon Aug 26 16:32:07 2024 daemon.notice netifd: Interface 'home' has link connectivity
Mon Aug 26 16:32:07 2024 daemon.notice netifd: VLAN 'br-lan.20' link is up
Mon Aug 26 16:32:07 2024 daemon.notice netifd: Interface 'dmz' has link connectivity
Mon Aug 26 16:32:07 2024 daemon.notice netifd: VLAN 'br-lan.832' link is up
Mon Aug 26 16:32:07 2024 daemon.notice netifd: Interface 'livebox' has link connectivity
Mon Aug 26 16:32:07 2024 kern.info kernel: [   68.823732] br-lan: port 1(lan1) entered forwarding state
Mon Aug 26 16:32:08 2024 daemon.warn odhcpd[1768]: No default route present, overriding ra_lifetime to 0!
Mon Aug 26 16:32:08 2024 daemon.warn odhcpd[1768]: No default route present, overriding ra_lifetime to 0!
Mon Aug 26 16:32:08 2024 daemon.warn odhcpd[1768]: No default route present, overriding ra_lifetime to 0!
Mon Aug 26 16:32:08 2024 daemon.warn odhcpd[1768]: No default route present, overriding ra_lifetime to 0!
Mon Aug 26 16:34:12 2024 daemon.warn odhcpd[1768]: No default route present, overriding ra_lifetime to 0!
Mon Aug 26 16:34:12 2024 daemon.warn odhcpd[1768]: No default route present, overriding ra_lifetime to 0!
Mon Aug 26 16:34:12 2024 daemon.warn odhcpd[1768]: No default route present, overriding ra_lifetime to 0!

The only message that seems strange for me is about netifd.

Mon Aug 26 16:32:01 2024 daemon.notice netifd: wan6 (3211): Cannot find device "wan6"
Mon Aug 26 16:32:01 2024 daemon.notice netifd: wan6 (3211): Error: inet6 address is expected rather than "".
Mon Aug 26 16:32:01 2024 daemon.notice netifd: Network device 'lan1' link is down
Mon Aug 26 16:32:01 2024 kern.info kernel: [   63.154523] br-lan: port 1(lan1) entered disabled state
Mon Aug 26 16:32:01 2024 kern.info kernel: [   63.154635] mt7530-mdio mdio-bus:1f lan1: Link is Down
Mon Aug 26 16:32:03 2024 daemon.warn odhcpd[1768]: No default route present, overriding ra_lifetime to 0!
Mon Aug 26 16:32:05 2024 daemon.notice netifd: bridge 'br-lan' link is down
Mon Aug 26 16:32:05 2024 daemon.notice netifd: VLAN 'br-lan.10' link is down

Any ideas on how to get out of this problem?

Please connect to your OpenWrt device using ssh and copy the output of the following commands and post it here using the "Preformatted text </> " button:
grafik
Remember to redact passwords, MAC addresses and any public IP addresses you may have:

ubus call system board
cat /etc/config/network
cat /etc/config/wireless
cat /etc/config/dhcp
cat /etc/config/firewall

If I have to export my configuration every time to correct an issue with my router, I won't do it anymore. I wouldn't get any help in return, but at least I wouldn't expose myself any further. I would have much preferred to have been given information about the software. But if it's non-existent then it's not surprising to have this type of request.

It is how it works - you tell your software version, and the relevant network config.
From the log looks like network config was damaged during forced upgrade. As long as you conceal config nothing can be changes.

I created several custom images with the OpenWrt Buildroot system. These images were flashed on different memory cards and seemed to work correctly.

I don't think I've made any new changes. Since I've turned off the router, none of my images seem to get a working IPv6 connection.

So, following your procedure, I have to publish my real configuration on the Web every time. If a configuration error can cause the router to malfunction, then it's conceivable that my router could be vulnerable to targeted malicious actions. Even more so if my image has bugs, because I won't be able to detect and correct them.

In your threads i dont see your device or config files.