Reese Knowledgebase

udev assigns incorrect number to eth device

View Kristian Reese's profile on LinkedIn


If you like this article, please +1 or Recommend via FB with the provided buttons above:

Article ID: 64
by: Reese K.
Posted: 19 Sep, 2012
Last updated: 19 Sep, 2012
Views: 1819

eth interface number changes and is not what is expected

During a recent exercise where I created a RedHat 6.3 virtual machine, clones of that virtual machine each had different numbers assigned to their respective eth device(s).  I've run into this booger before in the past and remembered that udev creates a persistent rule in /etc/udev/rules.d that needs to be modified to obtain the desired NIC layout.  The file is:

/etc/udev/rules.d/70-persistent-net.rules

After modifying that file to match MAC address to eth0, eth1, eth{N}, reboot.

Otherwise, if you're not comfortable with editing the file or are unsure which MAC is suppose to be which eth device, simply remove the file and reboot.  udev will recreate it on boot up.

This article was:   Helpful | Not Helpful
Prev   Next
automount in linux     crontab format

RSS