Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I thought about doing grep on the output but couldn't find a consistent way of doing it. For instance my dual lan NIC displays this:
e1000: eth2: e1000_probe: Intel(R) PRO/1000 Network Connection
ACPI: PCI Interrupt 0000:0b:02.1[B] -> GSI 23 (level, low) -> IRQ 23
e1000: 0000:0b:02.1: e1000_probe: (PCI:33MHz:32-bit) 00:04:23:d6:a7:e5
e1000: eth3: e1000_probe: Intel(R) PRO/1000 Network Connection
I'll never be sure if this will always work, so it's not a preferred option. Somehow the kernel knows about this, so it should be possible to extract it in a consistent manner. Maybe even a small c-program could do this?
When it comes to arp, AFAIK it only shows known hosts with known ip/mac addresses and not all interfaces on same machine.
It would seem correct that ifconfig -a should show all NIC's so I tried it some more and it seems to show all information I need. Don't really know what happened the first time but it seems that the solution was there all the time.
glad you find it useful. lshw pulls information from several places on the system then formats it nicely. one of the main places it seems to pull from is another utility (which is usually installed by default) called dmidecode. so theres another command to add to your toolbox
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.