LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 12-17-2018, 06:14 PM   #1
eco_bach
Member
 
Registered: Dec 2016
Posts: 242

Rep: Reputation: Disabled
Retrieving MAC address - UbuntuMate 18.04


Ok so of course I have googled several sources
ie http://www.coffer.com/mac_info/locate-unix.html

and they usually suggest entering the following in the terminal

$ifconfig -a

However in the returned results I don't see eth0 or HWaddr.

Can anyone help?

If I go to System>Preferences>Internet & Network>Network Connections

and then select the Ethernet TAB

I do see a Device entry with 2 different addresses toggled with a select drop down.
One starts with eno1 and the other with enp5s0

and then under that an empty entry for 'Cloned MAC address'

Last edited by eco_bach; 12-17-2018 at 06:27 PM.
 
Old 12-17-2018, 06:40 PM   #2
Mechanikx
Member
 
Registered: Jul 2018
Distribution: Slackware
Posts: 351

Rep: Reputation: 258Reputation: 258Reputation: 258
I realize 'ifconfig -a' isn't showing 'eth0' but try

Quote:
ip link
and see what comes up.

EDIT:

OP's interfaces weren't in their original question. Likewise for my second reply. I didn't refresh before posting.

Last edited by Mechanikx; 12-17-2018 at 06:53 PM.
 
Old 12-17-2018, 06:44 PM   #3
Mechanikx
Member
 
Registered: Jul 2018
Distribution: Slackware
Posts: 351

Rep: Reputation: 258Reputation: 258Reputation: 258
Also, are you sure your wired connection is active? How are you connected right now?
 
Old 12-17-2018, 06:45 PM   #4
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
I use the command ip link:
Code:
$ 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.
 
Old 12-17-2018, 06:57 PM   #5
eco_bach
Member
 
Registered: Dec 2016
Posts: 242

Original Poster
Rep: Reputation: Disabled
Thanks!!

So can I assume that Device eno1 (in Network Connections preferences) points to my MAC address?

Here is my output

1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: enp5s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP mode DEFAULT group default qlen 1000
link/ether 10:7b:44:92:72:8d brd ff:ff:ff:ff:ff:ff
3: wlp4s0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN mode DEFAULT group default qlen 4000
link/ether dc:ef:ca:fa:37:65 brd ff:ff:ff:ff:ff:ff
4: wlp3s0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN mode DEFAULT group default qlen 1000
link/ether e0:4f:43:70:a2:72 brd ff:ff:ff:ff:ff:ff




enp5s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.1.5 netmask 255.255.255.0 broadcast 192.168.1.255
inet6 fe80::bee2:581c:41b0:2568 prefixlen 64 scopeid 0x20<link>
ether 10:7b:44:92:72:8d txqueuelen 1000 (Ethernet)
RX packets 74842 bytes 30044281 (30.0 MB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 25676 bytes 3492535 (3.4 MB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
device memory 0xef700000-ef71ffff

lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1000 (Local Loopback)
RX packets 6097 bytes 1288647 (1.2 MB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 6097 bytes 1288647 (1.2 MB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

wlp3s0: flags=4098<BROADCAST,MULTICAST> mtu 1500
ether e0:4f:43:70:a2:72 txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

wlp4s0: flags=4098<BROADCAST,MULTICAST> mtu 1500
ether dc:ef:ca:fa:37:65 txqueuelen 4000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

Last edited by eco_bach; 12-17-2018 at 07:09 PM.
 
Old 12-17-2018, 07:20 PM   #6
Mechanikx
Member
 
Registered: Jul 2018
Distribution: Slackware
Posts: 351

Rep: Reputation: 258Reputation: 258Reputation: 258
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.

Last edited by Mechanikx; 12-17-2018 at 08:04 PM.
 
Old 12-17-2018, 07:44 PM   #7
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
Quote:
Originally Posted by eco_bach View Post
Thanks!!

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.
 
Old 12-17-2018, 08:10 PM   #8
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,704

Rep: Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896
Quote:
Originally Posted by Mechanikx View Post
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...

Last edited by michaelk; 12-17-2018 at 08:12 PM.
 
1 members found this post helpful.
Old 12-17-2018, 08:28 PM   #9
Mechanikx
Member
 
Registered: Jul 2018
Distribution: Slackware
Posts: 351

Rep: Reputation: 258Reputation: 258Reputation: 258
Quote:
Originally Posted by michaelk View Post
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?
 
Old 12-18-2018, 09:00 AM   #10
eco_bach
Member
 
Registered: Dec 2016
Posts: 242

Original Poster
Rep: Reputation: Disabled
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.
 
Old 12-18-2018, 04:06 PM   #11
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
Quote:
Originally Posted by eco_bach View Post
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?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] ubuntuMate 15.10 - 64bit won't run Googleearth littlejoe5 Ubuntu 6 12-10-2015 05:47 AM
[SOLVED] ubuntuMATE 15.04 on uefi - can't get to grub meñu. littlejoe5 Ubuntu 5 11-28-2015 04:21 PM
[SOLVED] How do I download Adobe Flash to UbuntuMATE? Mr. Grey Linux - Newbie 5 06-18-2015 03:16 PM
UbuntuMATE 15.04 Screencast and Screenshots jeremy Linux - Screencasts and Screenshots 0 04-25-2015 06:45 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 09:34 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration