Network state filling up terminal

Hi! So currently my terminal is filling with:
docker0 port 4(XXXX) entered suspended state
eth0 XXX entered blocking state
“” “” renamed from
“” “” entered disabled state
“” “” entered enabled state
and similar statuses. Basically network connection states are printing in the terminal. I had this issue once before and found a setting to change to fix this but I cannot remember or find that solution again. Does anyone happen to know hot to turn this off?

Hi,

Did you ever manage to fix this issue? I am getting the same and it is quite annoying.
Thanks

dmesg -n 3

This will reduce verbosity of kernel logs to console. Let’s see whether this is sufficiently already to mute the Docker network messages. Otherwise you can reduce it down to 1.

1 Like

Ty so much. That was it

I just checked back, and on our server, these network adapter state change messages are severity “info”, which should not be printed to console with dmesg -n 7 while dmesg -n 4 should be the default :thinking:. Which SBC/hardware do you use?

EDIT: Ah nope, default is dmesg -n 7 since we removed the quiet flag from cmdline a while ago. This is the reason…

This can be tried to reduce console log verbosity, but leaving boot-time logs untouched:

echo 'kernel.printk = 5 4 1 7' > /etc/sysctl.d/99-printk.conf

The installation with this problem is a dietpi vm running on proxmox/intel

Jep, was a false assumption by me regarding the default console log verbosity. Since dmesg -n X is not boot persistent, the above sysctl config should do.

This should solve it: v8.12 · MichaIng/DietPi@328c3bd · GitHub

I have the same issue with latest Dietpi.

cat /etc/sysctl.d/97-dietpi.conf
# Reduce swap file usage to a minimum
vm.swappiness=1

# Allow all users to "ping" without further capabilities: https://fedoraproject.org/wiki/Changes/EnableSysctlPingGroupRange
net.ipv4.ping_group_range = 0 2147483647

# Limit kernel logs to console to warnings and errors
kernel.printk = 4 4 1 7

dmesg:

[Sat May 11 18:02:27 2024] br-01599cbe44fa: port 5(vethc80a3d8) entered blocking state
[Sat May 11 18:02:27 2024] br-01599cbe44fa: port 5(vethc80a3d8) entered disabled state
[Sat May 11 18:02:27 2024] device vethc80a3d8 entered promiscuous mode
[Sat May 11 18:02:27 2024] br-01599cbe44fa: port 5(vethc80a3d8) entered blocking state
[Sat May 11 18:02:27 2024] br-01599cbe44fa: port 5(vethc80a3d8) entered forwarding state
[Sat May 11 18:02:28 2024] eth0: renamed from veth9b55849
[Sat May 11 18:02:28 2024] eth0: renamed from veth20f84e8
[Sat May 11 18:02:28 2024] br-01599cbe44fa: port 3(veth0bf057f) entered disabled state
[Sat May 11 18:02:28 2024] br-01599cbe44fa: port 4(veth61c593d) entered disabled state
[Sat May 11 18:02:28 2024] br-01599cbe44fa: port 5(vethc80a3d8) entered disabled state
[Sat May 11 18:02:28 2024] IPv6: ADDRCONF(NETDEV_CHANGE): veth79db4d6: link becomes ready
[Sat May 11 18:02:28 2024] br-549771c91db0: port 3(veth79db4d6) entered blocking state
[Sat May 11 18:02:28 2024] br-549771c91db0: port 3(veth79db4d6) entered forwarding state
[Sat May 11 18:02:28 2024] eth0: renamed from vethcabf365
[Sat May 11 18:02:28 2024] IPv6: ADDRCONF(NETDEV_CHANGE): vethe852d4b: link becomes ready
[Sat May 11 18:02:28 2024] br-549771c91db0: port 2(vethe852d4b) entered blocking state
[Sat May 11 18:02:28 2024] br-549771c91db0: port 2(vethe852d4b) entered forwarding state
[Sat May 11 18:02:28 2024] IPv6: ADDRCONF(NETDEV_CHANGE): veth5022463: link becomes ready
[Sat May 11 18:02:28 2024] br-549771c91db0: port 1(veth5022463) entered blocking state
[Sat May 11 18:02:28 2024] br-549771c91db0: port 1(veth5022463) entered forwarding state
[Sat May 11 18:02:28 2024] eth1: renamed from veth79b666c
[Sat May 11 18:02:28 2024] IPv6: ADDRCONF(NETDEV_CHANGE): veth0bf057f: link becomes ready
[Sat May 11 18:02:28 2024] br-01599cbe44fa: port 3(veth0bf057f) entered blocking state
[Sat May 11 18:02:28 2024] br-01599cbe44fa: port 3(veth0bf057f) entered forwarding state
[Sat May 11 18:02:28 2024] eth1: renamed from veth47cb918
[Sat May 11 18:02:28 2024] eth1: renamed from veth644c61b
[Sat May 11 18:02:28 2024] IPv6: ADDRCONF(NETDEV_CHANGE): vethc80a3d8: link becomes ready
[Sat May 11 18:02:28 2024] br-01599cbe44fa: port 5(vethc80a3d8) entered blocking state
[Sat May 11 18:02:28 2024] br-01599cbe44fa: port 5(vethc80a3d8) entered forwarding state
[Sat May 11 18:02:28 2024] IPv6: ADDRCONF(NETDEV_CHANGE): veth61c593d: link becomes ready
[Sat May 11 18:02:28 2024] br-01599cbe44fa: port 4(veth61c593d) entered blocking state
[Sat May 11 18:02:28 2024] br-01599cbe44fa: port 4(veth61c593d) entered forwarding state