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
- Open a terminal window.
- Type ifconfig at the command prompt. Your MAC address will be displayed beside the label HWaddr.
MacOS/Linux
- Open a Terminal app.
- Type /sbin/ifconfig this will list your IP address as well your MAC address.
- You can use cmd+a to select all, cmd+c to copy and it can be pasted to any text field.
Leave A Comment?