On 17-06-11 at 16:33, Ian Zimmerman wrote:
> Without tweaking anything in particular (as far as I remember), I get
> the "predictable" names.  For example, on the desktop box where I'm
> writing this, the main interface is enp3s0.
> 
> But, of course, there's no systemd on this box, and never has been.  So,
> reading [1], I am somewhat puzzled: that page sure makes it sound as if
> systemd was responsible for the new style names.  What is the mechanism
> by which they appear on gentoo, if not systemd?
Quoting from the sys-fs/eudev-3.2.2-r1 ebuild:
pkg_pretend() {
        ewarn
        ewarn "As of 2013-01-29, ${P} provides the new interface renaming 
functionality,"
        ewarn "as described in the URL below:"
        ewarn 
"https://www.freedesktop.org/wiki/Software/systemd/PredictableNetworkInterfaceNames";
        ewarn
        ewarn "This functionality is enabled BY DEFAULT because eudev has no 
means of synchronizing"
        ewarn "between the default or user-modified choice of sys-fs/udev.  If 
you wish to disable"
        ewarn "this new iface naming, please be sure that 
/etc/udev/rules.d/80-net-name-slot.rules"
        ewarn "exists: touch /etc/udev/rules.d/80-net-name-slot.rules"
        ewarn
}

and from sys-fs/udev-233:
        elog
        elog "Starting from version >= 197 the new predictable network 
interface names are"
        elog "used by default, see:"
        elog 
"https://www.freedesktop.org/wiki/Software/systemd/PredictableNetworkInterfaceNames";
        elog 
"https://cgit.freedesktop.org/systemd/systemd/tree/src/udev/udev-builtin-net_id.c";
        elog
        elog "Example command to get the information for the new interface name 
before booting"
        elog "(replace <ifname> with, for example, eth0):"
        elog "# udevadm test-builtin net_id /sys/class/net/<ifname> 2> 
/dev/null"
        elog
        elog "You can use either kernel parameter \"net.ifnames=0\", create 
empty"
        elog "file /etc/systemd/network/99-default.link, or symlink it to 
/dev/null"
        elog "to disable the feature."

Depending on which of those you have installed.

-- 
Simon Thelen

Reply via email to