From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 828DA13877A for ; Fri, 18 Jul 2014 16:37:59 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 528BAE0AAC; Fri, 18 Jul 2014 16:37:52 +0000 (UTC) Received: from mail-we0-f178.google.com (mail-we0-f178.google.com [74.125.82.178]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id D144CE0A82 for ; Fri, 18 Jul 2014 16:37:50 +0000 (UTC) Received: by mail-we0-f178.google.com with SMTP id w61so4820074wes.23 for ; Fri, 18 Jul 2014 09:37:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=88ZibFDDfvNKPWPa3EgzGpEXnP2ze9b2Ccok1kbyK1o=; b=F3eJ5oc0CNYh2xPyn2GFkbCBXzBJ7g2jxI8SbOwTTwlJgYl74YM8N6gkQr4NTUktAJ Y3TcouAWtD5UpUh/eMr/Sp7BBqm5/Vc/mIn32e7yYcCSo2O5FyBoQ3MQ/cbmpLh8g6XN lG4bXSC+l6tV4glmYMPl47DwVetGXOuszuNEFEJ1H85Z8zU+aGMCnt0V1WBPhLbFdOJJ vGHvw65f3V13rsEqxCAOHjZxdo1JUAgbtRp8qsBXweBiOQVYvQfu6rnhgGJRw+hoksOC 1OgFQd5g54AR0+7ye0YuIsfN5gP2Ohp/T+XRURiNi2dav7L781E3LOhZAGcX9RaPxNyX cSgg== X-Received: by 10.180.205.212 with SMTP id li20mr33514279wic.2.1405701469226; Fri, 18 Jul 2014 09:37:49 -0700 (PDT) Received: from [192.168.1.3] (213-154-212-42.static.vega-ua.net. [213.154.212.42]) by mx.google.com with ESMTPSA id hi2sm15377496wjb.29.2014.07.18.09.37.48 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 18 Jul 2014 09:37:48 -0700 (PDT) Message-ID: <53C94D5F.5080805@gmail.com> Date: Fri, 18 Jul 2014 19:37:51 +0300 From: Alexander Kapshuk User-Agent: Mozilla/5.0 (X11; Linux i686; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] How can I find 2nd network adapter? References: <53C94B30.7020600@gmail.com> In-Reply-To: <53C94B30.7020600@gmail.com> X-Enigmail-Version: 1.6 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Archives-Salt: 3957c6df-83b9-447e-a8d4-e74c941748e0 X-Archives-Hash: 3797e9ae7e64823b53db101e30686312 On 07/18/2014 07:28 PM, Jarry wrote: > Hi Gentoo-users, > > I added the 2nd network adapteer to my gentoo-box and I want > to use it. But... I do not know how it is called! > > ifconfig shows only the one adapter I had, called "enp3s0". > I remember some time ago I moved from "human" network names > (i.e. eth0) to this and now I see the first disadvantage: > while before I could guess new network name (probably eth1, > eth2, etc), now I can not. I tried "enp4s0", "enp3s1", > "enp4s1" but I always get only "No such device" error. > > I checked gentoo-handbook but it works with those old & good > network devices (eth0, eth1). > > So how can I find name of the new network adapter? > > Jarry Here's the QA message for sys-fs-udev-215 that might be helpful: Messages for package sys-fs/udev-215: Starting from version >= 197 the new predictable network interface names are used by default, see: http://www.freedesktop.org/wiki/Software/systemd/PredictableNetworkInterfaceNames http://cgit.freedesktop.org/systemd/systemd/tree/src/udev/udev-builtin-net_id.c Example command to get the information for the new interface name before booting (replace with, for example, eth0): # udevadm test-builtin net_id /sys/class/net/ 2> /dev/null You can use either kernel parameter "net.ifnames=0", create empty file /etc/systemd/network/99-default.link, or symlink it to /dev/null to disable the feature. You need to restart udev as soon as possible to make the upgrade go into effect. The method you use to do this depends on your init system. For sys-apps/openrc users it is: # /etc/init.d/udev --nodeps restart For more information on udev on Gentoo, upgrading, writing udev rules, and fixing known issues visit: http://wiki.gentoo.org/wiki/Udev http://wiki.gentoo.org/wiki/Udev/upgrade