December 2024
M T W T F S S
 1
2345678
9101112131415
16171819202122
23242526272829
3031  

Categories

December 2024
M T W T F S S
 1
2345678
9101112131415
16171819202122
23242526272829
3031  

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>