View linux mac address

1, ip addr show (ip address show, ip addr) to view the local ip and some additional information

2, ifconfig -a mac address of which is HWaddr

3, cat / sys / class / net / eth0 / address to view the mac address of eth0

4, cat / proc / net / arp view mac address to the distal end of the machine ip

 

Guess you like

Origin www.cnblogs.com/cncaptain/p/11864598.html