当前位置:   article > 正文

Linux 网卡命名_enp3s0

enp3s0
  1. (base) quejl@host:~$ ip link
  2. 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
  3. link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
  4. 2: enp3s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP mode DEFAULT group default qlen 1000
  5. link/ether 0c:9d:92:63:64:34 brd ff:ff:ff:ff:ff:ff
  6. 3: enp1s0f0np0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP mode DEFAULT group default qlen 1000
  7. link/ether 08:c0:eb:97:d4:82 brd ff:ff:ff:ff:ff:ff
  8. 4: enp1s0f1np1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP mode DEFAULT group default qlen 1000
  9. link/ether 08:c0:eb:97:d4:83 brd ff:ff:ff:ff:ff:ff
  10. 5: tmfifo_net0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UNKNOWN mode DEFAULT group default qlen 1000
  11. link/ether 00:1a:ca:ff:ff:02 brd ff:ff:ff:ff:ff:ff
  12. 6: docker0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN mode DEFAULT group default
  13. link/ether 02:42:f9:f2:c5:ce brd ff:ff:ff:ff:ff:ff
l0环回口
enp3s0pci编号为03:00.0以太网卡
enp1s0f0np0
enp1s0f1np1
tmfifo_net0
docker0

通过插拔网线和dmesg、lspci命令,enp3s0 pci编号为03:00.0以太网卡;

enp1s0f0np0 就是 pci编号为01:00.0以太网卡

  1. (base) quejl@host:~$ dmesg
  2. [ 3567.778574] r8169 0000:03:00.0 enp3s0: Link is Down
  3. mlx5_core 0000:01:00.0: Port module event: module 0, Cable unplugged
  4. (base) quejl@host:~$ lspci
  5. 00:00.0 Host bridge: Intel Corporation Xeon E3-1200 v6/7th Gen Core Processor Host Bridge/DRAM Registers (rev 05)
  6. 00:01.0 PCI bridge: Intel Corporation 6th-10th Gen Core Processor PCIe Controller (x16) (rev 05)
  7. 00:02.0 VGA compatible controller: Intel Corporation HD Graphics 630 (rev 04)
  8. 00:14.0 USB controller: Intel Corporation 200 Series/Z370 Chipset Family USB 3.0 xHCI Controller
  9. 00:16.0 Communication controller: Intel Corporation 200 Series PCH CSME HECI #1
  10. 00:17.0 SATA controller: Intel Corporation 200 Series PCH SATA controller [AHCI mode]
  11. 00:1c.0 PCI bridge: Intel Corporation 200 Series PCH PCI Express Root Port #5 (rev f0)
  12. 00:1c.7 PCI bridge: Intel Corporation 200 Series PCH PCI Express Root Port #8 (rev f0)
  13. 00:1d.0 PCI bridge: Intel Corporation 200 Series PCH PCI Express Root Port #9 (rev f0)
  14. 00:1f.0 ISA bridge: Intel Corporation 200 Series PCH LPC Controller (B250)
  15. 00:1f.2 Memory controller: Intel Corporation 200 Series/Z370 Chipset Family Power Management Controller
  16. 00:1f.3 Audio device: Intel Corporation 200 Series PCH HD Audio
  17. 00:1f.4 SMBus: Intel Corporation 200 Series/Z370 Chipset Family SMBus Controller
  18. 01:00.0 Ethernet controller: Mellanox Technologies MT42822 BlueField-2 integrated ConnectX-6 Dx network controller (rev 01)
  19. 01:00.1 Ethernet controller: Mellanox Technologies MT42822 BlueField-2 integrated ConnectX-6 Dx network controller (rev 01)
  20. 01:00.2 DMA controller: Mellanox Technologies MT42822 BlueField-2 SoC Management Interface (rev 01)
  21. 03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 15)

ens、eno、enp网口的区别
扩展知识内容:

en标识ethernet
o:主板板载网卡,集成是的设备索引号
p:独立网卡,PCI网卡
s:热插拔网卡,USB之类的扩展槽索引号
nnn(数字):MAC地址+主板信息计算得出唯一序列
 

eno1:代表由主板bios内置的网卡

ens1:代表有主板bios内置的PCI-E网卡

enp2s0: PCI-E独立网卡

eth0:如果以上都不使用,则回到默认的网卡名
 

Linux网卡命名 - bfhyqy - 博客园

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/小蓝xlanll/article/detail/149162
推荐阅读
相关标签
  

闽ICP备14008679号