在linux中识别物理网络接口

前端之家收集整理的这篇文章主要介绍了在linux中识别物理网络接口前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
参见英文答案 > What is the command to flash a NIC link light?3个
我是linux的新手,我有四个网卡的服务器.我必须确定将哪个物理网络接口分配给名称eth0,eth1,eth2和eth3.我必须从eth2断开电缆,不知道它是哪个网卡.

谢谢

解决方法

你可以使用ethtool.
ethtool -p ethX [N]

> ethX – 网络接口名称
> [N] – 闪烁的秒数

例:

ethtool -p eth2 15

这将使网络接口eth2闪烁15秒,然后您可以查看eth2的物理网络接口

原文链接:https://www.f2er.com/linux/400620.html

猜你在找的Linux相关文章