Allied Telesis Routers and Switches Datenblatt - Seite 11

Blättern Sie online oder laden Sie pdf Datenblatt für Netzwerk-Router Allied Telesis Routers and Switches herunter. Allied Telesis Routers and Switches 15 Seiten. Allied telesis router and switch data sheet

Allied Telesis Routers and Switches Datenblatt
Configure the Triggers: Extra Commands
When the preferred server goes down or comes back up again, the load balancer needs to
change to the appropriate resource. This example uses triggers to make this change
automatically, by running a script when the server's state changes.
This section describes the extra trigger commands you need to add on both load balancer 1
and load balancer 2. See
scripts.
As part of its healthcheck feature, the load balancer regularly sends pings to check the health
of each server. If the server does not respond, the load balancer changes the resource state
to Closing. If the server starts to respond to the pings again, the load balancer changes the
resource state to Up. The following triggers activate a script when one of these state changes
occurs.
Set the router to run the script
the second resource.
Set the router to run the script
This script disables the second resource.
Modify the Scripts
When the router is the master load balancer, it needs a rule to pass SFTP traffic through the
firewall. Similarly, this rule needs to be deleted when the router becomes the slave.
Add the following lines to the scripts on both load balancer 1 and load balancer 2. See
"Create the Scripts" on page 9
!
# Add an allow rule for SFTP traffic access over the SSHv2 port 22.
add firewall policy=lb rule=2 int=vlan2-1 action=allow protocol=tcp port=22
!
# Remove the SFTP access rule.
delete firewall policy=lb rule=2
Configure Load Balancer Redundancy on Allied Telesis Routers and Switches
"Create New Scripts" on page 12
create trigger=4 module=loadbalancer event=resstate
resource=sftp1 lbstate=closing script=sftp1down.scp
create trigger=5 module=loadbalancer event=resstate
resource=sftp1 lbstate=up script=sftp1up.scp
master.scp
slave.scp
if the first resource fails. This script enables
sftp1down.scp
if the first resource becomes available again.
sftp1up.scp
for the original scripts.
for instructions for making the
11