Have you ever wanted local initialization actions to be taken when you bring up an interface on RHEL? Put your commands in /sbin/ifup-local. It gets called like '/sbin/ifup-local eth0' if you're bringing up eth0. A practical example for when you might want to do this is populating the ARP cache of the host with some predefined stuff.
Interestingly, there's also an option for a /sbin/ifup-pre-local. which gets called before ifup-$DEVICETYPE. Not sure what one would use this for in practice, any ideas?
Labels: linux, networking


Leave a comment