Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Strange problems with bridging after systemd update 249.x
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Sherban
n00b
n00b


Joined: 18 Sep 2021
Posts: 2

PostPosted: Sat Sep 18, 2021 5:35 pm    Post subject: Strange problems with bridging after systemd update 249.x Reply with quote

Hello,

I have the following Network Setup:
Code:
   "xi" (192.168.14.1) is Firewall, DHCP-Server
     |
     + - "omikron" (192.168.14.6) is Desktop
     |
     + - other pc
     |
     + - other pc
     |
     + - "my" enp1s0  (192.168.14.4)
            |
          enp4s0 is bridged to "ny" (192.168.14.3)


All Systems are running gentoo with systemd (except for "ny", which is a NAS).

This setup works with systemd-248.6.

After update to systemd-249.2 or systemd-249.4, "my" cannot ping or ssh to "omikron" or any other machine on my local network or the internet, except for "xi" and "ny". And vice versa, only "xi" can ping/ssh to "my". The bridge to "ny" works, "ny" is fully accessible and can access the internet.

After downgrade to systemd-248.6 "my" can reach all pc on my local network, and "my" is reachable from all pcs. Unfortunately, systemd-248.6 is no longer in the gentoo repository, making downgrading a little more complicated now.

I think, this is a systemd bug.

This is the network configuration for "my":

/etc/systemd/network/MyBridge.netdev:
Code:
[NetDev]
Name=br0
Kind=bridge


/etc/systemd/network/MyBridge.network
Code:
[Match]
Name=br0

[Network]
DHCP=ipv4
LinkLocalAddressing=no
IPv6AcceptRA=no


/etc/systemd/network/MyEnps.network
Code:
[Match]
Name=enp1s0 enp4s0

[Network]
Bridge=br0


Any ideas?
Back to top
View user's profile Send private message
alamahant
Advocate
Advocate


Joined: 23 Mar 2019
Posts: 3879

PostPosted: Sat Sep 18, 2021 5:49 pm    Post subject: Reply with quote

Sherban wrote:

/etc/systemd/network/MyBridge.network
Code:
[Match]
Name=br0

[Network]
DHCP=ipv4
LinkLocalAddressing=no
IPv6AcceptRA=no

Try it with static ip
Code:

[Match]
Name=br0

[Network]
Address=10.1.10.9/24
Gateway=10.1.10.1
DNS=10.1.10.1
LinkLocalAddressing=no
IPv6AcceptRA=no

Maybe also missing iptables kernel .config
Are you maybe trying to create a bond or a team?
What is the purpose of the bridge?
What you are describing sounds like a routing conflict like when you assign default gateway to more than one iface.
_________________
:)
Back to top
View user's profile Send private message
Sherban
n00b
n00b


Joined: 18 Sep 2021
Posts: 2

PostPosted: Sun Sep 19, 2021 7:36 pm    Post subject: Reply with quote

Thanks for your reply, using a static IP does work. But why?

My setup should be generally correcly configured, it worked with systemd-248.6.

Specifically I don't have iptables in my kernel .config, and I think I don't need it, because "my" is not filtering anything.
I want a bridge (and not bonding) because "my" and "ny" are remote (in my garage) and I have only one LAN port there available (and don't want to add a switch there).
"my" has four interfaces, so I connect "my" (enp1s0) to the LAN port, and "ny" to the bridged enp4s0 interface of "my".

This is the routing table of "my" with static IP for the bridge:
Code:
Kernel IP Routentabelle
Ziel            Router          Genmask         Flags Metric Ref    Use Iface
default         xi.sasthei.de.1 0.0.0.0         UG    0      0        0 br0
default         xi.sasthei.de.1 0.0.0.0         UG    1002   0        0 enp1s0
192.168.14.0    0.0.0.0         255.255.255.224 U     0      0        0 br0
192.168.14.0    0.0.0.0         255.255.255.224 U     1002   0        0 enp1s0

And this ist the routing table of "my" with DHCP for the bridge (is identical for both systemd 248.6 and systemd-149.4):
Code:
Kernel IP Routentabelle
Ziel            Router          Genmask         Flags Metric Ref    Use Iface
default         xi.sasthei.de.1 0.0.0.0         UG    1002   0        0 enp1s0
default         xi.sasthei.de.1 0.0.0.0         UG    1024   0        0 br0
192.168.14.0    0.0.0.0         255.255.255.224 U     1002   0        0 enp1s0
192.168.14.0    0.0.0.0         255.255.255.224 U     1024   0        0 br0
xi.sasthei.de.1 0.0.0.0         255.255.255.255 UH    1024   0        0 br0


Anything wrong with that? And systemd now handles my faulty routing "correctly"?
Back to top
View user's profile Send private message
alamahant
Advocate
Advocate


Joined: 23 Mar 2019
Posts: 3879

PostPosted: Sun Sep 19, 2021 7:49 pm    Post subject: Reply with quote

Quote:

default xi.sasthei.de.1 0.0.0.0 UG 1002 0 0 enp1s0
default xi.sasthei.de.1 0.0.0.0 UG 1024 0 0 br0

This is your problem.
2 default gateway for the same network.It should ONLY be one.
Somehow dhcp assigns gateway to both the bridge and the bridge-slave.
Maybe br0 should not have a default gateway.Maybe not even an address.

In my case i use br0 with only one slave.
The br0 is fully static ip configured whereas the slave has "null" config.
I use br0 for libvirt and internet.
But your case is different.
_________________
:)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum