Changes to 70-persistent-net.rules not reflected in ifconfig until reboot
Ok so the titles a bit of a mouthful, let me explain.
I am working on a Fedora 13 iso that will be used on some of the PC's at my work, the computers will have a varying amount of Ethernet ports, at least two onboard and up to 6 external. In order to ensure that the same physical port on the back of the computer is always used for the internet connection I have written a script to rearrange the contents of /etc/udev/rules.d/70-persistent-net.rules. The script ensures that the two Ethernet ports on the motherboard are listed as eth0 and eth1, without it they could end up as any port in the eth0-7 range.
The script works well however when its run I need to reboot the PC for the ifconfig to load the correct port as eth0/eth1. I have tried placing calls to my function through the rc.sysinit/rc.5d/rc.local and so on however nothing seems to work.
Is there a way to make ifconfig check the mac/eth configuration files for changes (There appears to no longer be an ifprobe command which sounds like what I need). Alternatively is there somewhere I can place the script after udev has created the persistent-net.rules but before anything else loads the information. I have tried chkconfig --level 2345 network off and loading the service later but it still uses the wrong information, only a reboot seems to get it to work.
Thanks for any help or suggestions!
Have you tried running "/sbin/start_udev"? "service network restart"?
Maybe the following sequence?
service network stop
service network start
You may need to restart network service.
Thanks for both your quick replys!
The /sbin/start_udev command was exactly what I needed.
It all works great now, wish I'd asked sooner!
|All times are GMT -5. The time now is 09:36 PM.|