assigns MAC-based names for devices with locally administered MAC address
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
systemd (Debian) |
Fix Released
|
Unknown
|
|||
systemd (Ubuntu) |
Fix Released
|
High
|
Martin Pitt | ||
Xenial |
Fix Released
|
High
|
Martin Pitt | ||
Yakkety |
Fix Released
|
High
|
Martin Pitt |
Bug Description
Originally from https:/
The old 75-persistent-net generator had this rule:
ENV{
which ignored these devices. We need to adjust 90-mac-for-usb.link to do the same, and only apply to universally administered MAC addresses (at least until https:/
We should simply fall through the default policy of assigning location based names. The kernel assigned ones have no meaning whatsoever, so this at least provides name stability for use cases where you can rely on plugging the device into the same port.
SRU INFORMATION:
================
Fix: https:/
Test case:
- Plug in an Android phone and enable USB tethering, or a different USB device which uses locally administered MAC addresses, i. e. they change after every reboot of the device. The first byte of the MAC address must have the second bit set, i. e. the hex number matches ?[2367abef].
- Check "ip a". With current xenial version the interface name is MAC based, like "enx12345678", and it changes after rebooting the device.
- With this fix, the name is location based, like "enp0s1u2", and it remains stable as long as you use the same USB port.
Regression potential: This only affects naming USB network devices. It should be tested that devices with universally administered MACs (i. e. stable, second bit is zero) keep MAC based names to avoid changing existing stable names. For devices with locally administered MACs (i. e. random ones) the name currently changes all the time anyway, so any /etc/network/
Changed in systemd (Ubuntu): | |
assignee: | nobody → Martin Pitt (pitti) |
status: | New → Triaged |
importance: | Undecided → High |
Changed in systemd (Ubuntu Xenial): | |
status: | New → Triaged |
importance: | Undecided → High |
assignee: | nobody → Martin Pitt (pitti) |
description: | updated |
Changed in systemd (Ubuntu Xenial): | |
status: | Triaged → In Progress |
Changed in systemd (Debian): | |
status: | Unknown → Fix Committed |
Changed in systemd (Debian): | |
status: | Fix Committed → Fix Released |
Fixed in https:/ /anonscm. debian. org/cgit/ pkg-systemd/ systemd. git/commit/ ?id=ec7e332