9.Configure triggers
If one of the load balancers goes down, the firewall configuration needs to change. This example uses triggers to make this change automatically, by running a script when the state changes. See "Create the Scripts" on page 9 for instructions for making the scripts.
Enable triggers.
enable trigger
Set the router to run the script master.scp if it becomes the master load balancer. This script adds firewall allow rules to support the resource pools.
create trigger=2 module=loadbalancer event=master script=master.scp
Set the router to run the script slave.scp if it becomes the slave load balancer. This script removes redundant firewall allow rules.
create trigger=3 module=loadbalancer event=slave script=slave.scp
10.Save the configuration
Save the configuration and set the router to use it when it restarts.
create config=lb_redun.cfg
set config=lb_redun.cfg
Configure Load Balancer Redundancy on Allied Telesis Routers and Switches | 6 |