Bug 592928 - RFE: Support per-interface custom scripts pre/post ifup/ifdown
Summary: RFE: Support per-interface custom scripts pre/post ifup/ifdown
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: initscripts
Version: 5.5
Hardware: All
OS: Linux
Target Milestone: rc
: ---
Assignee: initscripts Maintenance Team
QA Contact: qe-baseos-daemons
Depends On:
TreeView+ depends on / blocked
Reported: 2010-05-17 11:52 UTC by Pasi Karkkainen
Modified: 2010-06-04 19:54 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 600489 (view as bug list)
Last Closed: 2010-06-04 19:54:51 UTC
Target Upstream Version:

Attachments (Terms of Use)

Description Pasi Karkkainen 2010-05-17 11:52:04 UTC
Description of problem:

I'd like to run custom pre/post scripts for ifup and ifdown, to make
advanced network configuration with iproute and other tools.

Currently there is no way to execute custom scripts on ifup/ifdown for an ethernet interface. Default networking scripts look for /sbin/ifup-local, and execute it if it exists, but it would be much more convenient to have something under /etc/ instead, and be able to have a script per interface useable out-of-the-box without any manual hacks under /sbin/.

Version-Release number of selected component (if applicable):

Currently in rhel5 you can do this:

1. create /etc/sysconfig/network-scripts/ifcfg-zscripts with contents

2. create /sbin/ifup-local executable with for example:
if [ "$1" == "dummy0" ]; then
  echo "running scripts"


It will be executed for every interface, others that dummy0 are skipped.
But this is not very nice method..

Debian/Ubuntu allows the user to specify custom commands directly from /etc/network/interfaces file, configured per interface.

Comment 1 Bill Nottingham 2010-06-04 19:54:51 UTC
I'm cloning this for our development stream as bug 600489. However, this is the sort of change of interfaces that isn't really appropriate to add to an existing RHEL stream, where we're trying to keep the interfaces and documentation as stable as possible.

Closing as WONTFIX for RHEL 5 at this stage of its lifecycle.

Note You need to log in before you can comment on or make changes to this bug.