5.1.6.1. Configuring interface activation scripts

Interface activation scripts can be useful for scenarios where special procedures are required to initialize networking.

For example, changing the Media Access Control (MAC) address of a network card before bringing it up can be done with a pre-up script. Such scripts should also be used for configuring bridge interfaces.

The following types of activation scripts can be set:

  1. pre-up scripts are executed before the interface is activated.

  2. up scripts activate the interface.

  3. post-up scripts are executed after the interface is activated.

  4. pre-down scripts are executed before the interface is deactivated.

  5. down scripts deactivate the interface.

  6. post-down scripts are executed after the interface is deactivated.