CentOs7中网卡命名规则

CentOs7中网卡命名规则

CentOs7中的网卡名字是类似“enp11s0f0”这种,它的命名规则前两个字符前缀是基于网卡类型:

1、en:以太网( Ethernet )

2、wl:无线网( WLAN )

3、ww: wireless wide area network ( WWAN )。

后面跟的是如下类型:

o<index>:主板集成设备序号。

s<slot>[f<function>][d<dev_id>]:热插拔索引号。所有的多功能PCI设备(multi-function PCI devices)都会在设备名中代[f<function>]号,包含功能0设备(includeing the function 0 device)。

x<MAC>:MAC地址。

[P<domain>]p<bus>s<slot>[f<function>][d<dev_id]:PCI的物理位置。在PCI物理位置(geographical location)中,[P<domain>]号如果不是0,那么它仅是用于记录。例如:
ID_NET_NAME_PATH=P1enp5s0

[P<domain>]p<bus>s<slot>[f<function>][u<port>][…][c<config>][i<interface>]:USB端口链号(USB port number chain)。用于USB设备,the ful chain of port numbers of hubs is composed. 如果名字超过15个字符的最大限制,那么这个名字不能使用。如果有多个USB设备在链中,USB配置描述符(c1)和USB接口描述符(i0)会被压缩。

发表回复