Netgear R6220 dns unstable

Hi,
I have a problem with dns configuration in my router. Generally, it works, but sometimes e.g. when turning on pc (lan), I see that dns does not work. (I can ping from pc only by ip, not by domain name) At the same time wifi devices have no problem. And sometimes it's the other way around, lan dns works, but wifi does not. Rebooting router solves that problem.
I don't even know where to start now. I tried the 'logread' command, but the output didn't show anything special. How could I fix this?

Logread output

rn.info kernel: [60064.722463] mt7530 mdio-bus:1f lan2: Link is Down
Mon Feb 28 19:43:33 2022 kern.info kernel: [60064.732879] br-lan: port 2(lan2) entered disabled state
Mon Feb 28 19:43:33 2022 daemon.notice netifd: Network device 'lan2' link is down
Mon Feb 28 19:43:35 2022 kern.info kernel: [60066.770592] mt7530 mdio-bus:1f lan2: Link is Up - 10Mbps/Full - flow control off
Mon Feb 28 19:43:35 2022 kern.info kernel: [60066.785408] br-lan: port 2(lan2) entered blocking state
Mon Feb 28 19:43:35 2022 kern.info kernel: [60066.795891] br-lan: port 2(lan2) entered forwarding state
Mon Feb 28 19:43:35 2022 daemon.notice netifd: Network device 'lan2' link is up
Mon Feb 28 19:43:39 2022 kern.info kernel: [60070.866409] mt7530 mdio-bus:1f lan2: Link is Down
Mon Feb 28 19:43:39 2022 kern.info kernel: [60070.875965] br-lan: port 2(lan2) entered disabled state
Mon Feb 28 19:43:39 2022 daemon.notice netifd: Network device 'lan2' link is down
Mon Feb 28 19:43:44 2022 kern.info kernel: [60074.962645] mt7530 mdio-bus:1f lan2: Link is Up - 1Gbps/Full - flow control rx/tx
Mon Feb 28 19:43:44 2022 kern.info kernel: [60074.977658] br-lan: port 2(lan2) entered blocking state
Mon Feb 28 19:43:44 2022 kern.info kernel: [60074.988145] br-lan: port 2(lan2) entered forwarding state
Mon Feb 28 19:43:44 2022 daemon.notice netifd: Network device 'lan2' link is up
Mon Feb 28 19:43:50 2022 kern.info kernel: [60081.106310] mt7530 mdio-bus:1f lan2: Link is Down
Mon Feb 28 19:43:50 2022 kern.info kernel: [60081.115849] br-lan: port 2(lan2) entered disabled state
Mon Feb 28 19:43:50 2022 daemon.notice netifd: Network device 'lan2' link is down
Mon Feb 28 19:43:53 2022 kern.info kernel: [60084.178437] mt7530 mdio-bus:1f lan2: Link is Up - 1Gbps/Full - flow control rx/tx
Mon Feb 28 19:43:53 2022 kern.info kernel: [60084.193429] br-lan: port 2(lan2) entered blocking state
Mon Feb 28 19:43:53 2022 kern.info kernel: [60084.203913] br-lan: port 2(lan2) entered forwarding state
Mon Feb 28 19:43:53 2022 daemon.notice netifd: Network device 'lan2' link is up
Mon Feb 28 19:43:53 2022 daemon.info dnsmasq[5252]: read /etc/hosts - 4 addresses
Mon Feb 28 19:43:53 2022 daemon.info dnsmasq[5252]: read /tmp/hosts/odhcpd - 0 addresses
Mon Feb 28 19:43:53 2022 daemon.info dnsmasq[5252]: read /tmp/hosts/dhcp.cfg01411c - 2 addresses
Mon Feb 28 19:43:53 2022 daemon.info dnsmasq-dhcp[5252]: read /etc/ethers - 0 addresses
Mon Feb 28 19:43:57 2022 daemon.info dnsmasq-dhcp[5252]: DHCPDISCOVER(br-lan) 192.168.1.101 b4:2e:99:c1:20:b1
Mon Feb 28 19:43:57 2022 daemon.info dnsmasq-dhcp[5252]: DHCPOFFER(br-lan) 192.168.1.101 b4:2e:99:c1:20:b1
Mon Feb 28 19:43:57 2022 daemon.info dnsmasq[5252]: read /etc/hosts - 4 addresses
Mon Feb 28 19:43:57 2022 daemon.info dnsmasq[5252]: read /tmp/hosts/odhcpd - 1 addresses
Mon Feb 28 19:43:57 2022 daemon.info dnsmasq[5252]: read /tmp/hosts/dhcp.cfg01411c - 2 addresses
Mon Feb 28 19:43:57 2022 daemon.info dnsmasq-dhcp[5252]: read /etc/ethers - 0 addresses
Mon Feb 28 19:43:57 2022 daemon.info dnsmasq-dhcp[5252]: DHCPREQUEST(br-lan) 192.168.1.101 b4:2e:99:c1:20:b1
Mon Feb 28 19:43:57 2022 daemon.info dnsmasq-dhcp[5252]: DHCPACK(br-lan) 192.168.1.101 b4:2e:99:c1:20:b1 Kaczuszka
Mon Feb 28 19:48:58 2022 authpriv.info dropbear[9757]: Child connection from 192.168.1.101:49983
Mon Feb 28 19:49:15 2022 authpriv.notice dropbear[9757]: Password auth succeeded for 'root' from 192.168.1.101:49983

/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 'fd9f:e752:c043::/48'

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 ipaddr '192.168.1.1'
        option netmask '255.255.255.0'
        option ip6assign '60'

config interface 'wan6'
        option device 'wan'
        option proto 'dhcpv6'

config interface 'wan'
        option proto 'dhcp'
        option ifname 'eth1'
        option device 'eth1'
        option dns '8.8.8.8 8.8.4.4'
        option peerdns '0'

you are running V21 the DSA is bad in this version
there is alot of work just gone into the current master
I think it needed the newer kernel 5.10
so like me best to go back to V19 until V22 is out
it's going to be branched soon

I tried to install sysupgrade from here:

but it shows me an error

Tue Mar 1 19:14:50 CET 2022 upgrade: Device netgear,r6220 not supported by this image Tue Mar 1 19:14:50 CET 2022 upgrade: Supported devices: r6220 Image check failed.

you should ask them for support then :slight_smile:

Why not install an official version of OpenWrt? (do not attempt to keep settings when you run the upgrade).
https://firmware-selector.openwrt.org/?version=21.02.2&target=ramips%2Fmt7621&id=netgear_r6220

If using an official doesn't resolve the issue, at least the community here can help with more knowledge of the underlying system. When you use other forks/offshoots of OpenWrt, it is not always clear what might have been modified and how that can affect the configuration and operation of the system as a whole.

3 Likes

I used unofficial openwrt because it was my first attempt to installation openwrt and I had no expirience with linux. It has some packages presinstalled etc.
Anyway I just installed official one and I'll give feedback soon. Thans for suggestions :slight_smile:

First 3-4 days router worked without any problems, but problem returned. I tried adding an automatic rebbot once a day hoping it would help, with no resoult.
This time I tried to "ping google.com" thorugh ssh first. This command returned proper result after few attempts (about 3 minutes).

post your dmesg after you've had one of those blackouts ...

dmesg

[    0.000000] Linux version 5.4.179 (builder@buildhost) (gcc version 8.4.0 (OpenWrt GCC 8.4.0 r16495-bf0c965af0)) #0 SMP Wed Feb 16 20:29:10 2022
[    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 Netgear R6220
[    0.000000] Initrd not found or empty - disabling initrd
[    0.000000] VPE topology {2} total 2
[    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.000000] Built 1 zonelists, mobility grouping on.  Total pages: 32480
[    0.000000] Kernel command line: console=ttyS0,57600 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=000079f0
[    0.000000] Readback ErrCtl register=000079f0
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] Memory: 121076K/131072K available (6095K kernel code, 204K rwdata, 748K rodata, 1260K init, 238K bss, 9996K reserved, 0K cma-reserved, 0K highmem)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
[    0.000000] rcu: Hierarchical RCU implementation.
[    0.000000] rcu:     RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 25 jiffies.
[    0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=2
[    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.015492] Calibrating delay loop... 583.68 BogoMIPS (lpj=1167360)
[    0.055798] pid_max: default: 32768 minimum: 301
[    0.065121] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.079520] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.097262] rcu: Hierarchical SRCU implementation.
[    0.107181] smp: Bringing up secondary CPUs ...
[    8.132885] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[    8.132895] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[    8.132906] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[    8.133008] CPU1 revision is: 0001992f (MIPS 1004Kc)
[    0.144232] Synchronize counters for CPU 1: done.
[    0.203874] smp: Brought up 1 node, 2 CPUs
[    0.216317] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[    0.235591] futex hash table entries: 512 (order: 2, 16384 bytes, linear)
[    0.249200] pinctrl core: initialized pinctrl subsystem
[    0.260896] NET: Registered protocol family 16
[    0.278051] FPU Affinity set after 4688 emulations
[    0.300551] clocksource: Switched to clocksource GIC
[    0.311981] thermal_sys: Registered thermal governor 'step_wise'
[    0.312586] NET: Registered protocol family 2
[    0.333238] IP idents hash table entries: 2048 (order: 2, 16384 bytes, linear)
[    0.349316] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes, linear)
[    0.366075] TCP established hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.381196] TCP bind hash table entries: 1024 (order: 1, 8192 bytes, linear)
[    0.395184] TCP: Hash tables configured (established 1024 bind 1024)
[    0.407929] UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.420824] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.434848] NET: Registered protocol family 1
[    0.443412] PCI: CLS 0 bytes, default 32
[    0.540349] 4 CPUs re-calibrate udelay(lpj = 1163264)
[    0.551849] workingset: timestamp_bits=14 max_order=15 bucket_order=1
[    0.578401] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.589939] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.611657] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 251)
[    0.628687] mt7621_gpio 1e000600.gpio: registering 32 gpios
[    0.639981] mt7621_gpio 1e000600.gpio: registering 32 gpios
[    0.651241] mt7621_gpio 1e000600.gpio: registering 32 gpios
[    0.663113] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled
[    0.679848] printk: console [ttyS0] disabled
[    0.688296] 1e000c00.uartlite: ttyS0 at MMIO 0x1e000c00 (irq = 15, base_baud = 3125000) is a 16550A
[    0.706232] printk: console [ttyS0] enabled
[    0.722778] printk: bootconsole [early0] disabled
[    0.744979] mt7621-nand 1e003000.nand: Using programmed access timing: 31c07388
[    0.759793] nand: device found, Manufacturer ID: 0xc2, Chip ID: 0xf1
[    0.772451] nand: Macronix MX30LF1G18AC
[    0.780094] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    0.795178] mt7621-nand 1e003000.nand: ECC strength adjusted to 4 bits
[    0.808214] mt7621-nand 1e003000.nand: Using programmed access timing: 21005134
[    0.822782] mt7621-nand 1e003000.nand: Using programmed access timing: 21005134
[    0.837346] Scanning device for bad blocks
[    2.143945] 6 fixed-partitions partitions found on MTD device mt7621-nand
[    2.157469] Creating 6 MTD partitions on "mt7621-nand":
[    2.167894] 0x000000000000-0x000000100000 : "u-boot"
[    2.179358] 0x000000100000-0x000000200000 : "SC PID"
[    2.190839] 0x000000200000-0x000000600000 : "kernel"
[    2.202307] 0x000000600000-0x000002200000 : "ubi"
[    2.213404] 0x000002e00000-0x000002f00000 : "factory"
[    2.225068] 0x000004200000-0x000007e00000 : "reserved"
[    2.263048] mt7530 mdio-bus:1f: MT7530 adapts as multi-chip module
[    2.279416] mtk_soc_eth 1e100000.ethernet eth0: mediatek frame engine at 0xbe100000, irq 17
[    2.298315] mt7621-pci 1e140000.pcie: Parsing DT failed
[    2.311894] NET: Registered protocol family 10
[    2.322184] Segment Routing with IPv6
[    2.329647] NET: Registered protocol family 17
[    2.338581] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this.
[    2.364688] 8021q: 802.1Q VLAN Support v1.8
[    2.376038] mt7530 mdio-bus:1f: MT7530 adapts as multi-chip module
[    2.400954] mt7530 mdio-bus:1f lan4 (uninitialized): PHY [dsa-0.0:00] driver [Generic PHY]
[    2.419020] mt7530 mdio-bus:1f lan3 (uninitialized): PHY [dsa-0.0:01] driver [Generic PHY]
[    2.437046] mt7530 mdio-bus:1f lan2 (uninitialized): PHY [dsa-0.0:02] driver [Generic PHY]
[    2.455042] mt7530 mdio-bus:1f lan1 (uninitialized): PHY [dsa-0.0:03] driver [Generic PHY]
[    2.471949] random: fast init done
[    2.473306] mt7530 mdio-bus:1f wan (uninitialized): PHY [dsa-0.0:04] driver [Generic PHY]
[    2.496696] mt7530 mdio-bus:1f: configuring for fixed/rgmii link mode
[    2.514350] DSA: tree 0 setup
[    2.520649] rt2880-pinmux pinctrl: pcie is already enabled
[    2.531742] mt7621-pci-phy 1e149000.pcie-phy: PHY for 0xbe149000 (dual port = 1)
[    2.546672] mt7621-pci-phy 1e14a000.pcie-phy: PHY for 0xbe14a000 (dual port = 0)
[    2.661199] mt7621-pci-phy 1e149000.pcie-phy: Xtal is 40MHz
[    2.672313] mt7621-pci-phy 1e14a000.pcie-phy: Xtal is 40MHz
[    2.783141] mt7621-pci 1e140000.pcie: pcie1 no card, disable it (RST & CLK)
[    2.797016] mt7621-pci 1e140000.pcie: PCIE0 enabled
[    2.806733] mt7621-pci 1e140000.pcie: PCIE2 enabled
[    2.816461] mt7621-pci 1e140000.pcie: PCI coherence region base: 0x60000000, mask/settings: 0xf0000002
[    2.835174] mt7621-pci 1e140000.pcie: PCI host bridge to bus 0000:00
[    2.847854] pci_bus 0000:00: root bus resource [io  0x1e160000-0x1e16ffff]
[    2.861556] pci_bus 0000:00: root bus resource [mem 0x60000000-0x6fffffff]
[    2.875251] pci_bus 0000:00: root bus resource [bus 00-ff]
[    2.886222] pci 0000:00:00.0: [0e8d:0801] type 01 class 0x060400
[    2.898220] pci 0000:00:00.0: reg 0x10: [mem 0x00000000-0x7fffffff]
[    2.910713] pci 0000:00:00.0: reg 0x14: [mem 0x60400000-0x6040ffff]
[    2.923274] pci 0000:00:00.0: supports D1
[    2.931260] pci 0000:00:00.0: PME# supported from D0 D1 D3hot
[    2.943135] pci 0000:00:01.0: [0e8d:0801] type 01 class 0x060400
[    2.955144] pci 0000:00:01.0: reg 0x10: [mem 0x00000000-0x7fffffff]
[    2.967638] pci 0000:00:01.0: reg 0x14: [mem 0x60410000-0x6041ffff]
[    2.980180] pci 0000:00:01.0: supports D1
[    2.988165] pci 0000:00:01.0: PME# supported from D0 D1 D3hot
[    3.001311] pci 0000:01:00.0: [14c3:7662] type 00 class 0x028000
[    3.013346] pci 0000:01:00.0: reg 0x10: [mem 0x00000000-0x000fffff 64bit]
[    3.026915] pci 0000:01:00.0: reg 0x30: [mem 0x00000000-0x0000ffff pref]
[    3.040387] pci 0000:01:00.0: PME# supported from D0 D3hot D3cold
[    3.053996] pci 0000:00:00.0: PCI bridge to [bus 01-ff]
[    3.064422] pci 0000:00:00.0:   bridge window [io  0x0000-0x0fff]
[    3.076564] pci 0000:00:00.0:   bridge window [mem 0x60000000-0x600fffff]
[    3.090088] pci 0000:00:00.0:   bridge window [mem 0x60100000-0x601fffff pref]
[    3.104483] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
[    3.117877] pci 0000:02:00.0: [14c3:7603] type 00 class 0x028000
[    3.129899] pci 0000:02:00.0: reg 0x10: [mem 0x00000000-0x000fffff]
[    3.142522] pci 0000:02:00.0: PME# supported from D0 D3hot D3cold
[    3.156135] pci 0000:00:01.0: PCI bridge to [bus 02-ff]
[    3.166561] pci 0000:00:01.0:   bridge window [io  0x0000-0x0fff]
[    3.178701] pci 0000:00:01.0:   bridge window [mem 0x60200000-0x602fffff]
[    3.192228] pci 0000:00:01.0:   bridge window [mem 0x60300000-0x603fffff pref]
[    3.206624] pci_bus 0000:02: busn_res: [bus 02-ff] end is updated to 02
[    3.219845] pci 0000:00:00.0: BAR 0: no space for [mem size 0x80000000]
[    3.233032] pci 0000:00:00.0: BAR 0: failed to assign [mem size 0x80000000]
[    3.246903] pci 0000:00:01.0: BAR 0: no space for [mem size 0x80000000]
[    3.260077] pci 0000:00:01.0: BAR 0: failed to assign [mem size 0x80000000]
[    3.273951] pci 0000:00:00.0: BAR 8: assigned [mem 0x60000000-0x600fffff]
[    3.287479] pci 0000:00:00.0: BAR 9: assigned [mem 0x60100000-0x601fffff pref]
[    3.301874] pci 0000:00:01.0: BAR 8: assigned [mem 0x60200000-0x602fffff]
[    3.315400] pci 0000:00:01.0: BAR 9: assigned [mem 0x60300000-0x603fffff pref]
[    3.329791] pci 0000:00:00.0: BAR 1: assigned [mem 0x60400000-0x6040ffff]
[    3.343329] pci 0000:00:01.0: BAR 1: assigned [mem 0x60410000-0x6041ffff]
[    3.356862] pci 0000:00:00.0: BAR 7: assigned [io  0x1e160000-0x1e160fff]
[    3.370385] pci 0000:00:01.0: BAR 7: assigned [io  0x1e161000-0x1e161fff]
[    3.383918] pci 0000:01:00.0: BAR 0: assigned [mem 0x60000000-0x600fffff 64bit]
[    3.398497] pci 0000:01:00.0: BAR 6: assigned [mem 0x60100000-0x6010ffff pref]
[    3.412890] pci 0000:00:00.0: PCI bridge to [bus 01]
[    3.422781] pci 0000:00:00.0:   bridge window [io  0x1e160000-0x1e160fff]
[    3.436304] pci 0000:00:00.0:   bridge window [mem 0x60000000-0x600fffff]
[    3.449834] pci 0000:00:00.0:   bridge window [mem 0x60100000-0x601fffff pref]
[    3.464230] pci 0000:02:00.0: BAR 0: assigned [mem 0x60200000-0x602fffff]
[    3.477761] pci 0000:00:01.0: PCI bridge to [bus 02]
[    3.487652] pci 0000:00:01.0:   bridge window [io  0x1e161000-0x1e161fff]
[    3.501181] pci 0000:00:01.0:   bridge window [mem 0x60200000-0x602fffff]
[    3.514702] pci 0000:00:01.0:   bridge window [mem 0x60300000-0x603fffff pref]
[    3.530457] UBI: auto-attach mtd3
[    3.537117] ubi0: attaching mtd3
[    3.543925] mt7530 mdio-bus:1f: Link is Up - 1Gbps/Full - flow control off
[    3.831816] ubi0: scanning is finished
[    3.855722] ubi0: attached mtd3 (name "ubi", size 28 MiB)
[    3.866544] ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
[    3.880245] ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 2048
[    3.893770] ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096
[    3.907637] ubi0: good PEBs: 224, bad PEBs: 0, corrupted PEBs: 0
[    3.919608] ubi0: user volume: 2, internal volumes: 1, max. volumes count: 128
[    3.934001] ubi0: max/mean erase counter: 15/9, WL threshold: 4096, image sequence number: 1625843641
[    3.952381] ubi0: available PEBs: 0, total reserved PEBs: 224, PEBs reserved for bad PEB handling: 20
[    3.970772] ubi0: background thread "ubi_bgt0d" started, PID 464
[    3.973150] block ubiblock0_0: created from ubi0:0(rootfs)
[    3.993693] ubiblock: device ubiblock0_0 (rootfs) set to be root filesystem
[    4.007568] hctosys: unable to open rtc device (rtc0)
[    4.025762] VFS: Mounted root (squashfs filesystem) readonly on device 254:0.
[    4.044247] Freeing unused kernel memory: 1260K
[    4.053324] This architecture does not have kernel memory protection.
[    4.066151] Run /sbin/init as init process
[    4.557710] init: Console is alive
[    4.564759] init: - watchdog -
[    5.329311] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[    5.431182] usbcore: registered new interface driver usbfs
[    5.442287] usbcore: registered new interface driver hub
[    5.453023] usbcore: registered new device driver usb
[    5.473158] xhci-mtk 1e1c0000.xhci: 1e1c0000.xhci supply vusb33 not found, using dummy regulator
[    5.490916] xhci-mtk 1e1c0000.xhci: xHCI Host Controller
[    5.501552] xhci-mtk 1e1c0000.xhci: new USB bus registered, assigned bus number 1
[    5.524562] xhci-mtk 1e1c0000.xhci: hcc params 0x01401198 hci version 0x96 quirks 0x0000000000290010
[    5.542863] xhci-mtk 1e1c0000.xhci: irq 16, io mem 0x1e1c0000
[    5.555672] hub 1-0:1.0: USB hub found
[    5.563331] hub 1-0:1.0: 2 ports detected
[    5.572016] xhci-mtk 1e1c0000.xhci: xHCI Host Controller
[    5.582718] xhci-mtk 1e1c0000.xhci: new USB bus registered, assigned bus number 2
[    5.597658] xhci-mtk 1e1c0000.xhci: Host supports USB 3.0 SuperSpeed
[    5.610536] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
[    5.627588] hub 2-0:1.0: USB hub found
[    5.635184] hub 2-0:1.0: 1 port detected
[    5.648983] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[    5.676717] init: - preinit -
[    6.438687] mtk_soc_eth 1e100000.ethernet eth0: configuring for fixed/rgmii link mode
[    6.454763] mtk_soc_eth 1e100000.ethernet eth0: Link is Up - 1Gbps/Full - flow control rx/tx
[    6.472156] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[    6.644583] random: jshn: uninitialized urandom read (4 bytes read)
[    6.763842] random: jshn: uninitialized urandom read (4 bytes read)
[    6.814007] random: jshn: uninitialized urandom read (4 bytes read)
[    7.060767] mt7530 mdio-bus:1f lan1: configuring for phy/gmii link mode
[    7.074363] 8021q: adding VLAN 0 to HW filter on device lan1
[   11.304490] UBIFS (ubi0:1): Mounting in unauthenticated mode
[   11.316002] UBIFS (ubi0:1): background thread "ubifs_bgt0_1" started, PID 599
[   11.399578] UBIFS (ubi0:1): recovery needed
[   11.571270] UBIFS (ubi0:1): recovery completed
[   11.580311] UBIFS (ubi0:1): UBIFS: mounted UBI device 0, volume 1, name "rootfs_data"
[   11.595909] UBIFS (ubi0:1): LEB size: 126976 bytes (124 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes
[   11.615661] UBIFS (ubi0:1): FS size: 20697088 bytes (19 MiB, 163 LEBs), journal size 1015809 bytes (0 MiB, 8 LEBs)
[   11.636267] UBIFS (ubi0:1): reserved for root: 977574 bytes (954 KiB)
[   11.649099] UBIFS (ubi0:1): media format: w5/r0 (latest is w5/r0), UUID 1A448A0E-92D6-40D5-B3CF-CB4169186919, small LPT model
[   11.684674] mount_root: switching to ubifs overlay
[   11.711406] urandom-seed: Seeding with /etc/urandom.seed
[   11.874866] procd: - early -
[   11.880766] procd: - watchdog -
[   12.508545] procd: - watchdog -
[   12.518143] procd: - ubus -
[   12.617795] procd: - init -
[   13.036491] usb 1-2: new high-speed USB device number 2 using xhci-mtk
[   13.522887] kmodloader: loading kernel modules from /etc/modules.d/*
[   13.582281] urngd: v1.0.2 started.
[   13.617897] Loading modules backported from Linux version v5.10.85-0-ge4f2aee6612e
[   13.633070] Backport generated by backports.git v5.10.85-1-0-gf988973f
[   13.732073] xt_time: kernel timezone is -0000
[   13.763222] usbcore: registered new interface driver cdc_ether
[   13.945915] usb 1-2: USB disconnect, device number 2
[   14.007674] mt7621-pci 1e140000.pcie: bus=2 slot=1 irq=21
[   14.018564] pci 0000:00:01.0: enabling device (0006 -> 0007)
[   14.029892] mt7603e 0000:02:00.0: enabling device (0000 -> 0002)
[   14.042125] mt7603e 0000:02:00.0: ASIC revision: 76030010
[   14.074766] crng init done
[   14.080265] random: 7 urandom warning(s) missed due to ratelimiting
[   14.529487] usb 1-2: new high-speed USB device number 3 using xhci-mtk
[   14.710120] mt7603e 0000:02:00.0: Firmware Version: ap_pcie
[   14.713594] cdc_ether 1-2:1.0 eth1: register 'cdc_ether' at usb-1e1c0000.xhci-2, CDC Ethernet Device, 0c:5b:8f:27:9a:64
[   14.721295] mt7603e 0000:02:00.0: Build Time: 20160107100755
[   14.786647] mt7603e 0000:02:00.0: firmware init done
[   14.971716] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
[   14.998615] mt7621-pci 1e140000.pcie: bus=1 slot=0 irq=19
[   15.009517] pci 0000:00:00.0: enabling device (0006 -> 0007)
[   15.020822] mt76x2e 0000:01:00.0: enabling device (0000 -> 0002)
[   15.033071] mt76x2e 0000:01:00.0: ASIC revision: 76120044
[   15.505087] mt76x2e 0000:01:00.0: ROM patch build: 20141115060606a
[   15.535410] mt76x2e 0000:01:00.0: Firmware Version: 0.0.00
[   15.546416] mt76x2e 0000:01:00.0: Build: 1
[   15.554612] mt76x2e 0000:01:00.0: Build Time: 201507311614____
[   15.634372] mt76x2e 0000:01:00.0: Firmware running!
[   15.660781] ieee80211 phy1: Selected rate control algorithm 'minstrel_ht'
[   15.722669] PPP generic driver version 2.4.2
[   15.753555] NET: Registered protocol family 24
[   15.807092] kmodloader: done loading kernel modules from /etc/modules.d/*
[   26.018205] mtk_soc_eth 1e100000.ethernet eth0: Link is Down
[   26.047986] mtk_soc_eth 1e100000.ethernet eth0: configuring for fixed/rgmii link mode
[   26.064911] mtk_soc_eth 1e100000.ethernet eth0: Link is Up - 1Gbps/Full - flow control rx/tx
[   26.091959] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[   26.109294] mt7530 mdio-bus:1f lan1: configuring for phy/gmii link mode
[   26.123369] 8021q: adding VLAN 0 to HW filter on device lan1
[   26.138615] br-lan: port 1(lan1) entered blocking state
[   26.149352] br-lan: port 1(lan1) entered disabled state
[   26.162127] device lan1 entered promiscuous mode
[   26.171472] device eth0 entered promiscuous mode
[   26.210007] mt7530 mdio-bus:1f lan2: configuring for phy/gmii link mode
[   26.225632] 8021q: adding VLAN 0 to HW filter on device lan2
[   26.240726] br-lan: port 2(lan2) entered blocking state
[   26.251296] br-lan: port 2(lan2) entered disabled state
[   26.264268] device lan2 entered promiscuous mode
[   26.284050] mt7530 mdio-bus:1f lan3: configuring for phy/gmii link mode
[   26.299711] 8021q: adding VLAN 0 to HW filter on device lan3
[   26.316176] br-lan: port 3(lan3) entered blocking state
[   26.326744] br-lan: port 3(lan3) entered disabled state
[   26.338871] device lan3 entered promiscuous mode
[   26.358347] mt7530 mdio-bus:1f lan4: configuring for phy/gmii link mode
[   26.372157] 8021q: adding VLAN 0 to HW filter on device lan4
[   26.388762] br-lan: port 4(lan4) entered blocking state
[   26.399339] br-lan: port 4(lan4) entered disabled state
[   26.420821] device lan4 entered promiscuous mode
[   26.456867] mt7530 mdio-bus:1f wan: configuring for phy/gmii link mode
[   26.470736] 8021q: adding VLAN 0 to HW filter on device wan
[   29.082947] br-lan: port 5(wlan0) entered blocking state
[   29.093661] br-lan: port 5(wlan0) entered disabled state
[   29.105068] device wlan0 entered promiscuous mode
[   29.292785] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[   29.305920] br-lan: port 5(wlan0) entered blocking state
[   29.316617] br-lan: port 5(wlan0) entered forwarding state
[   29.340907] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready
[ 9487.879380] mt7530 mdio-bus:1f lan2: Link is Up - 10Mbps/Full - flow control off
[ 9487.894199] br-lan: port 2(lan2) entered blocking state
[ 9487.904684] br-lan: port 2(lan2) entered forwarding state
[ 9492.999078] mt7530 mdio-bus:1f lan2: Link is Down
[ 9493.008885] br-lan: port 2(lan2) entered disabled state
[ 9496.071295] mt7530 mdio-bus:1f lan2: Link is Up - 1Gbps/Full - flow control rx/tx
[ 9496.086319] br-lan: port 2(lan2) entered blocking state
[ 9496.096807] br-lan: port 2(lan2) entered forwarding state
[ 9499.143014] mt7530 mdio-bus:1f lan2: Link is Down
[ 9499.152537] br-lan: port 2(lan2) entered disabled state
[ 9502.215132] mt7530 mdio-bus:1f lan2: Link is Up - 1Gbps/Full - flow control rx/tx
[ 9502.230146] br-lan: port 2(lan2) entered blocking state
[ 9502.240643] br-lan: port 2(lan2) entered forwarding state
[10415.619769] mt7530 mdio-bus:1f lan2: Link is Down
[10415.629569] br-lan: port 2(lan2) entered disabled state
[10418.692003] mt7530 mdio-bus:1f lan2: Link is Up - 100Mbps/Full - flow control rx/tx
[10418.707341] br-lan: port 2(lan2) entered blocking state
[10418.717824] br-lan: port 2(lan2) entered forwarding state
[10872.320763] mt7530 mdio-bus:1f lan2: Link is Down
[10872.330569] br-lan: port 2(lan2) entered disabled state
[10873.345003] mt7530 mdio-bus:1f lan2: Link is Up - 10Mbps/Full - flow control rx/tx
[10873.360168] br-lan: port 2(lan2) entered blocking state
[10873.370654] br-lan: port 2(lan2) entered forwarding state
[10874.368750] mt7530 mdio-bus:1f lan2: Link is Down
[10874.378275] br-lan: port 2(lan2) entered disabled state
[10879.488957] mt7530 mdio-bus:1f lan2: Link is Up - 1Gbps/Full - flow control rx/tx
[10879.503966] br-lan: port 2(lan2) entered blocking state
[10879.514452] br-lan: port 2(lan2) entered forwarding state
[12384.758096] mt7530 mdio-bus:1f lan2: Link is Down
[12384.767890] br-lan: port 2(lan2) entered disabled state
[12387.830303] mt7530 mdio-bus:1f lan2: Link is Up - 100Mbps/Full - flow control rx/tx
[12387.845689] br-lan: port 2(lan2) entered blocking state
[12387.856152] br-lan: port 2(lan2) entered forwarding state
[13268.463039] mt7530 mdio-bus:1f lan2: Link is Down
[13268.472846] br-lan: port 2(lan2) entered disabled state
[13275.631223] mt7530 mdio-bus:1f lan2: Link is Up - 1Gbps/Full - flow control rx/tx
[13275.646212] br-lan: port 2(lan2) entered blocking state
[13275.656695] br-lan: port 2(lan2) entered forwarding state

does the same happen if you go via wifi ?

It happens via wifi too

Last time I noticed, that multiple using of "ping google.pl" repiars that issue, but when I don't use internet for long time, the problem returns.