• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer navigation

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • VCS
  • Interview Questions
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

How to Disable “Predictable Network Interface Device Names” in CentOS/RHEL 7

by admin

On a CentOS/RHEL 7, the network interface will be named like enoxxx. This post provides steps on how to disable such “Predictable Network Interface Device Names”.

We can use the following ways to disable the predictable network interfaces:

1. Create your own manual naming scheme by defining your own udev rules file in /etc/udev/rules.d folder and set the NAME property for the devices.

Make sure to order it before the default policy file which is /etc/udev/rules.d/70-persistent-net.rules. For example setting the interface as lan0:

SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="xx:xx:xx:xx:xx:xx", ATTR{type}=="1", NAME="lan0"

2. Pass the arguments net.ifnames=0 and biosdevname=0 on the kernel command line in /etc/grub.conf file.

Filed Under: CentOS/RHEL 7, Linux, OEL 7

Some more articles you might also be interested in …

  1. How to uninstall jellyfish software package from Ubuntu
  2. getsebool: command not found
  3. LVM and multipathing – sample LVM filter strings
  4. lsof: command not found
  5. How to Install SSHFS on CentOS/RHEL/Ubuntu
  6. hardinfo Command Examples in Linux
  7. How to Restrict Active Directory Users and Groups to Login to CentOS/RHEL 7 Client
  8. Ubuntu Linux – OpenShot Video Editor
  9. uptime: command not found
  10. rbash – Set Restricted shell in Linux

You May Also Like

Primary Sidebar

Recent Posts

  • ncat Command Examples in Linux
  • ncat: command not found
  • nautilus Command Examples in Linux
  • namei: command not found

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright