Tip of the day: ifup-local

| No Comments | No TrackBacks
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: ,

No TrackBacks

TrackBack URL: http://blog.jds2001.org/cgi-bin/mt-tb.cgi/214

Leave a comment