You are not logged in.

#1 Today 12:29:29

reggieArchExpert
Member
From: Portland,Oregon
Registered: 2026-08-11
Posts: 59

[Solved] Frequent disconnent, slowdowns, etc...

1st weird problem:
Is this normal for nft?

table ip libvirt_network {
	comment "Managed by libvirt for virtual networks: https://libvirt.org/firewall.html#the-virtual-network-driver"
	chain forward {
		type filter hook forward priority filter; policy accept;
		counter packets 3 bytes 984 jump guest_cross
		counter packets 3 bytes 984 jump guest_input
		counter packets 3 bytes 984 jump guest_output
	}

	chain guest_output {
	}

	chain guest_input {
	}

	chain guest_cross {
	}

	chain guest_nat {
		type nat hook postrouting priority srcnat; policy accept;
	}
}
table ip6 libvirt_network {
	comment "Managed by libvirt for virtual networks: https://libvirt.org/firewall.html#the-virtual-network-driver"
	chain forward {
		type filter hook forward priority filter; policy accept;
		counter packets 0 bytes 0 jump guest_cross
		counter packets 0 bytes 0 jump guest_input
		counter packets 0 bytes 0 jump guest_output
	}

	chain guest_output {
	}

	chain guest_input {
	}

	chain guest_cross {
	}

	chain guest_nat {
		type nat hook postrouting priority srcnat; policy accept;
	}
}

Because if so then I don't mind leaving it alone, however I have turned off all systemd services for libvirt and for whatever reason,

 nft list ruleset

still returns unless I flush ruleset and restart nftables.service. This only works temporarily, as inevitably, it always still seems that libvirtd ends up managing my nft firewall rules(or at the very least above output still returns. Perhaps I am just misinformed, and above output is typical for many users who have installed libvirtd. If so please let me know, as it would clear one of my suspicions.

2nd Weird Problem:
why can't I get rid off one of my ethernet interfaces labeled as "eth0"? I am unsure why it is even there in the first place as none of my configurations mention an "eth0" interface, and one of the most baffling things is that I can't even delete it. Returns

Failed to delete interface eth0: Operation not supported
3mcode 1

Likewise, one of the ethernet interfaces that I do have defined:

[Match]
Name=enp2s0

[Link]
RequiredForOnline=routable

[Network]
DHCP=yes

[DHCPv4]
RouteMetric=100
[DHCPv6]
RouteMetric=100

Never shows up ever since eth0 interface started appearing(before this it would).

Finally 3rd weird(and main) problem:
Ever since I started noticing above, I have consistently received either frequent random disconnects here and there(packets not sent out, can't receive internet despite the fact that I know I should as I can see that I am still connected to my router, and I am able to receive internet that are connected to the same router but under different devices no problem), or large slowdowns. The latter seems to only affect my system whenever using pacman(so basically, pacman downloading and/or updating packages is very very slow, even after refreshing and updating my mirrorlist). The only thing I have found that consistently solved these two weird issues, is restarting systemd-networkd(and only this service) via

 systemctl restart systemd-networkd

. But similar to problem#1, inevitably one of these two issues will come up.

I have never received this problem before, and really started experiencing this last problem for about a week or so. I hope this has nothing to do with the government being hacked recently mad roll, though if this is the case I would imagine perhaps many more users have experienced similar problems recently? If so, please share below so I know I am not the only one lol

Last edited by reggieArchExpert (Today 19:11:41)


I don't mind being wrong... I rather be wrong and feel "stupid" for a min or two, than be comfy and wrong for infinity...

Offline

#2 Today 12:58:34

-thc
Member
Registered: 2017-03-15
Posts: 1,239

Re: [Solved] Frequent disconnent, slowdowns, etc...

reggieArchExpert wrote:

Is this normal for nft?

No. But probably for libvirt. I use QEMU/KVM, but not libvirt. Those idiotic empty chains are typical for higher level applications or frameworks managing the netfilter subsystem.

reggieArchExpert wrote:

[...] unless I flush ruleset and restart nftables.service.

Be aware that "nftables.service" does nothing more than loading the ruleset defined at "/etc/nftables.conf" and exit.

reggieArchExpert wrote:

2nd Weird Problem: [...]

Maybe just a renaming issue. Look for

journalctl -b | grep eth0

and

journalctl -b | grep enp2s0

to determine what happened.

reggieArchExpert wrote:

Ever since I started noticing above, I have consistently received either frequent random disconnects here and there(packets not sent out, can't receive internet despite the fact that I know I should as I can see that I am still connected to my router, and I am able to receive internet that are connected to the same router but under different devices no problem), or large slowdowns.

That sounds like a configuration collision. How many configured Ethernet devices under their "real" ("ip a") name are there?

Offline

#3 Today 13:49:40

reggieArchExpert
Member
From: Portland,Oregon
Registered: 2026-08-11
Posts: 59

Re: [Solved] Frequent disconnent, slowdowns, etc...

-thc wrote:

No. But probably for libvirt. I use QEMU/KVM, but not libvirt. Those idiotic empty chains are typical for higher level applications or frameworks managing the netfilter subsystem.

Fair, deleted libvirt as I only care for QEMU upon reflection.

-thc wrote:
reggieArchExpert wrote:

2nd Weird Problem: [...]
Maybe just a renaming issue. Look for

journalctl -b | grep eth0

returns nothing unusual

-thc wrote:

and

journalctl -b | grep enp2s0

returns nothing ->

code 1
reggieArchExpert wrote:

Ever since I started noticing above, I have consistently received either frequent random disconnects here and there(packets not sent out, can't receive internet despite the fact that I know I should as I can see that I am still connected to my router, and I am able to receive internet that are connected to the same router but under different devices no problem), or large slowdowns.

That sounds like a configuration collision. How many configured Ethernet devices under their "real" ("ip a") name are there?

Only one(I believe?). eth0 is the only ethernet interface that gets returned. You may still be on to something that it "may be a configuration collision" issue... I am missing a 99-default.link file under /usr/lib/systemd/network/, do you think this could be the cause of the problem?


I don't mind being wrong... I rather be wrong and feel "stupid" for a min or two, than be comfy and wrong for infinity...

Offline

#4 Today 14:17:35

-thc
Member
Registered: 2017-03-15
Posts: 1,239

Re: [Solved] Frequent disconnent, slowdowns, etc...

This

reggieArchExpert wrote:

returns nothing unusual

implies you know what to look for.

This

reggieArchExpert wrote:

Only one(I believe?). eth0 is the only ethernet interface that gets returned.

doesn't. I don't know your level of network knowledge. If you want my opinion, just post the (anonymized) outputs.

So you have an Ethernet device "eth0" and a configuration for "enp2s0". Is there more than one file in "/etc/systemd/network"?

Offline

#5 Today 15:40:26

reggieArchExpert
Member
From: Portland,Oregon
Registered: 2026-08-11
Posts: 59

Re: [Solved] Frequent disconnent, slowdowns, etc...

-thc wrote:

This

reggieArchExpert wrote:

returns nothing unusual

implies you know what to look for.

This

reggieArchExpert wrote:

Only one(I believe?). eth0 is the only ethernet interface that gets returned.

doesn't. I don't know your level of network knowledge. If you want my opinion, just post the (anonymized) outputs.

Sorry yeah you caught me, I am somewhat of a linux noob(have only used linux for around 2 years and some change(+/-) which should give you a rough idea of my level of expertise). How exactly do I post the anonymized outputs, as I don't mind just posting all the outputs however I of course want to keep my system safe of course.

-thc wrote:

So you have an Ethernet device "eth0" and a configuration for "enp2s0". Is there more than one file in "/etc/systemd/network"?

Yes indeed. Here are all the ones that involve my ethernet.

/etc/systemd/network/30-bond0.network
[Match]
Name=bond0

[Link]
RequiredForOnline=routable
[Network]
BindCarrier=enp2s0 wlan0 tether
DHCP=yes
IgnoreCarrierLoss=3s
/etc/systemd/network/30-ethernet-bond0.network
[Match]
Name=enp2s0
[Network]
Bond=bond0
PrimarySlave=true

I don't mind being wrong... I rather be wrong and feel "stupid" for a min or two, than be comfy and wrong for infinity...

Offline

#6 Today 15:52:53

-thc
Member
Registered: 2017-03-15
Posts: 1,239

Re: [Solved] Frequent disconnent, slowdowns, etc...

Hmmm - a bonded setup with a non-existing Ethernet adapter - what could possibly go wrong wink .

Temporarily remove the bond (move the files elsewhere) and place only one file in "/etc/systemd/network":

/etc/systemd/network/20-wired.network

[Match]
Name=eth0

[Link]
RequiredForOnline=routable

[Network]
DHCP=yes

[DHCPv4]
RouteMetric=100

[IPv6AcceptRA]
RouteMetric=100

Anonymizing info: Mask MAC addresses and publicly routable IP (4/6) addresses (192.168.x.y can be revealed).

Last edited by -thc (Today 15:57:18)

Offline

#7 Today 18:00:01

reggieArchExpert
Member
From: Portland,Oregon
Registered: 2026-08-11
Posts: 59

Re: [Solved] Frequent disconnent, slowdowns, etc...

-thc wrote:

Hmmm - a bonded setup with a non-existing Ethernet adapter - what could possibly go wrong wink .

A lot apparently? lol

-thc wrote:

Temporarily remove the bond (move the files elsewhere) and place only one file in "/etc/systemd/network":

Should I also remove the files controlling my wlan* type interfaces as well? Just curious on whether I will still receive wifi if I have only defined one interface


I don't mind being wrong... I rather be wrong and feel "stupid" for a min or two, than be comfy and wrong for infinity...

Offline

#8 Today 18:03:12

reggieArchExpert
Member
From: Portland,Oregon
Registered: 2026-08-11
Posts: 59

Re: [Solved] Frequent disconnent, slowdowns, etc...

Also safe to ignore problem#3. Figured out it was due to my mobile provider as my phone experiences something similar whenever I turn off the wifi. Also makes sense why this is only a very recent problem for me.


I don't mind being wrong... I rather be wrong and feel "stupid" for a min or two, than be comfy and wrong for infinity...

Offline

#9 Today 18:35:21

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 79,106

Re: [Solved] Frequent disconnent, slowdowns, etc...

I suggest you post the actual "ip a" output, nics can have alternative names, ie. the same device responds to eth0 and enpwhatever
Did you intentionally try to bond ethernet, wifi and apparently a tethered device? Why?

Offline

#10 Today 19:32:01

reggieArchExpert
Member
From: Portland,Oregon
Registered: 2026-08-11
Posts: 59

Re: [Solved] Frequent disconnent, slowdowns, etc...

Thanks to -thc, leaving only one interface defining file under /etc/systemd/network with

[Match]
Name=eth0

[Link]
RequiredForOnline=routable

[Network]
DHCP=yes

[DHCPv4]
RouteMetric=100
[IPv6AcceptRA]
RouteMetric=100

fixed this issue. Now enp2s0 appears as it should, with eth0 appearing nowhere.

 journalctl -b | grep eth0 

returns

Nov 29 10:29:15 arch kernel: r8169 0000:02:00.0 eth0: RTL8168h/8111h, MA:CA:DD:RE:SS:XY, XID 541, IRQ 85
Nov 29 10:29:15 arch kernel: r8169 0000:02:00.0 eth0: jumbo features [frames: 9194 bytes, tx checksumming: ko]
Nov 29 10:29:15 arch kernel: r8169 0000:02:00.0 enp2s0: renamed from eth0
Nov 29 10:29:17 arch systemd-networkd[851]: enp2s0: Interface name change detected, renamed to eth0.
Nov 29 10:29:17 arch systemd-networkd[851]: eth0: Interface name change detected, renamed to enp2s0.
 journalctl -b | grep enp2s0

returns

Nov 29 10:29:15 arch kernel: r8169 0000:02:00.0 enp2s0: renamed from eth0
Nov 29 10:29:17 arch systemd-networkd[851]: enp2s0: Interface name change detected, renamed to eth0.
Nov 29 10:29:17 arch systemd-networkd[851]: eth0: Interface name change detected, renamed to enp2s0.

Since journal reports an "Interface name change detected, renamed to ...", safe to assume this was all caused due to a configuration collision as -thc mentioned?


I don't mind being wrong... I rather be wrong and feel "stupid" for a min or two, than be comfy and wrong for infinity...

Offline

Board footer

Powered by FluxBB