[systemd-devel] Rename NIC by using dynamic MAC

Aaron_Wright at selinc.com Aaron_Wright at selinc.com
Thu Dec 3 08:35:24 PST 2015


> From: Kaesbauer Michael <Michael.Kaesbauer at krones.com>
> Hi,
> 
> up to now I found no way to write an udev rule which renames a 
> specific NIC by using a MAC address that is returned by a bash 
> script. The reason for getting the MAC address by the bash script is
> that the renaming NIC rule should be applied to different CPUs (with
> different MACs).
> 
>  ...snip...

I have a similar problem, wanting to name NICs by location in the box. My 
udev rules use KERNELS, which seems to be consistent for me, maybe it'll 
work for you.

KERNELS=="0000:02:00.0", NAME="front0"
KERNELS=="0000:06:03.0", NAME="rear0"
KERNELS=="0000:06:04.0", NAME="rear1"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/systemd-devel/attachments/20151203/3f472b6d/attachment.html>


More information about the systemd-devel mailing list