系统相关
首页 > 系统相关> > 最新linux网口命名规则

最新linux网口命名规则

作者:互联网

查看pci接口

$ lspci|grep -i "eth"
02:00.0 Ethernet controller: Intel Corporation
06:00.0 Ethernet controller: Intel Corporation
06:00.1 Ethernet controller: Intel Corporation
83:00.0 Ethernet controller: Intel Corporation

查看网口信息

$ ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    
2: enp131s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000

3: enp2s0f0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN group default qlen 1000

4: enp2s0f1: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN group default qlen 1000

6: enp2s0f2: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN group default qlen 1000

7: enp2s0f3: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN group default qlen 1000

11: enp6s0f0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000

12: enp6s0f1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000

en表示Ethernet;p表示pci接口位置,与上面pci查到的信息的冒号分割的第一个数字对应,注意pci查出来的是16进制,所以enp131,就对应83:00.0中的83;s,对应pci查出的第二个数字;f,对应pci查处的第三个数字

标签:qlen,qdisc,group,default,state,mtu,网口,linux,命名
来源: https://www.cnblogs.com/studywithallofyou/p/16611964.html