April 2024
M T W T F S S
1234567
891011121314
15161718192021
22232425262728
2930  

Categories

April 2024
M T W T F S S
1234567
891011121314
15161718192021
22232425262728
2930  

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>