加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > Linux > 正文

在linux中识别物理网络接口

发布时间:2020-12-13 18:00:54 所属栏目:Linux 来源:网络整理
导读:参见英文答案 What is the command to flash a NIC link light?3个 我是linux的新手,我有四个网卡的服务器.我必须确定将哪个物理网络接口分配给名称eth0,eth1,eth2和eth3.我必须从eth2断开电缆,不知道它是哪个网卡. 谢谢 解决方法 你可以使用ethtool. ethtoo
参见英文答案 > 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的物理网络接口

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读