Page 2 - What information will you find in this document?; As outlined above, the Note first describes; basic load balancer redundancy; Then the Note describes the optional extensions that let you; control server selection; Which products and software version does it apply to?; Rapier i Series switches
Configure Load Balancer Redundancy on Allied Telesis Routers and Switches 2 The Note’s second example extends the first example by showing how to control ser ver selection for SFTP (Secure File Transfer Protocol) traffic, while still providing ser ver redundancy if the preferred ser ver fails. For s...
Page 3 - Example of Basic Redundancy; Configure Load Balancer 1; Name the router
Configure Load Balancer Redundancy on Allied Telesis Routers and Switches 3 Example of Basic Redundancy Configure Load Balancer 1 Name this router LB-1. set system name=LB-1 Create the three VLANs that this example uses: • VLAN 2 for the public Internet side create vlan=vlan2 vid=2 • VLAN 3 for the ...
Page 4 - Create a firewall policy.; Add the public and private interfaces to the firewall policy.; Configure the firewall
Configure Load Balancer Redundancy on Allied Telesis Routers and Switches 4 Enable the firewall. enable firewall Create a firewall policy. create firewall policy=lb Set the firewall session timeouts for TCP, UDP and other packet types, in minutes. set firewall policy=lb tcptimeout=5 udptimeout=5 oth...
Page 5 - Enable load balancing.; Add a resource pool for web traffic.; Configure VRRP
Configure Load Balancer Redundancy on Allied Telesis Routers and Switches 5 Configure VRRP for the private side interface. This step creates a vir tual address for the private interface of both load balancing routers. Private servers use this address as their gateway to the Internet, instead of usin...
Page 6 - allow; Configure triggers
Configure Load Balancer Redundancy on Allied Telesis Routers and Switches 6 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" o...
Page 7 - Configure Load Balancer 2; Load balancer 2 is identical to load balancer 1, except for its:
Configure Load Balancer Redundancy on Allied Telesis Routers and Switches 7 Configure Load Balancer 2 Load balancer 2 is identical to load balancer 1, except for its: • name (which is just a convenience and does not affect how it functions) • public interface’s IP address • private interface’s IP ad...
Page 9 - Create the Scripts; ) and copy and paste the text of the script; load; command to download the files from the server.; Script for when a load balancer becomes the master:
Configure Load Balancer Redundancy on Allied Telesis Routers and Switches 9 Create the Scripts This section describes the scripts that the trigger facility runs when the master or slave load balancer changes. Create the same scripts on both load balancer 1 and load balancer 2. Create the scripts in ...
Page 10 - Extension: Controlling Server Selection; Configure Load Balancing: Extra Commands; affinity
Configure Load Balancer Redundancy on Allied Telesis Routers and Switches 10 Extension: Controlling Server Selection Sometimes you may prefer your customers to access a certain server for certain traffic types. However, if that ser ver fails, they still require redundancy to an alternate server. Thi...
Page 11 - Configure the Triggers: Extra Commands; healthcheck; Modify the Scripts
Configure Load Balancer Redundancy on Allied Telesis Routers and Switches 11 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,...
Page 12 - Create New Scripts; Script for when the preferred server goes down:
Configure Load Balancer Redundancy on Allied Telesis Routers and Switches 12 Create New Scripts This section describes the scripts that the trigger facility runs when the preferred SFTP server goes down or comes back up again. The scripts enable and disable the second resource. Load the same scripts...
Page 13 - Configuration Summary; Commands: Load Balancer 1
Configure Load Balancer Redundancy on Allied Telesis Routers and Switches 13 Configuration Summary This section shows the full extended configurations and scripts, without comments. Commands: Load Balancer 1 set sys name=LB-1 create vlan=vlan2 vid=2create vlan=vlan3 vid=3create vlan=vlan4 vid=4 add ...
Page 14 - Commands: Load Balancer 2
Configure Load Balancer Redundancy on Allied Telesis Routers and Switches 14 Commands: Load Balancer 2 set sys name=LB-2 create vlan=vlan2 vid=2create vlan=vlan3 vid=3create vlan=vlan4 vid=4 add vlan=2 port=1add vlan=3 port=2-4add vlan=4 port=5 enable ip add ip int=vlan2 ip=172.214.1.4 mask=255.255....