1 |
On 17-06-11 at 16:33, Ian Zimmerman wrote: |
2 |
> Without tweaking anything in particular (as far as I remember), I get |
3 |
> the "predictable" names. For example, on the desktop box where I'm |
4 |
> writing this, the main interface is enp3s0. |
5 |
> |
6 |
> But, of course, there's no systemd on this box, and never has been. So, |
7 |
> reading [1], I am somewhat puzzled: that page sure makes it sound as if |
8 |
> systemd was responsible for the new style names. What is the mechanism |
9 |
> by which they appear on gentoo, if not systemd? |
10 |
Quoting from the sys-fs/eudev-3.2.2-r1 ebuild: |
11 |
pkg_pretend() { |
12 |
ewarn |
13 |
ewarn "As of 2013-01-29, ${P} provides the new interface renaming functionality," |
14 |
ewarn "as described in the URL below:" |
15 |
ewarn "https://www.freedesktop.org/wiki/Software/systemd/PredictableNetworkInterfaceNames" |
16 |
ewarn |
17 |
ewarn "This functionality is enabled BY DEFAULT because eudev has no means of synchronizing" |
18 |
ewarn "between the default or user-modified choice of sys-fs/udev. If you wish to disable" |
19 |
ewarn "this new iface naming, please be sure that /etc/udev/rules.d/80-net-name-slot.rules" |
20 |
ewarn "exists: touch /etc/udev/rules.d/80-net-name-slot.rules" |
21 |
ewarn |
22 |
} |
23 |
|
24 |
and from sys-fs/udev-233: |
25 |
elog |
26 |
elog "Starting from version >= 197 the new predictable network interface names are" |
27 |
elog "used by default, see:" |
28 |
elog "https://www.freedesktop.org/wiki/Software/systemd/PredictableNetworkInterfaceNames" |
29 |
elog "https://cgit.freedesktop.org/systemd/systemd/tree/src/udev/udev-builtin-net_id.c" |
30 |
elog |
31 |
elog "Example command to get the information for the new interface name before booting" |
32 |
elog "(replace <ifname> with, for example, eth0):" |
33 |
elog "# udevadm test-builtin net_id /sys/class/net/<ifname> 2> /dev/null" |
34 |
elog |
35 |
elog "You can use either kernel parameter \"net.ifnames=0\", create empty" |
36 |
elog "file /etc/systemd/network/99-default.link, or symlink it to /dev/null" |
37 |
elog "to disable the feature." |
38 |
|
39 |
Depending on which of those you have installed. |
40 |
|
41 |
-- |
42 |
Simon Thelen |