April 2025
M T W T F S S
 123456
78910111213
14151617181920
21222324252627
282930  

Categories

April 2025
M T W T F S S
 123456
78910111213
14151617181920
21222324252627
282930  

udev assigns incorrect number to eth device

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.

Leave a Reply

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>