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