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:
post-up scripts are executed after the interface is activated.
post-down scripts are executed after the interface is deactivated.
5.1.5.1.1. Procedure – Creating interface activation scripts
Purpose:
To create an interface activation script for an interface, complete the following steps.
Steps:
Navigate to
and select the interface to configure.To add a new option to the interface, click
.From the
field, select the type of the script (post-up
,post-down
).Enter the command to be executed to the
field under . Use full path name, for example,/sbin/ifdown
.To execute multiple commands, repeat Steps 2-4.
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.
Copyright: © 2021 Balasys IT Security
Send your comments to support@balasys.hu