5.1.6.1.1. Procedure – Creating interface activation scripts

Purpose: 

To create an interface activation script for an interface, complete the following steps.

Steps: 

  1. Navigate to Networking > Interfaces and select the interface to configure.

  2. Configuring interface options

    Figure 5.7. Configuring interface options

    To add a new option to the interface, click New.

  3. From the Option field, select the type of the script (pre-up, up, post-up, pre-down, down, post-down).

  4. Defining interface scripts

    Figure 5.8. Defining interface scripts

    Enter the command to execute in the script into the Attributes field. Use full path name, for example, /sbin/ifdown.

  5. To execute multiple commands, repeat Steps 2-4.

  6. To set the order of commands, use the arrow buttons below the list of options.

    Tip

    If you have to use complex scripts, create a script file on the PNS host using a text editor, and add an option to run it when needed.