br0 interface stops working after udev update from 204-14 to 208-5

tmp.posti at pp.inet.fi tmp.posti at pp.inet.fi
Thu Jul 10 12:16:11 BST 2014


Am 09.07.2014 18:24, schrieb tmp.posti at pp.inet.fi:
> I did some testing with systemd 208-5/udev 208-5. Bridge br0 disappears after
> the update
> (after reboot of course). If I put back udev 204-14 everything works again. I
> think I needed
> the bridge configuration for QEMU-KVM networking if I remember correctly.
>
> I downgraded only udev, br0 works with systemd 208-5/udev 204-14 combination 
so
> something seems to have changed with udev.
>
> Everything else is Sid updated to the latest except systemd/udev 208 from
> experimental.
> Sid was originally installed about 2005 on this system and updated to the
> latest
> almost daily.
>
>
> /etc/network/interfaces:
>
> ### etherconf DEBCONF AREA. DO NOT EDIT THIS AREA OR INSERT TEXT BEFORE IT.
> auto lo eth0 eth1
>
> iface lo inet loopback
>
> iface eth0 inet dhcp
>
> iface eth1 inet manual
>
>
> ### END OF DEBCONF AREA.  PLACE YOUR EDITS BELOW; THEY WILL BE PRESERVED.
>
> auto br0
> iface br0 inet static
>         address 192.168.185.175
>         netmask 255.255.255.0
>         broadcast 192.168.185.255
>         network 192.168.185.0
>         bridge_ports eth1
>         bridge_fd 9
>         bridge_hello 2
>         bridge_maxage 12
>         bridge_stp off
>
>
> interfaces marked as "auto" are brought up by the /etc/init.d/networking
> init script.
> Is the eth1 not available/ready when the networking init script is run?
>
> Can you try adding a few debug statements into the networking init script?
>
> Booting with systemd.log_level=debug and running journalctl -b -l -a
> might also give further clues.
-----------------------------------------


I had this in /etc/udev/rules.d/70-persistent-net.rules:

ACTION=="add", SUBSYSTEM=="net", ATTRS{address}=="90:e6:ba:15:c0:74", NAME="
eth1", ENV{INTERFACE_OLD}="$kernel"

apparently udev 208-5 matches this with br0 since br0 inherits its mac address 
from eth1 and then tries to rename br0 to eth1.
Somehow udev 204-14 and earlier versions didn't match the rule with br0. I 
changed that rule to:

SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="90:e6:ba:15:c0:
74", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1"

which seems to be the current style and now I have br0 with udev 208-5.

--
Matti




More information about the Pkg-systemd-maintainers mailing list