IPV6 drops at random intervals

Hi! After long years I’m back to linux and specifically, I’m using the latest Manjaro with KDE.
All is great so far, except networking is iffy at some times.

The problem is IPV6 drops and stops working, all requests are then routed through IPV4 which still works. It will start working again if I reconnect from NetworkManager applet.

Providing some logs below.
By looking at NetworkManager and avahi I see that when this happens, it’s because avahi replaces my global ipv6 with link-local. Is it possible to know why and to configure just to maybe try getting a new one if lease expires?

[kriko@manjaro ~]$ inxi --admin --verbosity=7 --filter --no-host
System:    Kernel: 5.8.11-1-MANJARO x86_64 bits: 64 compiler: N/A 
           parameters: BOOT_IMAGE=/@/boot/vmlinuz-5.8-x86_64 root=UUID=75cc91cc-40ae-4ef3-a5f4-dff61902af65 rw 
           rootflags=subvol=@ quiet apparmor=1 security=apparmor resume=UUID=191d83bf-109d-49c3-8e21-e6facf243eb8 
           udev.log_priority=3 
           Desktop: KDE Plasma 5.19.5 tk: Qt 5.15.1 info: latte-dock wm: kwin_x11 dm: SDDM Distro: Manjaro Linux 
Machine:   Type: Desktop Mobo: ASUSTeK model: TUF GAMING X570-PLUS v: Rev X.0x serial: <filter> UEFI: American Megatrends 
           v: 2607 date: 08/14/2020 
Battery:   ID-1: hidpp_battery_0 charge: N/A condition: N/A volts: 4.0/N/A 
           model: Logitech G502 LIGHTSPEED Wireless Gaming Mouse type: N/A serial: <filter> status: Discharging 
Memory:    RAM: total: 15.61 GiB used: 2.75 GiB (17.6%) 
           RAM Report: permissions: Unable to run dmidecode. Root privileges required. 
CPU:       Topology: 8-Core model: AMD Ryzen 7 3700X bits: 64 type: MT MCP arch: Zen 2 family: 17 (23) model-id: 71 (113) 
           stepping: N/A microcode: 8701021 L2 cache: 4096 KiB bogomips: 115025 
           Speed: 3885 MHz min/max: 2200/3600 MHz boost: enabled Core speeds (MHz): 1: 3318 2: 2473 3: 2444 4: 2043 5: 2054 
           6: 3719 7: 2063 8: 2044 9: 2712 10: 2052 11: 2057 12: 3946 13: 2094 14: 2103 15: 2996 16: 2091 
           Flags: 3dnowprefetch abm adx aes aperfmperf apic arat avic avx avx2 bmi1 bmi2 bpext cat_l3 cdp_l3 clflush 
           clflushopt clwb clzero cmov cmp_legacy constant_tsc cpb cpuid cqm cqm_llc cqm_mbm_local cqm_mbm_total cqm_occup_llc 
           cr8_legacy cx16 cx8 de decodeassists extapic extd_apicid f16c flushbyasid fma fpu fsgsbase fxsr fxsr_opt ht 
           hw_pstate ibpb ibs irperf lahf_lm lbrv lm mba mca mce misalignsse mmx mmxext monitor movbe msr mtrr mwaitx 
           nonstop_tsc nopl npt nrip_save nx osvw overflow_recov pae pat pausefilter pclmulqdq pdpe1gb perfctr_core 
           perfctr_llc perfctr_nb pfthreshold pge pni popcnt pse pse36 rdpid rdpru rdrand rdseed rdt_a rdtscp rep_good sep sev 
           sha_ni skinit smap smca sme smep ssbd sse sse2 sse4_1 sse4_2 sse4a ssse3 stibp succor svm svm_lock syscall tce 
           topoext tsc tsc_scale umip v_vmsave_vmload vgif vmcb_clean vme vmmcall wbnoinvd wdt xgetbv1 xsave xsavec xsaveerptr 
           xsaveopt xsaves 
           Vulnerabilities: Type: itlb_multihit status: Not affected 
           Type: l1tf status: Not affected 
           Type: mds status: Not affected 
           Type: meltdown status: Not affected 
           Type: spec_store_bypass mitigation: Speculative Store Bypass disabled via prctl and seccomp 
           Type: spectre_v1 mitigation: usercopy/swapgs barriers and __user pointer sanitization 
           Type: spectre_v2 mitigation: Full AMD retpoline, IBPB: conditional, STIBP: conditional, RSB filling 
           Type: srbds status: Not affected 
           Type: tsx_async_abort status: Not affected 
Graphics:  Device-1: NVIDIA GP104 [GeForce GTX 1080] driver: nvidia v: 450.66 alternate: nouveau,nvidia_drm bus ID: 07:00.0 
           chip ID: 10de:1b80 
           Display: x11 server: X.Org 1.20.9 compositor: kwin_x11 driver: nvidia display ID: :0 screens: 1 
           Screen-1: 0 s-res: 2560x2520 s-dpi: 107 s-size: 608x598mm (23.9x23.5") s-diag: 853mm (33.6") 
           Monitor-1: DP-2 res: 1920x1080 dpi: 92 size: 531x299mm (20.9x11.8") diag: 609mm (24") 
           Monitor-2: DP-4 res: 2560x1440 dpi: 109 size: 597x336mm (23.5x13.2") diag: 685mm (27") 
           OpenGL: renderer: GeForce GTX 1080/PCIe/SSE2 v: 4.6.0 NVIDIA 450.66 direct render: Yes 
Audio:     Device-1: NVIDIA GP104 High Definition Audio driver: snd_hda_intel v: kernel bus ID: 07:00.1 chip ID: 10de:10f0 
           Device-2: Creative Sound Blaster X3 type: USB driver: cdc_acm,hid-generic,snd-usb-audio,usbhid bus ID: 1-2:2 
           chip ID: 041e:3264 serial: <filter> 
           Sound Server: ALSA v: k5.8.11-1-MANJARO 
Network:   Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet vendor: ASUSTeK driver: r8169 v: kernel port: f000 
           bus ID: 03:00.0 chip ID: 10ec:8168 
           IF: enp3s0 state: up speed: 1000 Mbps duplex: full mac: <filter> 
           IP v4: <filter> type: dynamic noprefixroute scope: global broadcast: <filter> 
           IP v6: <filter> type: noprefixroute scope: link 
           WAN IP: <filter> 
Drives:    Local Storage: total: 5.01 TiB used: 53.29 GiB (1.0%) 
           SMART Message: Unable to run smartctl. Root privileges required. 
           ID-1: /dev/sda vendor: Crucial model: CT1000MX500SSD1 size: 931.51 GiB block size: physical: 512 B logical: 512 B 
           speed: 6.0 Gb/s serial: <filter> rev: 023 scheme: GPT 
           ID-2: /dev/sdb vendor: Samsung model: SSD 860 EVO 500GB size: 465.76 GiB block size: physical: 512 B logical: 512 B 
           speed: 6.0 Gb/s serial: <filter> rev: 4B6Q scheme: GPT 
           ID-3: /dev/sdc vendor: Toshiba model: HDWD130 size: 2.73 TiB block size: physical: 4096 B logical: 512 B 
           speed: 6.0 Gb/s rotation: 7200 rpm serial: <filter> rev: ACF0 scheme: GPT 
           ID-4: /dev/sdd vendor: Crucial model: CT512MX100SSD1 size: 476.94 GiB block size: physical: 4096 B logical: 512 B 
           speed: 6.0 Gb/s serial: <filter> rev: MU03 scheme: GPT 
           ID-5: /dev/sde vendor: Western Digital model: WD5002AALX-00J37A0 size: 465.76 GiB block size: physical: 512 B 
           logical: 512 B speed: 6.0 Gb/s serial: <filter> rev: 1H15 scheme: GPT 
           Message: No Optical or Floppy data was found. 
RAID:      Message: No RAID data was found. 
Partition: ID-1: / raw size: 62.50 GiB size: 62.50 GiB (100.00%) used: 8.45 GiB (13.5%) fs: btrfs dev: /dev/sdd2 label: N/A 
           uuid: 75cc91cc-40ae-4ef3-a5f4-dff61902af65 
           ID-2: /boot/efi raw size: 500.0 MiB size: 499.0 MiB (99.80%) used: 708 KiB (0.1%) fs: vfat dev: /dev/sdd1 
           label: N/A uuid: 5412-E701 
           ID-3: /home raw size: 394.42 GiB size: 394.42 GiB (100.00%) used: 44.84 GiB (11.4%) fs: btrfs dev: /dev/sdd3 
           label: N/A uuid: 0ae658c8-41e2-4b98-9826-71f2154ae0a5 
           ID-4: /var raw size: 62.50 GiB size: 62.50 GiB (100.00%) used: 8.45 GiB (13.5%) fs: btrfs dev: /dev/sdd2 label: N/A 
           uuid: 75cc91cc-40ae-4ef3-a5f4-dff61902af65 
Swap:      Kernel: swappiness: 60 (default) cache pressure: 100 (default) 
           ID-1: swap-1 type: partition size: 19.53 GiB used: 0 KiB (0.0%) priority: -2 dev: /dev/sdd4 label: N/A 
           uuid: 191d83bf-109d-49c3-8e21-e6facf243eb8 
Unmounted: ID-1: /dev/sda1 size: 16.0 MiB fs: <superuser/root required> label: N/A uuid: N/A 
           ID-2: /dev/sda2 size: 931.50 GiB fs: ntfs label: Fast storage uuid: FEDE43B4DE43644D 
           ID-3: /dev/sdb1 size: 529.0 MiB fs: ntfs label: Recovery uuid: 724648E04648A6A7 
           ID-4: /dev/sdb2 size: 100.0 MiB fs: vfat label: N/A uuid: 904C-50B5 
           ID-5: /dev/sdb3 size: 16.0 MiB fs: <superuser/root required> label: N/A uuid: N/A 
           ID-6: /dev/sdb4 size: 465.13 GiB fs: ntfs label: N/A uuid: 3CDE51E6DE51994A 
           ID-7: /dev/sdc1 size: 128.0 MiB fs: <superuser/root required> label: N/A uuid: N/A 
           ID-8: /dev/sdc2 size: 2.73 TiB fs: bitlocker label: N/A uuid: N/A 
           ID-9: /dev/sde1 size: 216.11 GiB fs: ext4 label: home uuid: f840cf6a-74ff-4403-8357-0192dcb618ca 
           ID-10: /dev/sde2 size: 249.65 GiB fs: ntfs label: WD Black 500GB uuid: EC58B03858B0037E 
USB:       Hub: 1-0:1 info: Full speed (or root) Hub ports: 6 rev: 2.0 speed: 480 Mb/s chip ID: 1d6b:0002 
           Device-1: 1-2:2 info: Creative Sound Blaster X3 type: HID,Abstract (modem),CDC-Data,Audio 
           driver: cdc_acm,hid-generic,snd-usb-audio,usbhid interfaces: 7 rev: 2.0 speed: 480 Mb/s chip ID: 041e:3264 
           serial: <filter> 
           Device-2: 1-5:3 info: ASUSTek Broadcom BCM20702A0 Bluetooth type: <vendor specific> driver: btusb interfaces: 4 
           rev: 2.0 speed: 12 Mb/s chip ID: 0b05:17cb serial: <filter> 
           Hub: 2-0:1 info: Full speed (or root) Hub ports: 4 rev: 3.1 speed: 10 Gb/s chip ID: 1d6b:0003 
           Hub: 3-0:1 info: Full speed (or root) Hub ports: 6 rev: 2.0 speed: 480 Mb/s chip ID: 1d6b:0002 
           Device-1: 3-6:2 info: ASUSTek AURA LED Controller type: <vendor specific> driver: hid-generic,usbhid interfaces: 2 
           rev: 2.0 speed: 12 Mb/s chip ID: 0b05:18f3 serial: <filter> 
           Hub: 4-0:1 info: Full speed (or root) Hub ports: 4 rev: 3.1 speed: 10 Gb/s chip ID: 1d6b:0003 
           Hub: 5-0:1 info: Full speed (or root) Hub ports: 4 rev: 2.0 speed: 480 Mb/s chip ID: 1d6b:0002 
           Device-1: 5-2:2 info: Logitech USB Receiver type: Keyboard,Mouse,HID driver: logitech-djreceiver,usbhid 
           interfaces: 3 rev: 2.0 speed: 12 Mb/s chip ID: 046d:c539 
           Device-2: 5-4:3 info: Microdia Backlit Gaming Keyboard type: Keyboard,Mouse driver: hid-generic,usbhid 
           interfaces: 2 rev: 2.0 speed: 12 Mb/s chip ID: 0c45:652f 
           Hub: 6-0:1 info: Full speed (or root) Hub ports: 4 rev: 3.1 speed: 10 Gb/s chip ID: 1d6b:0003 
Sensors:   System Temperatures: cpu: 39.4 C mobo: N/A gpu: nvidia temp: 47 C 
           Fan Speeds (RPM): N/A gpu: nvidia fan: 0% 
Info:      Processes: 347 Uptime: 16m Init: systemd v: 246 Compilers: gcc: 10.2.0 Packages: pacman: 1227 lib: 320 flatpak: 0 
           Shell: Bash v: 5.0.18 running in: yakuake inxi: 3.1.05

[manjaro kriko]# journalctl -f -u avahi-daemon -u NetworkManager
-- Logs begin at Tue 2020-10-06 07:58:06 CEST. --
okt 07 21:43:09 manjaro NetworkManager[803]: <info>  [1602099789.0722] audit: op="statistics" arg="refresh-rate-ms" pid=1409 uid=1000 result="success"
okt 07 21:43:09 manjaro NetworkManager[803]: <info>  [1602099789.2804] dhcp6 (enp3s0): activation: beginning transaction (timeout in 45 seconds)
okt 07 21:43:09 manjaro avahi-daemon[800]: Leaving mDNS multicast group on interface enp3s0.IPv6 with address fe80::9051:78b8:7f22:1ea3.
okt 07 21:43:09 manjaro avahi-daemon[800]: Joining mDNS multicast group on interface enp3s0.IPv6 with address 2a01:261:577:3900:db1a:2406:3ec4:f575.
okt 07 21:43:09 manjaro avahi-daemon[800]: Registering new address record for 2a01:261:577:3900:db1a:2406:3ec4:f575 on enp3s0.*.
okt 07 21:43:09 manjaro NetworkManager[803]: <info>  [1602099789.2808] policy: set 'Wired connection 1' (enp3s0) as default for IPv6 routing and DNS
okt 07 21:43:09 manjaro avahi-daemon[800]: Withdrawing address record for fe80::9051:78b8:7f22:1ea3 on enp3s0.
okt 07 21:43:09 manjaro NetworkManager[803]: <info>  [1602099789.2815] dhcp6 (enp3s0): option dhcp6_domain_search  => 'home'
okt 07 21:43:09 manjaro NetworkManager[803]: <info>  [1602099789.2815] dhcp6 (enp3s0): option dhcp6_name_servers   => '2a01:261:577:3900::1'
okt 07 21:43:09 manjaro NetworkManager[803]: <info>  [1602099789.2815] dhcp6 (enp3s0): state changed unknown -> bound
okt 07 21:53:09 manjaro avahi-daemon[800]: Withdrawing address record for 2a01:261:577:3900:db1a:2406:3ec4:* on enp3s0.
okt 07 21:53:09 manjaro avahi-daemon[800]: Leaving mDNS multicast group on interface enp3s0.IPv6 with address 2a01:261:577:3900:db1a:2406:3ec4:*.
okt 07 21:53:09 manjaro avahi-daemon[800]: Joining mDNS multicast group on interface enp3s0.IPv6 with address fe80::9051:78b8:7f22:1ea3.
okt 07 21:53:09 manjaro avahi-daemon[800]: Registering new address record for fe80::9051:78b8:7f22:1ea3 on enp3s0.*.

Hello :wave:

could you provide this output:

 nmcli device show enp3s0

with

 nmcli device mointor enp3s0

you could watch the the actions, which are made with the NetworkManager.

Also useful to load the module r8169 in debug mode. Here a little script:

sudo rmmod r8169 && sudo modprobe r8169 debug=16 && \
sudo systemctl restart NetworkManager && sleep 20 && \
[[ "$(ping -4 -c 3 whatismyipaddress.com)" =~ "0% packet loss"  ]] && echo "ipv4 works" && \
[[ "$(ping -6 -c 3 whatismyipaddress.com)" =~ "0% packet loss"  ]] && echo "ipv6 works" 

After that watch the journal with journalctl -f for more information.

1 Like

Disable it and also disable mac address randomization.

@megavolt Thank you. I’ll post logs when it drops again, however when trying to load module in debug mode:

[ 111.877253] r8169: unknown parameter ‘debug’ ignored

Do I need different flavor of kernel, maybe modules in this one are compiled with debug options?

@bogdancovaciu does mac gets spoofed also on wired networks by default?

Depending on what Network you connect, mac address and IPv6 can be spoofed likewise as IPv4 regardless if is Lan of WiFi … I’m no expert in this, but on my end i only use IPv4.