You are not logged in.

#1 2019-04-23 20:10:43

lenhuppe
Member
From: New Hampshire USA
Registered: 2018-12-10
Posts: 271
Website

SOLVED: Bridge config with systemd-networkd

SOLUTION:

Systemd 242.16-1 appears to have solved the issue I was having.

You can see my networkd configuration files below. 

-OP

***   

I am trying to configure a bridge using networkd.

After getting the base system running I replaced this:

/etc/systemd/network/wired.network

[Match]
Name=enp10s0
[Network]
MulticastDNS=yes
DHCP=ipv4
[DHCP]
UseDomains=yes

With these:

/etc/systemd/network/br0.netdev

[NetDev]
Name=br0
Kind=bridge

/etc/systemd/network/br0.network

[Match]
Name=br0
[Network]
MulticastDNS=yes
DHCP=ipv4
[DHCP]
UseDomains=yes

/etc/systemd/network/br0-wired.network

[Match]
Name=enp10s0
[Network]
Bridge=br0

I was following the instructions here:
https://wiki.debian.org/SystemdNetworkd … ork_bridge

Upon reboot the network is not starting:

systemctl status systemd-networkd

● systemd-networkd.service - Network Service
   Loaded: loaded (/usr/lib/systemd/system/systemd-networkd.service; enabled; vendor preset: enabled)
   Active: active (running) since Tue 2019-04-23 21:54:39 EDT; 1min 35s ago
     Docs: man:systemd-networkd.service(8)
 Main PID: 324 (systemd-network)
   Status: "Processing requests..."
    Tasks: 1 (limit: 4915)
   Memory: 2.8M
   CGroup: /system.slice/systemd-networkd.service
           └─324 /usr/lib/systemd/systemd-networkd

Apr 23 21:54:39 lurch systemd-networkd[324]: br0: Could not bring up interface: Invalid argument
Apr 23 21:54:39 lurch systemd-networkd[324]: enp10s0: Failed to add to bridge master's slave list: File exists
Apr 23 21:54:39 lurch systemd-networkd[324]: br0: Gained carrier
Apr 23 21:54:40 lurch systemd-networkd[324]: br0: Gained IPv6LL
Apr 23 21:54:41 lurch systemd-networkd[324]: br0: Lost carrier
Apr 23 21:54:41 lurch systemd-networkd[324]: enp10s0: Gained carrier
Apr 23 21:54:41 lurch systemd-networkd[324]: enp10s0: Configured
Apr 23 21:54:41 lurch systemd-networkd[324]: br0: Gained carrier
Apr 23 21:54:45 lurch systemd-networkd[324]: br0: DHCPv4 address 192.168.1.12/24 via 192.168.1.1
Apr 23 21:54:53 lurch systemd-networkd[324]: br0: Configured

networkctl -a status

● 1: lo
       Link File: /usr/lib/systemd/network/99-default.link
    Network File: n/a
            Type: loopback
           State: carrier (unmanaged)
         Address: 127.0.0.1
                  ::1

● 2: enp10s0
       Link File: /usr/lib/systemd/network/99-default.link
    Network File: /etc/systemd/network/br0-wired.network
            Type: ether
           State: enslaved (configured)
            Path: pci-0000:0a:00.0
          Driver: r8169
          Vendor: Realtek Semiconductor Co., Ltd.
           Model: RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (P8 series motherboard)
      HW Address: 10:c3:7b:9c:f9:76 (ASUSTek COMPUTER INC.)
    Connected To: Linksys54262 on port 58:ef:68:6b:c5:fa (eth1)

● 3: br0
       Link File: /usr/lib/systemd/network/99-default.link
    Network File: /etc/systemd/network/br0.network
            Type: bridge
           State: degraded-carrier (configured)
          Driver: bridge
      HW Address: 5a:96:98:57:40:e5
         Address: 192.168.1.12
                  fe80::5896:98ff:fe57:40e5
         Gateway: 192.168.1.1 (Belkin International Inc.)
             DNS: 192.168.1.1

Last edited by lenhuppe (2019-05-08 01:48:42)


Why do we drive on the parkway and then park in the driveway?

Offline

#2 2019-04-24 09:48:11

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,868

Re: SOLVED: Bridge config with systemd-networkd

Please check https://wiki.archlinux.org/index.php/Systemd-networkd , especially chapter 3.


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

#3 2019-04-25 06:43:23

cspack
Member
Registered: 2016-09-01
Posts: 27

Re: SOLVED: Bridge config with systemd-networkd

I have the same issue since upgrading to systemd 242.0.  It looks like this bug: https://bugs.archlinux.org/task/62347. As a workaround try restarting systemd-networkd after booting.

Offline

#4 2019-04-26 09:52:39

lenhuppe
Member
From: New Hampshire USA
Registered: 2018-12-10
Posts: 271
Website

Re: SOLVED: Bridge config with systemd-networkd

cspack wrote:

I have the same issue since upgrading to systemd 242.0.  It looks like this bug: https://bugs.archlinux.org/task/62347. As a workaround try restarting systemd-networkd after booting.

I tried swapping out the network config files and then restarting systemd-networkd.
The network came up and I was able to install LXC over the network with pacman.
My guess is that something was not coming up to a ready state.
When I checked systemd 242.0-3 was out and that seems to have fixed it.

Very nice troubleshooting ...


Why do we drive on the parkway and then park in the driveway?

Offline

#5 2019-04-26 09:55:48

lenhuppe
Member
From: New Hampshire USA
Registered: 2018-12-10
Posts: 271
Website

Re: SOLVED: Bridge config with systemd-networkd

Lone_Wolf wrote:

Please check https://wiki.archlinux.org/index.php/Systemd-networkd , especially chapter 3.

I read through chapter 3 and I think that I have everything setup ok.
I did make one change which was to remove the RouteMetric I had.

Systemd-nspawn looks like its worth checking out.

Last edited by lenhuppe (2019-04-26 11:02:41)


Why do we drive on the parkway and then park in the driveway?

Offline

#6 2019-04-27 02:50:13

lenhuppe
Member
From: New Hampshire USA
Registered: 2018-12-10
Posts: 271
Website

Re: SOLVED: Bridge config with systemd-networkd

lenhuppe wrote:
cspack wrote:

I have the same issue since upgrading to systemd 242.0.  It looks like this bug: https://bugs.archlinux.org/task/62347. As a workaround try restarting systemd-networkd after booting.

I tried swapping out the network config files and then restarting systemd-networkd.
The network came up and I was able to install LXC over the network with pacman.
My guess is that something was not coming up to a ready state.
When I checked systemd 242.0-3 was out and that seems to have fixed it.

Very nice troubleshooting ...

I stand corrected - DHCP stopped working.


Why do we drive on the parkway and then park in the driveway?

Offline

#7 2019-04-27 08:10:19

Ropid
Member
Registered: 2015-03-09
Posts: 1,069

Re: SOLVED: Bridge config with systemd-networkd

Things seem to work fine here for me with systemd-networkd. My config files look like this:

==> bridge0.netdev <==
[NetDev]
Name=br0
Kind=bridge

==> bridge0.network <==
[Match]
Name=br0

[Network]
DHCP=yes
IPv6PrivacyExtensions=yes

==> ethernet.network <==
[Match]
Name=en*

[Network]
Bridge=br0
LinkLocalAddressing=no

Offline

#8 2019-04-27 23:35:52

lenhuppe
Member
From: New Hampshire USA
Registered: 2018-12-10
Posts: 271
Website

Re: SOLVED: Bridge config with systemd-networkd

Ropid wrote:

Things seem to work fine here for me with systemd-networkd. My config files look like this:

==> bridge0.netdev <==
[NetDev]
Name=br0
Kind=bridge

==> bridge0.network <==
[Match]
Name=br0

[Network]
DHCP=yes
IPv6PrivacyExtensions=yes

==> ethernet.network <==
[Match]
Name=en*

[Network]
Bridge=br0
LinkLocalAddressing=no

What version of systemd are you running?

Last edited by lenhuppe (2019-04-28 23:14:48)


Why do we drive on the parkway and then park in the driveway?

Offline

Board footer

Powered by FluxBB