public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] How can I find 2nd network adapter?
@ 2014-07-18 16:28 Jarry
  2014-07-18 16:35 ` Willie Matthews
                   ` (3 more replies)
  0 siblings, 4 replies; 8+ messages in thread
From: Jarry @ 2014-07-18 16:28 UTC (permalink / raw
  To: gentoo-user

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
-- 
_______________________________________________________________
This mailbox accepts e-mails only from selected mailing-lists!
Everything else is considered to be spam and therefore deleted.


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [gentoo-user] How can I find 2nd network adapter?
  2014-07-18 16:28 [gentoo-user] How can I find 2nd network adapter? Jarry
@ 2014-07-18 16:35 ` Willie Matthews
  2014-07-18 16:37 ` Gmail
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 8+ messages in thread
From: Willie Matthews @ 2014-07-18 16:35 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 948 bytes --]

On 07/18/2014 09:28 AM, 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
Hey Jarry,
Make sure you are loading a module for it or you have it built into the
kernel! It isn't going to work any other way.

-- 

Willie Matthews
matthews.willie80@gmail.com
702.659.9966
Just a old computer geek!



[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 538 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [gentoo-user] How can I find 2nd network adapter?
  2014-07-18 16:28 [gentoo-user] How can I find 2nd network adapter? Jarry
  2014-07-18 16:35 ` Willie Matthews
@ 2014-07-18 16:37 ` Gmail
  2014-07-18 16:37 ` Alexander Kapshuk
  2014-07-18 16:55 ` [gentoo-user] " Joshua Doll
  3 siblings, 0 replies; 8+ messages in thread
From: Gmail @ 2014-07-18 16:37 UTC (permalink / raw
  To: gentoo-user

Have you tried iwconfig?

Il 18/07/2014 18:28, Jarry ha scritto:
> 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



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [gentoo-user] How can I find 2nd network adapter?
  2014-07-18 16:28 [gentoo-user] How can I find 2nd network adapter? Jarry
  2014-07-18 16:35 ` Willie Matthews
  2014-07-18 16:37 ` Gmail
@ 2014-07-18 16:37 ` Alexander Kapshuk
  2014-07-18 16:42   ` Jarry
  2014-07-18 16:55 ` [gentoo-user] " Joshua Doll
  3 siblings, 1 reply; 8+ messages in thread
From: Alexander Kapshuk @ 2014-07-18 16:37 UTC (permalink / raw
  To: gentoo-user

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 <ifname> with, for example, eth0):
 # udevadm test-builtin net_id /sys/class/net/<ifname> 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



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [gentoo-user] How can I find 2nd network adapter?
  2014-07-18 16:37 ` Alexander Kapshuk
@ 2014-07-18 16:42   ` Jarry
  2014-07-18 16:47     ` Alexander Kapshuk
  2014-07-18 16:59     ` [gentoo-user] " Grant Edwards
  0 siblings, 2 replies; 8+ messages in thread
From: Jarry @ 2014-07-18 16:42 UTC (permalink / raw
  To: gentoo-user

On 18-Jul-14 18:37, Alexander Kapshuk wrote:
> On 07/18/2014 07:28 PM, Jarry wrote:
>>
>> So how can I find name of the new network adapter?
>>
>
>   Example command to get the information for the new interface name
> before booting
>   (replace <ifname> with, for example, eth0):
>   # udevadm test-builtin net_id /sys/class/net/<ifname> 2> /dev/null

That's the place to search! I just checked /sys/class/net/ and
found new adapter called "enp11s0" there. With ifconfig I can
bring it now up and cofigure. Thanks!

Jarry
-- 
_______________________________________________________________
This mailbox accepts e-mails only from selected mailing-lists!
Everything else is considered to be spam and therefore deleted.


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [gentoo-user] How can I find 2nd network adapter?
  2014-07-18 16:42   ` Jarry
@ 2014-07-18 16:47     ` Alexander Kapshuk
  2014-07-18 16:59     ` [gentoo-user] " Grant Edwards
  1 sibling, 0 replies; 8+ messages in thread
From: Alexander Kapshuk @ 2014-07-18 16:47 UTC (permalink / raw
  To: gentoo-user

On 07/18/2014 07:42 PM, Jarry wrote:
> On 18-Jul-14 18:37, Alexander Kapshuk wrote:
>> On 07/18/2014 07:28 PM, Jarry wrote:
>>>
>>> So how can I find name of the new network adapter?
>>>
>>
>>   Example command to get the information for the new interface name
>> before booting
>>   (replace <ifname> with, for example, eth0):
>>   # udevadm test-builtin net_id /sys/class/net/<ifname> 2> /dev/null
>
> That's the place to search! I just checked /sys/class/net/ and
> found new adapter called "enp11s0" there. With ifconfig I can
> bring it now up and cofigure. Thanks!
>
> Jarry
No worries.



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [gentoo-user] How can I find 2nd network adapter?
  2014-07-18 16:28 [gentoo-user] How can I find 2nd network adapter? Jarry
                   ` (2 preceding siblings ...)
  2014-07-18 16:37 ` Alexander Kapshuk
@ 2014-07-18 16:55 ` Joshua Doll
  3 siblings, 0 replies; 8+ messages in thread
From: Joshua Doll @ 2014-07-18 16:55 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 1024 bytes --]

On Fri, Jul 18, 2014 at 12:28 PM, Jarry <mr.jarry@gmail.com> 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
> --
> _______________________________________________________________
> This mailbox accepts e-mails only from selected mailing-lists!
> Everything else is considered to be spam and therefore deleted.
>
>

What does ifconfig -a return? Did you try grepping dmesg for eth[0-9]?

--Joshua D Doll

[-- Attachment #2: Type: text/html, Size: 1576 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [gentoo-user] Re: How can I find 2nd network adapter?
  2014-07-18 16:42   ` Jarry
  2014-07-18 16:47     ` Alexander Kapshuk
@ 2014-07-18 16:59     ` Grant Edwards
  1 sibling, 0 replies; 8+ messages in thread
From: Grant Edwards @ 2014-07-18 16:59 UTC (permalink / raw
  To: gentoo-user

On 2014-07-18, Jarry <mr.jarry@gmail.com> wrote:

> That's the place to search! I just checked /sys/class/net/ and
> found new adapter called "enp11s0" there. With ifconfig I can
> bring it now up and cofigure. Thanks!

Didn't "ifconfig -a" show it?

-- 
Grant Edwards               grant.b.edwards        Yow! The Korean War must
                                  at               have been fun.
                              gmail.com            



^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2014-07-18 17:00 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-07-18 16:28 [gentoo-user] How can I find 2nd network adapter? Jarry
2014-07-18 16:35 ` Willie Matthews
2014-07-18 16:37 ` Gmail
2014-07-18 16:37 ` Alexander Kapshuk
2014-07-18 16:42   ` Jarry
2014-07-18 16:47     ` Alexander Kapshuk
2014-07-18 16:59     ` [gentoo-user] " Grant Edwards
2014-07-18 16:55 ` [gentoo-user] " Joshua Doll

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox