How to find mac address In Linux

Configurare noua (How To)

Situatie

How to find mac address In Linux

Here are some methods to get the MAC address. These commands are safe to run without changing anything. The following commands can get you the MAC address of your network interface in Linux.

  • ifconfig -a
  • ifconfig eth0
  • ip link show
  • ip -o link show eth0
  • ip -o link show |cut -d ‘ ‘ -f 2,20
  • cat /sys/class/net/*/address
Procedures to find MAC address in Linux
  • Open the terminal application.
  • Type ifconfig -a or ip link show or cat /sys/class/net/*/address command
  • Press Enter to run the command.
  • The output will display the MAC address for all the network interfaces.
On a Linux machine
  1. Open a terminal window.
  2. Type ifconfig at the command prompt. Your MAC address will be displayed beside the label HWaddr.
MacOS/Linux
  1. Open a Terminal app.
  2. Type /sbin/ifconfig this will list your IP address as well your MAC address.
  3. You can use cmd+a to select all, cmd+c to copy and it can be pasted to any text field.

Solutie

Tip solutie

Permanent
Etichetare:

Voteaza

(9 din 15 persoane apreciaza acest articol)

Despre Autor

Leave A Comment?