命令1:sudo lshw -c network | grep serial 命令2:ifconfig,ubuntu16.04 HWaddr后面的为mac地址,ubuntu18.04 ether后面的为mac地址