Allied Telesis Routers and Switches manual What information will you find in this document?

Page 2

The Note’s second example extends the first example by showing how to control server selection for SFTP (Secure File Transfer Protocol) traffic, while still providing server redundancy if the preferred server fails.

For simplicity, these examples provide load balancing between two servers. You can easily expand the examples by adding more servers.

What information will you find in this document?

As outlined above, the Note first describes basic load balancer redundancy. To configure this, do all the following steps:

"Configure Load Balancer 1" on page 3

"Configure Load Balancer 2" on page 7

"Create the Scripts" on page 9

Then the Note describes the optional extensions that let you control server selection. To configure this, make all the following additions to the basic configuration:

"Configure Load Balancing: Extra Commands" on page 10

"Configure the Triggers: Extra Commands" on page 11

"Modify the Scripts" on page 11

"Create New Scripts" on page 12

Finally, the Note gives the complete extended configuration so you can verify your configuration. Also, you may find it easier to copy this configuration to your router instead of using the step-by-step configuration.

"Commands: Load Balancer 1" on page 13

"Commands: Load Balancer 2" on page 14

"File: master.scp" on page 15

"File: slave.scp" on page 15

"File: sftp1down.scp" on page 15

"File: sftp1up.scp" on page 15

Which products and software version does it apply to?

We created this configuration using AR440S routers and Software Version 275-05. However, the configuration applies to the following products:

AR44xS and AR450S Series routers

AR750S, AR7x5 routers

Rapier i Series switches

AT-8800 Series switches

AT-9800 Series switches

It requires software version 275-05 or later (except version 276-01, which lacks the necessary trigger functionality).

Configure Load Balancer Redundancy on Allied Telesis Routers and Switches

2

Image 2
Contents Introduction ExamplesWhat information will you find in this document? Which products and software version does it apply to?Configure Load Balancer Example of Basic RedundancyConfigure the firewall Disable the GUI and the Http server on portConfigure Vrrp Configure load balancingConfigure triggers Save the configurationSet system name=LB-2 Either Script for when a load balancer becomes the slave slave.scp Create the ScriptsConfigure Load Balancing Extra Commands Extension Controlling Server SelectionMaster.scp Configure the Triggers Extra CommandsModify the Scripts Slave.scpScript for when the preferred server goes down sftp1down.scp Create New ScriptsConfiguration Summary Commands Load BalancerCommands Load Balancer File sftp1down.scp File master.scpFile slave.scp File sftp1up.scp