[systemd-devel] Match section of .link file not working

Andrei Borzenkov arvidjaar at gmail.com
Sat Aug 23 21:23:53 PDT 2014


В Sun, 24 Aug 2014 03:04:03 +0200
Simon Peeters <peeters.simon at gmail.com> пишет:

> Hej all,
> 
> I have a system on wich i wish to randomise the mac address of one
> specific interface. This is important because it is a wireless vif,
> and having multiple vif's with the same mac doesn't work.
> 
> I currently have the following config in 50-wl-mac.link:
> [Match]
> Path=/devices/ocp.3/47400000.usb/musb-hdrc.1.auto/usb1/1-1/1-1:1.0/net/wlv3

This should be the value of ID_PATH property, not sysfs path. Check with

udevadm info --query
property /sys/devices/ocp.3/47400000.usb/musb-hdrc.1.auto/usb1/1-1/1-1:1.0/net/wlv3

> Type=wlan
> 
> [Link]
> MACAddressPolicy=random
> ---
> But when I run
> # udevadm test-builtin net_setup_link
> /devices/ocp.3/47400000.usb/musb-hdrc.1.auto/usb1/1-1/1-1:1.0/net/wlv3
> I get:
> ...
> Config file /usr/lib/systemd/network/99-default.link applies to device wlv3
> ...
> And the mac address is not randomised.
> 
> This feels like a bug to me, any toughts what could cause this?
> This is on 215 (archlinux arm does not yet have 216).
> 
> 
> Simon Peeters.
> _______________________________________________
> systemd-devel mailing list
> systemd-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/systemd-devel



More information about the systemd-devel mailing list