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 |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
 |
07-20-2013, 03:03 AM
|
#1
|
Member
Registered: Jun 2012
Distribution: Centos 6 & Fluxbox
Posts: 86
Rep: 
|
Finding UUID of a network card
Is there a command similar to ls -l /dev/disk/by-uuid or blkid
BUT specifically for finding the UUID of a newly installed network card ?
Background:
I am setting up two devices with Static IPs and channel bonding them into one, but I can't find the UUID of the new card.
I use Centos 6
Thanks
|
|
|
07-20-2013, 03:52 AM
|
#2
|
LQ Guru
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 17,529
|
The mac address is unique - some of your hardware tools should pick that out. uuid is for disks.
That aside, the box will find one first - that's eth0. Next one is eth1 and that info should be in the logs. If they're both exactly the same cards, you'll have to dig for the mac address and try
ifconfig -a
and look for the HWaddress
|
|
|
07-20-2013, 08:06 AM
|
#3
|
Member
Registered: Jun 2012
Distribution: Centos 6 & Fluxbox
Posts: 86
Original Poster
Rep: 
|
There isn't one
You are right, no UUID for network cards, Thanks
|
|
|
09-24-2015, 11:52 AM
|
#4
|
Senior Member
Registered: May 2007
Location: Sydney
Distribution: RHEL, CentOS, Ubuntu, Debian, OS X
Posts: 1,305
Rep: 
|
This is an old thread, but I just wanted to ascertain we do have UUIDs for network cards, which can be found as below.
Code:
# uuidgen ifcfg-eth0
e62680c3-f5f5-4f06-b862-68e00e3b4506
#
|
|
1 members found this post helpful.
|
01-03-2019, 08:52 AM
|
#5
|
LQ Newbie
Registered: Oct 2015
Posts: 22
Rep: 
|
Quote:
Originally Posted by vikas027
This is an old thread, but I just wanted to ascertain we do have UUIDs for network cards, which can be found as below.
Code:
# uuidgen ifcfg-eth0
e62680c3-f5f5-4f06-b862-68e00e3b4506
#
|
Umm, no it is not, that is how you change the UUID, not how you find it.
|
|
1 members found this post helpful.
|
02-19-2019, 07:51 AM
|
#6
|
LQ Newbie
Registered: Aug 2009
Posts: 1
Rep:
|
I know it is an old thread, I add this for the reference since it is still hard to find this correct answer to the question in subject:
nmcli connection show
|
|
2 members found this post helpful.
|
03-01-2020, 11:50 PM
|
#7
|
LQ Newbie
Registered: Sep 2012
Location: Abu Dhabi
Distribution: RHEL, CentOS, Fedora, Ubuntu
Posts: 1
Rep: 
|
Quote:
Originally Posted by domaniqs
I know it is an old thread, I add this for the reference since it is still hard to find this correct answer to the question in subject:
nmcli connection show
|
exactly, and you could grep it:
Code:
nmcli connection show eth0 |grep connection.uuid
|
|
|
All times are GMT -5. The time now is 02:22 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|