Gentoo Archives: gentoo-user

From: Alexander Kapshuk <alexander.kapshuk@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] How can I find 2nd network adapter?
Date: Fri, 18 Jul 2014 16:37:59
Message-Id: 53C94D5F.5080805@gmail.com
In Reply to: [gentoo-user] How can I find 2nd network adapter? by Jarry
1 On 07/18/2014 07:28 PM, Jarry wrote:
2 > Hi Gentoo-users,
3 >
4 > I added the 2nd network adapteer to my gentoo-box and I want
5 > to use it. But... I do not know how it is called!
6 >
7 > ifconfig shows only the one adapter I had, called "enp3s0".
8 > I remember some time ago I moved from "human" network names
9 > (i.e. eth0) to this and now I see the first disadvantage:
10 > while before I could guess new network name (probably eth1,
11 > eth2, etc), now I can not. I tried "enp4s0", "enp3s1",
12 > "enp4s1" but I always get only "No such device" error.
13 >
14 > I checked gentoo-handbook but it works with those old & good
15 > network devices (eth0, eth1).
16 >
17 > So how can I find name of the new network adapter?
18 >
19 > Jarry
20 Here's the QA message for sys-fs-udev-215 that might be helpful:
21
22 Messages for package sys-fs/udev-215:
23 Starting from version >= 197 the new predictable network interface
24 names are
25 used by default, see:
26 http://www.freedesktop.org/wiki/Software/systemd/PredictableNetworkInterfaceNames
27 http://cgit.freedesktop.org/systemd/systemd/tree/src/udev/udev-builtin-net_id.c
28
29 Example command to get the information for the new interface name
30 before booting
31 (replace <ifname> with, for example, eth0):
32 # udevadm test-builtin net_id /sys/class/net/<ifname> 2> /dev/null
33
34 You can use either kernel parameter "net.ifnames=0", create empty
35 file /etc/systemd/network/99-default.link, or symlink it to /dev/null
36 to disable the feature.
37
38 You need to restart udev as soon as possible to make the upgrade go
39 into effect.
40 The method you use to do this depends on your init system.
41 For sys-apps/openrc users it is:
42 # /etc/init.d/udev --nodeps restart
43
44 For more information on udev on Gentoo, upgrading, writing udev rules,
45 and fixing known issues visit:
46 http://wiki.gentoo.org/wiki/Udev
47 http://wiki.gentoo.org/wiki/Udev/upgrade

Replies

Subject Author
Re: [gentoo-user] How can I find 2nd network adapter? Jarry <mr.jarry@×××××.com>