Thursday, May 9, 2024
 Popular · Latest · Hot · Upcoming
1
rated 0 times [  1] [ 0]  / answers: 1 / hits: 392  / 2 Years ago, mon, march 7, 2022, 11:45:49

I'm trying to get the mac address of my computer.



I've run ifconfig like the person in this question, and I get information about eth0, eth1 and lo.



The HWaddr of eth0 and eth1 are different, so I need to work out which one I should look at.



How do I determine which one I should be looking at?



(Normally I'd paste in the output of ifconfig, but I suspect some of the output is private)


More From » networking

 Answers
7

I assume you are on a desktop with two Ethernet controllers? And that you need to register a mac address to connect to a particular network where addresses are monitored?



Each Ethernet has its own MAC address. You have two options:




  1. Plug in a cable into one of them on a network you can use. And the run ifconfig a few times while using the net (run a YouTube video) you should see RX bytes increasing. (there must be a better way in the terminal?). Or outside the terminal, click the networking logo (near the clock) and then select Connection Information, this should tell you which Ethernet is now connected. Once you know which controller/port you can register that one.

  2. Register either one of them. Once it is registered if you can't connect, switch the Ethernet cable to the other port. (Just check you have two ports first!!)



I did number 2 at my work.


[#28017] Tuesday, March 8, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
atchcommo

Total Points: 114
Total Questions: 130
Total Answers: 101

Location: Cook Islands
Member since Sat, Oct 16, 2021
3 Years ago
;