Proposal: enable stateless persistant network interface names

Marco d'Itri md at Linux.IT
Mon May 11 03:09:45 BST 2015


On May 08, Marc Haber <mh+debian-devel at zugschlus.de> wrote:

> That would mean changing local code to _both_ handle en* and eth*,
> which is (a) a surprise and (b) unsatisfying in _my_ personal opinion.
> 
> I'd rather have it fully and consistently or not at all.
"Not at all" is going to be harder and harder to support, so we need 
something better.

If you just want everything to be called em* then you can drop in your 
VMs a /etc/udev/rules.d/70-persistent-net.rules file containing:

SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth0", NAME="em0"
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth1", NAME="em1"
...

-- 
ciao,
Marco
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 648 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-systemd-maintainers/attachments/20150511/9de4a3f1/attachment-0002.sig>


More information about the Pkg-systemd-maintainers mailing list