Linux与网络相关的命令

1、查询网络端口号:sudo ethtool -p eth0 ,该操作会让端口eth0一直闪烁;

2、查询网络端口的物理地址: sudo ethtool -i eth0 ,会得到端口eth0的物理地址。

猜你喜欢

转载自www.cnblogs.com/GuanghuiLiu/p/9107621.html