Lost connections and auto reconnect

I have both wireless and 1000baseT ethernet.

The wireless works fine, no problem.
The 1000baseT (my preference) is constantly up/down, up for a while then down. The down is only for a few seconds, network manager (I think) does automatically reconnect.

Is there a way of making it stable?

The problem is Manjaro problem. The same computer/network with a live CD of opensuse leap 15.3 works without any problem.

Here’s my network inxi

$ inxi -Nxxxz
Network:   Device-1: Realtek RTL8822CE 802.11ac PCIe Wireless Network Adapter vendor: Lenovo driver: rtw_8822ce v: N/A
            port: 2000 bus-ID: 02:00.0 chip-ID: 10ec:c822 class-ID: 0280
            IF: wlp2s0 state: down mac: <filter>
            Device-2: Realtek RTL8153 Gigabit Ethernet Adapter type: USB driver: r8152 bus-ID: 2-1.4:3 chip-ID: 0bda:8153
            class-ID: 0000 serial: <filter>
            IF: enp4s0f3u1u4 state: up speed: 1000 Mbps duplex: full mac: <filter>

Here’s my full inxi

$ inxi -Fxxxz
System:    Kernel: 5.13.19-2-MANJARO x86_64 bits: 64 compiler: gcc v: 11.1.0 Desktop: Xfce 4.16.0 tk: Gtk 3.24.29
            info: xfce4-panel wm: xfwm 4.16.1 vt: 7 dm: LightDM 1.30.0 Distro: Manjaro Linux base: Arch Linux
Machine:   Type: Convertible System: LENOVO product: 81X2 v: IdeaPad Flex 5 14ARE05 serial: <filter> Chassis: type: 31
            v: IdeaPad Flex 5 14ARE05 serial: <filter>
            Mobo: LENOVO model: LNVNB161216 v: SDK0J40709 WIN serial: <filter> UEFI: LENOVO v: EECN36WW date: 05/17/2021
Battery:   ID-1: BAT0 charge: 31.9 Wh (60.8%) condition: 52.5/52.5 Wh (100.0%) volts: 11.1 min: 11.5 model: Celxpert L19C3PD6
            type: Li-poly serial: <filter> status: Unknown cycles: 1
CPU:       Info: 8-Core model: AMD Ryzen 7 4700U with Radeon Graphics bits: 64 type: MCP arch: Zen 2 rev: 1 cache: L2: 4 MiB
            flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm bogomips: 31952
            Speed: 1397 MHz min/max: 1400/2000 MHz boost: enabled Core speeds (MHz): 1: 1397 2: 1345 3: 1397 4: 1398 5: 1397
            6: 1397 7: 1397 8: 1397
Graphics:  Device-1: Advanced Micro Devices [AMD/ATI] Renoir vendor: Lenovo driver: amdgpu v: kernel bus-ID: 04:00.0
            chip-ID: 1002:1636 class-ID: 0300
            Device-2: Syntek Integrated Camera type: USB driver: uvcvideo bus-ID: 1-4:5 chip-ID: 174f:243f class-ID: 0e02
            serial: <filter>
            Display: x11 server: X.Org 1.20.13 compositor: xfwm4 v: 4.16.1 driver: loaded: amdgpu,ati unloaded: modesetting
            alternate: fbdev,vesa resolution: 2560x1080~60Hz s-dpi: 96
            OpenGL: renderer: AMD RENOIR (DRM 3.41.0 5.13.19-2-MANJARO LLVM 12.0.1) v: 4.6 Mesa 21.2.2 direct render: Yes
Audio:     Device-1: Advanced Micro Devices [AMD/ATI] driver: snd_hda_intel v: kernel bus-ID: 04:00.1 chip-ID: 1002:1637
            class-ID: 0403
            Device-2: Advanced Micro Devices [AMD] Raven/Raven2/FireFlight/Renoir Audio Processor vendor: Lenovo driver: N/A
            bus-ID: 04:00.5 chip-ID: 1022:15e2 class-ID: 0480
            Device-3: Advanced Micro Devices [AMD] Family 17h HD Audio vendor: Lenovo driver: snd_hda_intel v: kernel
            bus-ID: 04:00.6 chip-ID: 1022:15e3 class-ID: 0403
            Sound Server-1: ALSA v: k5.13.19-2-MANJARO running: yes
            Sound Server-2: JACK v: 1.9.19 running: no
            Sound Server-3: PulseAudio v: 15.0 running: yes
            Sound Server-4: PipeWire v: 0.3.37 running: no
Network:   Device-1: Realtek RTL8822CE 802.11ac PCIe Wireless Network Adapter vendor: Lenovo driver: rtw_8822ce v: N/A
            port: 2000 bus-ID: 02:00.0 chip-ID: 10ec:c822 class-ID: 0280
            IF: wlp2s0 state: down mac: <filter>
            Device-2: Realtek RTL8153 Gigabit Ethernet Adapter type: USB driver: r8152 bus-ID: 2-1.4:3 chip-ID: 0bda:8153
            class-ID: 0000 serial: <filter>
            IF: enp4s0f3u1u4 state: up speed: 1000 Mbps duplex: full mac: <filter>
Bluetooth: Device-1: Realtek Bluetooth Radio type: USB driver: btusb v: 0.8 bus-ID: 3-4:3 chip-ID: 0bda:c123 class-ID: e001
            serial: <filter>
            Report: rfkill ID: hci0 rfk-id: 3 state: down bt-service: enabled,running rfk-block: hardware: no software: yes
            address: see --recommends
Drives:    Local Storage: total: 506.02 GiB used: 0 KiB (0.0%)
            ID-1: /dev/nvme0n1 vendor: Samsung model: MZVLB512HBJQ-000L2 size: 476.94 GiB speed: 31.6 Gb/s lanes: 4 type: SSD
            serial: <filter> rev: 3L1QEXF7 temp: 34.9 C scheme: GPT
            ID-2: /dev/sda type: USB vendor: Kingston model: DataTraveler 3.0 size: 29.08 GiB type: N/A serial: <filter>
            rev: PMAP scheme: MBR
Partition: Message: No partition data found.
Swap:      Alert: No swap data was found.
Sensors:   System Temperatures: cpu: 45.4 C mobo: 36.0 C gpu: amdgpu temp: 38.0 C
            Fan Speeds (RPM): N/A
Info:      Processes: 262 Uptime: 4m wakeups: 5 Memory: 15.01 GiB used: 1.47 GiB (9.8%) Init: systemd v: 249 Compilers:
            gcc: N/A Packages: pacman: 1124 Shell: Bash v: 5.1.8 running-in: xfce4-terminal inxi: 3.3.06

Thanks

Hello @elfroggio :wink:

Maybe because of ipv6? Disable it in the settings.

No, that didn’t work, after about 10 minutes Manjaro disconnected then it took about 30 to 45 seconds to reconnect.

I have found the problem, I just don’t know how to solve it:

Oct 08 00:15:00 manjaro kernel: r8152 2-1.4:1.0: skip request firmware
Oct 08 00:15:00 manjaro kernel: r8152 2-1.4:1.0: load rtl8153a-4 v2 02/07/20 successfully
Oct 08 00:15:03 manjaro NetworkManager[781]: <info>  [1633652103.5480] device (enp4s0f3u1u4): carrier: link connected
Oct 08 00:15:03 manjaro NetworkManager[781]: <info>  [1633652103.5487] device (enp4s0f3u1u4): DHCPv4 lease renewal requested
Oct 08 00:15:03 manjaro kernel: r8152 2-1.4:1.0 enp4s0f3u1u4: carrier on
Oct 08 00:15:03 manjaro NetworkManager[781]: <info>  [1633652103.5676] dhcp4 (enp4s0f3u1u4): canceled DHCP transaction
Oct 08 00:15:03 manjaro NetworkManager[781]: <info>  [1633652103.5677] dhcp4 (enp4s0f3u1u4): state changed bound -> terminated
Oct 08 00:15:03 manjaro NetworkManager[781]: <info>  [1633652103.5682] dhcp4 (enp4s0f3u1u4): activation: beginning transaction (timeout in 45 sec>
Oct 08 00:15:03 manjaro NetworkManager[781]: <info>  [1633652103.5721] dhcp4 (enp4s0f3u1u4): state changed unknown -> bound, address=192.168.8.101
O

and I get:

Oct 08 00:09:15 manjaro NetworkManager[781]: <info>  [1633651755.2126] device (enp4s0f3u1u4): DHCPv4 lease renewal requested

The DHCP lease is much too short. How can I change it?

Thanks

That show it:

nmcli -f DHCP4 con show "$(nmcli -g NAME con show --active)"

I would rather say that the problem is the DHCP-Server of the router which sends the lease time, so on Manjaro there is nothing to do. A workaround could be using a static IP.

No, it has to do with Manjaro. It’s the same dhcp server, a small gl.inet router running openwrt.

Notice on Opensuse (at the end) that there are 2 options that are missing in Manjaro:

DHCP4.OPTION[5]:                        dhcp_rebinding_time = 37800m ==> 10.5 hours
DHCP4.OPTION[6]:                        dhcp_renewal_time = 21600 ==> 6 hours

Here’s the output on Manjaro:

[manjaro@manjaro ~]$ nmcli -f DHCP4 con show "$(nmcli -g NAME con show --active)"
DHCP4.OPTION[1]:                        broadcast_address = 192.168.8.255
DHCP4.OPTION[2]:                        dhcp_lease_time = 43200
DHCP4.OPTION[3]:                        dhcp_server_identifier = 192.168.8.1
DHCP4.OPTION[4]:                        domain_name = lan
DHCP4.OPTION[5]:                        domain_name_servers = 192.168.8.1
DHCP4.OPTION[6]:                        expiry = 1633749814
DHCP4.OPTION[7]:                        host_name = manjaro
DHCP4.OPTION[8]:                        ip_address = 192.168.8.101
DHCP4.OPTION[9]:                        next_server = 192.168.8.1
DHCP4.OPTION[10]:                       requested_broadcast_address = 1
DHCP4.OPTION[11]:                       requested_domain_name = 1
DHCP4.OPTION[12]:                       requested_domain_name_servers = 1
DHCP4.OPTION[13]:                       requested_domain_search = 1
DHCP4.OPTION[14]:                       requested_host_name = 1
DHCP4.OPTION[15]:                       requested_interface_mtu = 1
DHCP4.OPTION[16]:                       requested_ms_classless_static_routes = 1
DHCP4.OPTION[17]:                       requested_nis_domain = 1
DHCP4.OPTION[18]:                       requested_nis_servers = 1
DHCP4.OPTION[19]:                       requested_ntp_servers = 1
DHCP4.OPTION[20]:                       requested_rfc3442_classless_static_routes = 1
DHCP4.OPTION[21]:                       requested_root_path = 1
DHCP4.OPTION[22]:                       requested_routers = 1
DHCP4.OPTION[23]:                       requested_static_routes = 1
DHCP4.OPTION[24]:                       requested_subnet_mask = 1
DHCP4.OPTION[25]:                       requested_time_offset = 1
DHCP4.OPTION[26]:                       requested_wpad = 1
DHCP4.OPTION[27]:                       routers = 192.168.8.1
DHCP4.OPTION[28]:                       subnet_mask = 255.255.255.0

and here’s the output with Opensuse Leap 15.3

opensuse leap 15.3::$ nmcli -f DHCP4 con show "$(nmcli -g NAME con show --active)"

DHCP4.OPTION[1]:                        broadcast_address = 192.168.8.255
DHCP4.OPTION[2]:                        dad_wait_time = 0
DHCP4.OPTION[3]:                        dhcp_lease_time = 43200
DHCP4.OPTION[4]:                        dhcp_message_type = 5
DHCP4.OPTION[5]:                        dhcp_rebinding_time = 37800
DHCP4.OPTION[6]:                        dhcp_renewal_time = 21600
DHCP4.OPTION[7]:                        dhcp_server_identifier = 192.168.8.1
DHCP4.OPTION[8]:                        domain_name = lan
DHCP4.OPTION[9]:                        domain_name_servers = 192.168.8.1
DHCP4.OPTION[10]:                       expiry = 1633750545
DHCP4.OPTION[11]:                       host_name = newt
DHCP4.OPTION[12]:                       ip_address = 192.168.8.101
DHCP4.OPTION[13]:                       network_number = 192.168.8.0
DHCP4.OPTION[14]:                       next_server = 192.168.8.1
DHCP4.OPTION[15]:                       requested_broadcast_address = 1
DHCP4.OPTION[16]:                       requested_domain_name = 1
DHCP4.OPTION[17]:                       requested_domain_name_servers = 1
DHCP4.OPTION[18]:                       requested_domain_search = 1
DHCP4.OPTION[19]:                       requested_host_name = 1
DHCP4.OPTION[20]:                       requested_interface_mtu = 1
DHCP4.OPTION[21]:                       requested_ms_classless_static_routes = 1
DHCP4.OPTION[22]:                       requested_nds_context = 1
DHCP4.OPTION[23]:                       requested_nds_servers = 1
DHCP4.OPTION[24]:                       requested_nds_tree_name = 1
DHCP4.OPTION[25]:                       requested_netbios_dd_server = 1
DHCP4.OPTION[26]:                       requested_netbios_name_servers = 1
DHCP4.OPTION[27]:                       requested_netbios_node_type = 1
DHCP4.OPTION[28]:                       requested_netbios_scope = 1
DHCP4.OPTION[29]:                       requested_nis_domain = 1
DHCP4.OPTION[30]:                       requested_nis_servers = 1
DHCP4.OPTION[31]:                       requested_ntp_servers = 1
DHCP4.OPTION[32]:                       requested_rfc3442_classless_static_routes = 1
DHCP4.OPTION[33]:                       requested_root_path = 1
DHCP4.OPTION[34]:                       requested_routers = 1
DHCP4.OPTION[35]:                       requested_static_routes = 1
DHCP4.OPTION[36]:                       requested_subnet_mask = 1
DHCP4.OPTION[37]:                       requested_wpad = 1
DHCP4.OPTION[38]:                       routers = 192.168.8.1
DHCP4.OPTION[39]:                       subnet_mask = 255.255.255.0

On Manjaro, the 1st renewal happens after 5 minutes, then the renewal times get longer and longer but never longer than 1 hour in between.

It looks like my only option is going to switch to static ip.