Ask Your Question
0

NIC name eno<number> on centos

asked 2016-02-19 23:10:52 -0500

PZ gravatar image

Hi team,

I am using packstack/RDO to try to configure Openstack to work, looked at many documents and all mentioned to configure NIC eth0, eth1... during networking part, but on the Centos the NIC is liking as enoxxxxxx, can I use this enoxxxxxx directly to do the configure or I have to rename them to ethx, thanks in advance.

Regards, PZ

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
0

answered 2016-02-22 03:33:54 -0500

teju gravatar image

Use the NIC names enoxxxxx directly. Do not rename the interface names

edit flag offensive delete link more
0

answered 2016-02-22 01:36:11 -0500

Hello PZ.

By now you probably already know that yes, you can (actually, you HAVE TO) use the native interface names you system offers you, to configure your software.

Using the enoXXXX will be as good as using the ethX in the good old time, or even on other systems.

For what it is worth, the new naming, while strange to old timers like me as well, are smarter: they reflect, among other things, the topology of your particular NIC (EN for Ethernet, WL for wireless lan, etc). It seems to be a trend and we will see more and more of it.

There is some interesting material from RedHat here:

https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/6/html/Deployment_Guide/appe-Consistent_Network_Device_Naming.html (https://access.redhat.com/documentati...)

Now, if you really like the old naming, there is a way to go back to it (direct quote from CentOS' site):

  • Add "net.ifnames=0" and "biosdevname=0" as kernel arguments to grub
  • In '/etc/sysconfig/network-scripts/' Change your configured NIC config file to 'ifcfg-ethX'
  • If you have multiple interfaces and want to control naming of each device rather than letting the kernel do in its own way, /etc/udev/rules.d/60-net.rules seems necessary to override /usr/lib/udev/rules.d/60-net.rules.

https://wiki.centos.org/FAQ/CentOS7

Cheers

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2016-02-19 23:10:52 -0500

Seen: 724 times

Last updated: Feb 22 '16