Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
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.
$ ip link
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP mode DEFAULT group default qlen 1000
link/ether 00:1e:06:11:20:10 brd ff:ff:ff:ff:ff:ff
The MAC address is 00:1e:06:11:20:10 after link/ether.
I am running Ubuntu 16, but you should have the same result on 18.
ipconfig -a does output HWaddr. However, your interface is not called eth0. You seem to have two interfaces named eno1 and enp5s0. Ubuntu now uses so-called predictable interface names. For example, enp5s0 is the interface in PCI bus 5, slot 0.
If this doesn't help you, I suggest you share the output of the two commands, ip link and ifconfig -a.
Last edited by berndbausch; 12-17-2018 at 06:50 PM.
You should be able to find the info you wanted now. Also, if I were you I would remove any 'sensitive' information from the output you posted. Maybe I'm just paranoid though :P
EDIT:
This reply was in response to post #5 which at the time only included the output of ifconfig and ip link.
So can I assume that Device eno1 (in Network Connections preferences) points to my MAC address?
Here is my output
No.
First, I don't see eno1 in your output. I see enp5s0 and two wireless interfaces. I don't know why the Network Preferences tool reports eno1.
Second, there is no such thing as "my MAC address". Each interface has its own MAC address. You have three interfaces, therefore three MAC addresses.
To prevent confusion: I exclude the loopback interface; it's listed as having MAC address 00:00:00:00:00:00, but it only exists inside the kernel and doesn't correspond to a real interface.
Last edited by berndbausch; 12-17-2018 at 07:45 PM.
You should be able to find the info you wanted now. Also, if I were you I would remove any 'sensitive' information from the output you posted. Maybe I'm just paranoid though :P
FYI there is no security risk in posting private IP addresses or their MAC. There are probably millions of home routers that default to 192.168.1.0/24 private network. A LAN MAC is not accessible from the internet and can not be used by anyone to gain access as far as I know.
I missed what was edited in post #5 so nevermind...
FYI there is no security risk in posting private IP addresses or their MAC. There are probably millions of home routers that default to 192.168.1.0/24 private network. A LAN MAC is not accessible from the internet and can not be used by anyone to gain access as far as I know.
Interesting. My knowledge in this area is limited. In the past I've received help in forums from members with a lot more experience and knowledge than me who wouldn't post this info and generally advised against it. Some blogs, etc, that I've read also said to block out this info. So, since I haven't really had the opportunity to study this area I decided to air on the side of caution. I mean if I don't post it I don't have anything to lose or worry about, right?
michaelk, thanks. That was my concern before posting as well.
berndbausch, thanks. As mentioned eno1 is visible in my Network Connections preferences
Based on above now I'm guessing the first or enp5s0 points to a primary interface and 10:7b:44:92:72:8d is the MAC address I want?
I should clarify first why I need the MAC address. It is required for a software license at the time of purchase.
I don’t think that there is such a thing as a “primary interface”, but it’s true that enp5s0 has the lowest index number. Perhaps the documentation for the application you are about to buy explains what to do if there are several MAC addresses.
While it may not have anything to do with the question, it’s puzzling that ip link or ifconfig don’t list eno1. Do you have more than one wired interface?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.