Manually trigger creation

We are looking to trigger the recreation of the

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

file under RHEL 6.5 (current patches)

QUOTE FROM ARTICLE ABOVE:

Resolution •You can manually force udev to create the rules file by running the following command:

This command is recommended to trigger the rules file:

# udevadm trigger --subsystem-match=net

Usually the

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

file can simply be deleted and it'll be regenerated upon reboot. But sometimes it's not or not fully regenerated. In these cases you can try either of these:

 udevadm trigger
 udevadm trigger --action=add 

For me on an Ubuntu Precise (12.04.1) system the reboot created an entry in the rules file only for one of the NICs. And the

udevadm trigger

did not recreate the rules file. However the

udevadm trigger --action=change

command did the trick:

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

was regenerated and it contained entries for both NICs.

P.S.: the

udevadm trigger --action=change

trick should be used only after you deleted the rules file and rebooted.

Thanks