Networking yoyo (down & up)

Every few minutes I get in the journal + a notification in the system tray:


Jun 18 10:05:10 dodoite kernel: r8152 2-1.4:1.0 eth0: carrier on 
Jun 18 10:05:10 dodoite NetworkManager[900]: <info>  [1655571910.5924] dhcp4 (eth0): canceled DHCP transaction, DHCP client pid 5167 
Jun 18 10:05:10 dodoite NetworkManager[900]: <info>  [1655571910.5925] dhcp4 (eth0): state changed extended -> terminated 
Jun 18 10:05:10 dodoite NetworkManager[900]: <info>  [1655571910.5931] dhcp4 (eth0): activation: beginning transaction (timeout in 45 seconds) 
Jun 18 10:05:10 dodoite NetworkManager[900]: <info>  [1655571910.5950] dhcp4 (eth0): dhclient started with pid 5616 
Jun 18 10:05:10 dodoite NetworkManager[900]: <info>  [1655571910.6482] dhcp4 (eth0):   address 192.168.8.99 
Jun 18 10:05:10 dodoite NetworkManager[900]: <info>  [1655571910.6483] dhcp4 (eth0):   plen 24 (255.255.255.0) 
Jun 18 10:05:10 dodoite NetworkManager[900]: <info>  [1655571910.6483] dhcp4 (eth0):   gateway 192.168.8.1 
Jun 18 10:05:10 dodoite NetworkManager[900]: <info>  [1655571910.6483] dhcp4 (eth0):   lease time 43200 
Jun 18 10:05:10 dodoite NetworkManager[900]: <info>  [1655571910.6484] dhcp4 (eth0):   hostname 'dodoite' 
Jun 18 10:05:10 dodoite NetworkManager[900]: <info>  [1655571910.6484] dhcp4 (eth0):   nameserver '192.168.8.1' 
Jun 18 10:05:10 dodoite NetworkManager[900]: <info>  [1655571910.6484] dhcp4 (eth0):   domain name 'lan' 
Jun 18 10:05:10 dodoite NetworkManager[900]: <info>  [1655571910.6484] dhcp4 (eth0): state changed unknown -> extended, address=192.168.8.99 
Jun 18 10:09:19 dodoite NetworkManager[900]: <info>  [1655572159.6638] device (eth0): carrier: link connected 
Jun 18 10:09:19 dodoite kernel: r8152 2-1.4:1.0 eth0: carrier on 
Jun 18 10:09:19 dodoite NetworkManager[900]: <info>  [1655572159.6644] device (eth0): DHCPv4 lease renewal requested 
Jun 18 10:09:19 dodoite NetworkManager[900]: <info>  [1655572159.6972] dhcp4 (eth0): canceled DHCP transaction, DHCP client pid 5616 
Jun 18 10:09:19 dodoite NetworkManager[900]: <info>  [1655572159.6972] dhcp4 (eth0): state changed extended -> terminated 
Jun 18 10:09:19 dodoite NetworkManager[900]: <info>  [1655572159.6978] dhcp4 (eth0): activation: beginning transaction (timeout in 45 seconds) 
Jun 18 10:09:19 dodoite NetworkManager[900]: <info>  [1655572159.6991] dhcp4 (eth0): dhclient started with pid 7880 
Jun 18 10:09:19 dodoite NetworkManager[900]: <info>  [1655572159.7437] dhcp4 (eth0):   address 192.168.8.99 
Jun 18 10:09:19 dodoite NetworkManager[900]: <info>  [1655572159.7437] dhcp4 (eth0):   plen 24 (255.255.255.0) 
Jun 18 10:09:19 dodoite NetworkManager[900]: <info>  [1655572159.7437] dhcp4 (eth0):   gateway 192.168.8.1 
Jun 18 10:09:19 dodoite NetworkManager[900]: <info>  [1655572159.7438] dhcp4 (eth0):   lease time 43200 
Jun 18 10:09:19 dodoite NetworkManager[900]: <info>  [1655572159.7438] dhcp4 (eth0):   hostname 'dodoite' 
Jun 18 10:09:19 dodoite NetworkManager[900]: <info>  [1655572159.7438] dhcp4 (eth0):   nameserver '192.168.8.1' 
Jun 18 10:09:19 dodoite NetworkManager[900]: <info>  [1655572159.7438] dhcp4 (eth0):   domain name 'lan' 
Jun 18 10:09:19 dodoite NetworkManager[900]: <info>  [1655572159.7438] dhcp4 (eth0): state changed unknown -> extended, address=192.168.8.99 
Jun 18 10:09:30 dodoite NetworkManager[900]: <info>  [1655572170.8798] device (eth0): carrier: link connected 
Jun 18 10:09:30 dodoite kernel: r8152 2-1.4:1.0 eth0: carrier on 
Jun 18 10:09:30 dodoite NetworkManager[900]: <info>  [1655572170.8805] device (eth0): DHCPv4 lease renewal requested 
Jun 18 10:09:30 dodoite NetworkManager[900]: <info>  [1655572170.9130] dhcp4 (eth0): canceled DHCP transaction, DHCP client pid 7880 
Jun 18 10:09:30 dodoite NetworkManager[900]: <info>  [1655572170.9131] dhcp4 (eth0): state changed extended -> terminated

The config is: STATIC IP, method manual in the network manager, not DHCP.

What am I missing?

Here’s my inxi for the network.


[FONT=monospace]**$ **inxi -CNxxx
**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:** 31940 
           **Speed:** 2690 MHz **min/max:** 1400/2000 MHz **boost:** enabled **Core speeds (MHz):****1:** 2690 **2:** 2562 **3:** 1724 **4:** 3230 **5:** 3014 
           **6:** 2538 **7:** 2514 **8:** 3417 
**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 
           **Device-2:** Realtek RTL8153 Gigabit Ethernet Adapter **type:** USB **driver:** r8152 **bus-ID:** 2-1.4:4 **chip-ID:** 0bda:8153 
           **class-ID:** 0000 **serial:** 000001


I use device 2.

Thanks


[/FONT]

I’ve been trying but…

Here’s my eth0.nmconnection


**$ **sudo cat /etc/NetworkManager/system-connections/eth0.nmconnection 

[connection] 
id=eth0 
uuid=7ba00b1d-8cdd-30da-91ad-bb83ed4f7474 
type=ethernet 
permissions= 

[ethernet] 
auto-negotiate=true 
mac-address-blacklist= 

[ipv4] 
address1=192.168.8.99/24,192.168.8.1 
dns=208.67.222.222;1.1.1.1; 
dns-search= 
method=manual 

[ipv6] 
addr-gen-mode=stable-privacy 
dns-search= 
method=disabled 

[proxy] 

Thanks

Show output of “nmcli connection show | cat”.


**$ **nmcli connection show | cat 
NAME  UUID                                  TYPE      DEVICE  
eth0  7ba00b1d-8cdd-30da-91ad-bb83ed4f7474  ethernet  eth0  

Did you change connection properties from automatic to manual IP address using NM GUI or CLI while connection was active? Try “nmcli device reapply eth0”.

25 minutes ago, I did:


sudo nmcli device reapply eth0

and I get:


Jun 19 13:21:04 dodoite NetworkManager[879]: <info>  [1655670064.7045] audit: op="device-reapply" interface="eth0" ifindex=4 pid=15251 uid=1000 result="success" 
Jun 19 13:24:37 dodoite NetworkManager[879]: <info>  [1655670277.4897] device (eth0): carrier: link connected 
Jun 19 13:24:37 dodoite kernel: r8152 2-1.4:1.0 eth0: carrier on 
Jun 19 13:33:27 dodoite NetworkManager[879]: <info>  [1655670807.4532] audit: op="statistics" interface="eth0" ifindex=4 args="2000" pid=2167 uid=1000 result="success" 
Jun 19 13:33:36 dodoite kernel: r8152 2-1.4:1.0 eth0: carrier on 
Jun 19 13:33:37 dodoite NetworkManager[879]: <info>  [1655670817.6128] audit: op="statistics" interface="eth0" ifindex=4 args="0" pid=2167 uid=1000 result="success" 
Jun 19 13:33:50 dodoite NetworkManager[879]: <info>  [1655670830.8667] device (eth0): carrier: link connected 
Jun 19 13:33:50 dodoite kernel: r8152 2-1.4:1.0 eth0: carrier on 
Jun 19 13:36:00 dodoite NetworkManager[879]: <info>  [1655670960.7870] device (eth0): carrier: link connected 
Jun 19 13:36:00 dodoite kernel: r8152 2-1.4:1.0 eth0: carrier on 
Jun 19 13:38:03 dodoite NetworkManager[879]: <info>  [1655671083.4593] device (eth0): carrier: link connected 
Jun 19 13:38:03 dodoite kernel: r8152 2-1.4:1.0 eth0: carrier on 
Jun 19 13:41:40 dodoite kernel: r8152 2-1.4:1.0 eth0: carrier on 
Jun 19 13:41:40 dodoite NetworkManager[879]: <info>  [1655671300.5641] device (eth0): carrier: link connected 
Jun 19 13:43:42 dodoite kernel: r8152 2-1.4:1.0 eth0: carrier on 
Jun 19 13:43:42 dodoite NetworkManager[879]: <info>  [1655671422.2120] device (eth0): carrier: link connected 
Jun 19 13:45:56 dodoite kernel: r8152 2-1.4:1.0 eth0: carrier on 
Jun 19 13:45:56 dodoite NetworkManager[879]: <info>  [1655671556.9647] device (eth0): carrier: link connected

Thanks but that’s not helping, it’s the same.

The carrier goes up & down, but it’s not a hardware problem because when I boot into my live debian 11.3 bullseye, no problem at all. So somewhere, there’s some setting in leap that makes the eth0 a “yoyo” :frowning:

Same what? First you show log full of DHCP requests and connection definition with static address. Now you show log without DHCP requests. So it is not “the same”.

May be next time you should start with explaining your actual problem and not expect others to read your mind.

The carrier goes up & down

And what is the actual problem besides these logs? You never explained it.

I have solved the problem. It’s TLP. Black listing the USB ethernet in TLP and now it works. This came from the manjaro forum which in turn came from an ubuntu forum.

BTW1, the exact problem was the carrier going up and down, so I only displayed the journal relating to eth0.

BTW2, how do I mark the thread as solved?

Thanks