With ifcfg or NetworkManager it is possible to have generic config files for 
every system to configure a bridge on the one and only physical network 
interface. See the examples below how such configuration looks like.

With systemd-networkd it is apparently required to specify the MAC in the 
configuration. As a result, such configuration is per host and not generic 
anymore. Is there a knob I overlooked so that the bridge uses the MAC from the 
physical interface? If not, are there plans to fix that?

Olaf

==> /etc/sysconfig/network/ifcfg-br0 <==
BOOTPROTO='dhcp'
BRIDGE='yes'
BRIDGE_PORTS='eth0'
BRIDGE_STP='off'
STARTMODE='auto'
==> /etc/sysconfig/network/ifcfg-eth0 <==
BOOTPROTO='none'
STARTMODE='auto'

==> /etc/NetworkManager/system-connections/eth <==
[connection]
id=eth
uuid=11111111-1111-1111-1111-111111111111
type=ethernet
interface-name=eth0
master=br0
permissions=
slave-type=bridge
[ethernet]
mac-address-blacklist=
==> /etc/NetworkManager/system-connections/br <==
[connection]
autoconnect-slaves=1
id=br
interface-name=br0
permissions=
type=bridge
uuid=22222222-2222-2222-2222-222222222222
[bridge]
stp=false
[ipv4]
dhcp-timeout=2147483647
dns-search=
method=auto
[ipv6]
addr-gen-mode=stable-privacy
dns-search=
ip6-privacy=0
method=auto

Attachment: pgpaHsfjiLPgq.pgp
Description: Digitale Signatur von OpenPGP

_______________________________________________
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/systemd-devel

Reply via email to