Renaming / Renumbering Network Interfaces

If you have network interfaces that no longer counts from 0 or 1 because you’ve added and removed a network card, you may force Linux to renumber the interfaces by modifying the udev rules and network configs.

The simplest solution would be to:

  1. Delete (or edit out old entries in) /etc/udev/rules.d/70-persistent-net.rules
  2. Edit the network scripts in /etc/sysconfig/network-scripts/ifcfg-* and delete any extraneous configs.
  3. Reboot

Ensure that your network configs match the interfaces when the system comes back up.

Leave a Reply

Your email address will not be published.