Windows 11
Click Start -> Run and enter cmd. At the Command Window, type ipconfig /all. Use the Physical Address for the Wireless Ethernet or the Ethernet interface. The resulting value will look like this 00-1F-3B-CB-46-27.
Linux
At the Terminal Windows, type "/sbin/ifconfig eth0" at the command line. Use the colon-separated, hexadecimal number to the right of HWaddr. The resulting value will look like this 8:0:2b:e6:87:59.
Note: With new versions of Linux, ifconfig is no longer being shipped. You will need to add the package using the following commnd-
sudo apt install net-tools
Mac OS/X
Open the Apple System Profiler application in /Applications/Utilities. Look in the Network overview of the System Profile.
(or) You can also use the command: netstat -I en0 assuming en0 is the Ethernet interface. The resulting number will look like this 8.0.2b.e6.87.59.