获取Ethernet Mac 1.先打开Ethernet开关 2.cat /sys/class/net/eth0/address WIFI Mac方法: 1.先打开wifi开关 2.cat /sys/class/net/wlan0/address