Re: [gentoo-user] How can I find 2nd network adapter?
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.willi...@gmail.com 702.659.9966 Just a old computer geek! signature.asc Description: OpenPGP digital signature
Re: [gentoo-user] How can I find 2nd network adapter?
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
Re: [gentoo-user] How can I find 2nd network adapter?
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
Re: [gentoo-user] How can I find 2nd network adapter?
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.
Re: [gentoo-user] How can I find 2nd network adapter?
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.
Re: [gentoo-user] How can I find 2nd network adapter?
On Fri, Jul 18, 2014 at 12:28 PM, Jarry mr.ja...@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