How to Rename a Network Interface in Linux

by

in

This procedure is useful when a new network card is installed and the system won’t initialize the new card. The problem is that the ID of old and new card is the same. For some reason the system does not automatically comment out or remove the entry of the old card. So you have to do it yourself.

1. First, create a backup of the file you’re about to modify
cp /etc/udev/rules.d/70-persistent-net.rules /etc/udev/rules.d/70-persistent-net.rules.bak

2. Then edit the file:
nano /etc/udev/rules.d/70-persistent-net.rules

Carefully examine the contents of this file. If there are stale entries from cards that are no longer installed in the system, the line(s) can be removed by commenting them out (# at the beginning of the line).

3. Save the file and reboot. All done!


Comments

Leave a Reply

Your email address will not be published. Required fields are marked *