1、查询网络端口号:sudo ethtool -p eth0 ,该操作会让端口eth0一直闪烁;
2、查询网络端口的物理地址: sudo ethtool -i eth0 ,会得到端口eth0的物理地址。