User Tools

Site Tools


wiki:centos_7_interface_naming

This is an old revision of the document!


CentOS 7 Interface Naming

Jan 2017



From CentOS 7 onwards the way the interfaces are named has changed. Gone are the traditional eth0, eth1 etc. This is slightly annoying for those of use that are used to it.

An interface name is now comprised of an identifier followed by a value for the interface.

<sxh [txt][; options for SyntaxHighlighter]> Two character prefixes based on the type of interface: * en – ethernet * sl – serial line IP (slip) * wl – wlan * ww – wwan * ib – Infiniband

Type of names: * b<number> – BCMA bus core number * ccw<name> – CCW bus group name * o<index> – on-board device index number * s<slot>[f<function>][d<dev_port>] – hotplug slot index number * x<MAC> – MAC address * [P<domain>]p<bus>s<slot>[f<function>][d<dev_port>]

  1. - PCI geographical location

* [P<domain>]p<bus>s<slot>[f<function>][u<port>][..]1[i<interface>] </sxh>
Here is an example of a CentOS 7.2 installation, that is using multiple interfaces.

ens513f0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN qlen 1000
ens513f1: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN qlen 1000
ens513f2: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN qlen 1000
ens513f3: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN qlen 1000
enp4s0f0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP qlen 1000
enp4s0f3: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN qlen 1000


So enp4s0f0 is what we would recognise normally as eth0.

en is Ethernet. The letter p/s is the index (I have seen other letters for this) and the value is the interface number (again, its in a crappy order that doesn't necessarily follow the hardware port numbering).

In this above example, the server has two onboard interfaces (what we shall refer to as eth0 and eth1) and a PCI board that has four interfaces. This is why two of the interfaces have the letter p and four have the letter s. Where this letter comes from I have not yet worked out.

wiki/centos_7_interface_naming.1489090234.txt.gz · Last modified: 2023/03/09 22:35 (external edit)