Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Installing Gentoo
  • Search

[SOLVED] Help: Determine Network Interface Name

Having problems with the Gentoo Handbook? If you're still working your way through it, or just need some info before you start your install, this is the place. All other questions go elsewhere.
Post Reply
Advanced search
16 posts • Page 1 of 1
Author
Message
jlpoole
Guru
Guru
User avatar
Posts: 495
Joined: Tue Nov 01, 2005 5:07 am
Location: Salem, OR

[SOLVED] Help: Determine Network Interface Name

  • Quote

Post by jlpoole » Sat Apr 25, 2015 3:01 pm

I am installing a new AMD 64 build using the amd64 handbook. The manual states that it is assumed the user knows the network identification of the interface. The old name of eth0 does not work on my build.

How do I determine the network interface name assigned to my network card?
Last edited by jlpoole on Sun May 03, 2015 8:29 pm, edited 1 time in total.
Top
NeddySeagoon
Administrator
Administrator
User avatar
Posts: 56085
Joined: Sat Jul 05, 2003 9:37 am
Location: 56N 3W

  • Quote

Post by NeddySeagoon » Sat Apr 25, 2015 3:29 pm

jlpoole,

You can ask the system.

Code: Select all

ifconfig -a
will tell about all interfaces that exist. This should work in your install or in the liveCD as names are PCI bus/slot dependent.
You can look through dmesg for udev renaming your interface.
You can even tell udev to keep its hands off your network interfaces, so eth0 will work.

This new naming convention is a PITA with USB/Ethernet devices as the names depend on where the device is plugged in.
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Top
cwr
Veteran
Veteran
Posts: 1969
Joined: Sat Dec 17, 2005 11:17 am

  • Quote

Post by cwr » Sun Apr 26, 2015 12:30 pm

Run "touch /etc/udev/rules.d/80-net-name-slot.rules" and reboot and you'll get eth0
back. That will give you breathing space to download stuff and build the system before
you have to sort out the new naming rules.

Will
Top
hielvc
Advocate
Advocate
Posts: 2805
Joined: Fri Apr 19, 2002 5:55 pm
Location: Oceanside, Ca

  • Quote

Post by hielvc » Mon Apr 27, 2015 4:43 pm

thanks cwr .
An A-Z Index of the Linux BASH command line
Top
jlpoole
Guru
Guru
User avatar
Posts: 495
Joined: Tue Nov 01, 2005 5:07 am
Location: Salem, OR

  • Quote

Post by jlpoole » Thu Apr 30, 2015 3:56 am

The problem I was faced with was that I did not have lspci installed in the "built" system. What I ended up doing was using the install CD and noting the name of the interface given during the startup.

I think the install manual ought to have the reader capture what the install disk has so that later on during the session, e.g. reboot into the installed system, the reader is not left to wondering what the name assigned is. OR, the install manual ought to have at the outset the installation of the toolkit that contains lspci so lspci may be used to learn of the assigned name.
Top
cwr
Veteran
Veteran
Posts: 1969
Joined: Sat Dec 17, 2005 11:17 am

  • Quote

Post by cwr » Fri May 01, 2015 1:53 pm

ifconfig is part of the current Stage 3, at least, and "ifconfig -a" should give you a full list of
possible interfaces, assuming that you've got the the appropriate driver.

But lspci isn't part of the Stage 3; I suppose the thinking is that you build using SystemRescue CD
or an equivalent, such as Ubuntu, that already has the drivers installed.

Will
Top
jlpoole
Guru
Guru
User avatar
Posts: 495
Joined: Tue Nov 01, 2005 5:07 am
Location: Salem, OR

  • Quote

Post by jlpoole » Fri May 01, 2015 1:55 pm

cwr wrote:ifconfig is part of the current Stage 3, at least, and "ifconfig -a" should give you a full list of
possible interfaces, assuming that you've got the the appropriate driver.

But lspci isn't part of the Stage 3; I suppose the thinking is that you build using SystemRescue CD
or an equivalent, such as Ubuntu, that already has the drivers installed.

Will
I had tried "ifconfig -a" and only "lo" showed up.
Top
krinn
Watchman
Watchman
User avatar
Posts: 7476
Joined: Fri May 02, 2003 6:14 am

Re: Help: Determine Network Interface Name

  • Quote

Post by krinn » Fri May 01, 2015 2:17 pm

You can also look in /sys/class/net
Top
jlpoole
Guru
Guru
User avatar
Posts: 495
Joined: Tue Nov 01, 2005 5:07 am
Location: Salem, OR

Re: Help: Determine Network Interface Name

  • Quote

Post by jlpoole » Fri May 01, 2015 2:54 pm

krinn wrote:You can also look in /sys/class/net
That's the $64k answer. I had looked around in /dev and could not find anything; I didn't think to look under /sys -- which still remains a mystery tree to me. Thank you. Looking under /sys/class/net would be an excellent addition to the network documentation in the handbook.
Top
shazeal
Apprentice
Apprentice
User avatar
Posts: 208
Joined: Wed May 03, 2006 9:43 pm
Location: New Zealand

  • Quote

Post by shazeal » Fri May 01, 2015 5:59 pm

Just for reference you can also use the command

Code: Select all

ip addr
And it will list all interfaces, initialized or not.
CFLAGS="-OmgWTFR1CE --fun-lol-loops --march=asmx86go"
Top
szatox
Advocate
Advocate
Posts: 3858
Joined: Tue Aug 27, 2013 12:35 pm

  • Quote

Post by szatox » Fri May 01, 2015 9:22 pm

jlpoole wrote:
cwr wrote:ifconfig is part of the current Stage 3, at least, and "ifconfig -a" should give you a full list of
possible interfaces, assuming that you've got the the appropriate driver.

But lspci isn't part of the Stage 3; I suppose the thinking is that you build using SystemRescue CD
or an equivalent, such as Ubuntu, that already has the drivers installed.

Will
I had tried "ifconfig -a" and only "lo" showed up.
so maybe you miss some modules?
lspci -knn should give some answers to "what devices you have there" and "what driver is in use". I guess no driver will be listed at all.
Top
jlpoole
Guru
Guru
User avatar
Posts: 495
Joined: Tue Nov 01, 2005 5:07 am
Location: Salem, OR

  • Quote

Post by jlpoole » Fri May 01, 2015 9:47 pm

szatox wrote:
jlpoole wrote:
cwr wrote:ifconfig is part of the current Stage 3, at least, and "ifconfig -a" should give you a full list of
possible interfaces, assuming that you've got the the appropriate driver.

But lspci isn't part of the Stage 3; I suppose the thinking is that you build using SystemRescue CD
or an equivalent, such as Ubuntu, that already has the drivers installed.

Will
I had tried "ifconfig -a" and only "lo" showed up.
so maybe you miss some modules?
lspci -knn should give some answers to "what devices you have there" and "what driver is in use". I guess no driver will be listed at all.
Unfortrunately, I'm no longer in that stage of a build that I can recreate as I have determined what the name assigned to the interface was and have added tools.

What did happen was that I was going through a standard build and found myself in a temporary environment without the ability to identify the name assigned my interface. It's one of those things that unless you're in the exact same stage, e.g. an almost completed environment, a person documenting what to do may not know what toolw are missing or not working to provide a method to secure a critical answer. I may end up rebuilding this, again, given that my hard drive is older than 3 years and I'd rather be proactive and build on a new disk at my convenience rather than waiting for the disk to fail. (I may also skip building , and simple "dd" if I can easily do that with a laptop disk.)
Top
szatox
Advocate
Advocate
Posts: 3858
Joined: Tue Aug 27, 2013 12:35 pm

  • Quote

Post by szatox » Sat May 02, 2015 6:16 pm

You're making excuses now.Kernel modules are missing -> build another kernel. Doesn't matter at what stage you are, as long as you started with stage3 it should ALWAYS be usable unless you have done something bad enough to completly brick it. Installing wrong kernel is not fatal, you can still recover installing better one.

If you don't have lspci, it's in package sys-apps/pciutils
Busybox also provides a minimal version:
busybox lspci -k
and finaly, those tools won't build you missing modules, they are just to confirm that this is what causes the problem. You can carry on without that test. Oh, and remember you can always boot from liveCD and chroot into your current install to pick up from where you left.
Top
jlpoole
Guru
Guru
User avatar
Posts: 495
Joined: Tue Nov 01, 2005 5:07 am
Location: Salem, OR

  • Quote

Post by jlpoole » Sat May 02, 2015 6:53 pm

szatox wrote:You're making excuses...
No, I'm trying to point out that the Handbook for installatin does not account for someone being in an environment and unable to discern the renaming of the traditional eth0 device. Documentation is often dismissed or given cursory consideration. Good documentation will anticipate the position the writer is in and try to cover all contingencies. Having built many Gentoo installations on a variety of platforms for about ten years gives me a familiarity with the Handbook and its ability to allow a reader to achieve the goal. I found what I was referencing for the X64 coupled with the new renaming paradigm a point where someone tryiing to rely completely on the Handbook to get started would be stuck. There have been a variety of good answers, and if you read my previous postings in this thread you will see what I did to achieve what I needed to know: the name assigned to my ethernet device.

I've been an advocate of Gentoo because its strength has been in the Handbook and introducing someone unfamiliar with LInux how to build their own system. My goal is to help assure the excellence the Handbook has provided, and since it is not readily available for group editing, I post in the forum so that those who do have authorship control will be aware of a point they may not have considered.
Top
charles17
Advocate
Advocate
Posts: 3686
Joined: Sun Mar 02, 2008 3:20 pm

  • Quote

Post by charles17 » Sun May 03, 2015 4:32 am

jlpoole wrote:My goal is to help assure the excellence the Handbook has provided, and since it is not readily available for group editing, I post in the forum so that those who do have authorship control will be aware of a point they may not have considered.
Why don't you file a bug for product "Documentation" component "Installation Handbook"?
Top
jlpoole
Guru
Guru
User avatar
Posts: 495
Joined: Tue Nov 01, 2005 5:07 am
Location: Salem, OR

  • Quote

Post by jlpoole » Sun May 03, 2015 1:38 pm

charles17 wrote:Why don't you file a bug for product "Documentation" component "Installation Handbook"?
done. https://bugs.gentoo.org/show_bug.cgi?id=548490

Thank you for the suggestion.
Top
Post Reply

16 posts • Page 1 of 1

Return to “Installing Gentoo”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic