[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Proposal: enable stateless persistant network interface names



On May 08, Marc Haber <mh+debian-devel@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

Attachment: pgpSxCGAOyGCW.pgp
Description: PGP signature


Reply to: