[CentOS] CentOS 6 : Network Interface Naming

Fri Nov 15 18:58:48 UTC 2013
Steve Clark <sclark at netwolves.com>

On 11/15/2013 01:50 PM, SilverTip257 wrote:
> Hello All,
>
> I have one CentOS 6 KVM virtualization server that I built around a year
> ago (best I can tell it was in October 2012) at which time I would have
> been installing 6.3 [0].  That particular install used the Consistent
> Network Device Naming [1] conventions (PCIe NICs are p1p1, p1p2).
>
> I started to build out a new KVM virt server (kickstarting a 6.4 install
> now as compared to 6.3 back then) and the interface names are back to the
> old ethX convention for the PCIe NICs.  See below for my snippets from udev
> persistent rules on the two hosts.
>
> I'm working off of [older] Dell PowerEdge 2950 hardware that has dual
> onboard Broadcom NICs and an additional Intel Dual GigE PCIe NIC.
>
> ** Did anyone but me notice this change/regression in network interface
> naming?
> ** Does anyone know if or why a change was made from what 6.3 or earlier
> apparently defaulted to?
>
> This is by no means a major problem, but it did make me wonder what caused
> or why there was a change.  [Of course I can change interface names in the
> udev rules if I chose to.]
>
> Thanks for your feedback!
>
> ==================
>
> Snippets:
>
> # was 6.3 when initially installed, but has been updated to 6.4 since then
> ~]# cat /etc/*ele*
> CentOS release 6.4 (Final)
> CentOS release 6.4 (Final)
> CentOS release 6.4 (Final)
> cpe:/o:centos:linux:6:GA
> ~]# egrep -v '^$|^#' /etc/udev/rules.d/70-persistent-net.rules
> SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*",
> ATTR{address}=="00:22:19:xx:xx:xx", ATTR{type}=="1", KERNEL=="eth*",
> NAME="eth0"
> SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*",
> ATTR{address}=="00:22:19:xx:xx:xx", ATTR{type}=="1", KERNEL=="eth*",
> NAME="eth1"
> SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*",
> ATTR{address}=="00:15:17:xx:xx:xx", ATTR{type}=="1", KERNEL=="eth*",
> NAME="p1p1"
> SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*",
> ATTR{address}=="00:15:17:xx:xx:xx", ATTR{type}=="1", KERNEL=="eth*",
> NAME="p1p2"
> ~]# lspci | grep Ether
> 05:00.0 Ethernet controller: Broadcom Corporation NetXtreme II BCM5708
> Gigabit Ethernet (rev 12)
> 09:00.0 Ethernet controller: Broadcom Corporation NetXtreme II BCM5708
> Gigabit Ethernet (rev 12)
> 0c:00.0 Ethernet controller: Intel Corporation 82571EB Gigabit Ethernet
> Controller (rev 06)
> 0c:00.1 Ethernet controller: Intel Corporation 82571EB Gigabit Ethernet
> Controller (rev 06)
>
> # freshly installed 6.4
> ~]# cat /etc/*ele*
> CentOS release 6.4 (Final)
> CentOS release 6.4 (Final)
> CentOS release 6.4 (Final)
> cpe:/o:centos:linux:6:GA
> ~]# egrep -v '^$|^#' /etc/udev/rules.d/70-persistent-net.rules
> SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*",
> ATTR{address}=="00:22:19:xx:xx:xx", ATTR{type}=="1", KERNEL=="eth*",
> NAME="eth0"
> SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*",
> ATTR{address}=="00:15:17:xx:xx:xx", ATTR{type}=="1", KERNEL=="eth*",
> NAME="eth2"
> SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*",
> ATTR{address}=="00:22:19:xx:xx:xx", ATTR{type}=="1", KERNEL=="eth*",
> NAME="eth1"
> SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*",
> ATTR{address}=="00:15:17:xx:xx:xx", ATTR{type}=="1", KERNEL=="eth*",
> NAME="eth3"
> ~]# lspci | grep Ether
> 03:00.0 Ethernet controller: Broadcom Corporation NetXtreme II BCM5708
> Gigabit Ethernet (rev 12)
> 07:00.0 Ethernet controller: Broadcom Corporation NetXtreme II BCM5708
> Gigabit Ethernet (rev 12)
> 08:00.0 Ethernet controller: Intel Corporation 82571EB Gigabit Ethernet
> Controller (rev 06)
> 08:00.1 Ethernet controller: Intel Corporation 82571EB Gigabit Ethernet
> Controller (rev 06)
>
>
> [0] https://access.redhat.com/site/articles/3078
> [1]
> https://access.redhat.com/site/documentation/en-US/Red_Hat_Enterprise_Linux/6/html/Deployment_Guide/appe-Consistent_Network_Device_Naming.html
>
Do you have the biosdevname package loaded?




-- 
Stephen Clark
*NetWolves*
Director of Technology
Phone: 813-579-3200
Fax: 813-882-0209
Email: steve.clark at netwolves.com
http://www.netwolves.com