Allied Telesis Routers and Switches manual Either

Page 8

6.Disable the GUI and the HTTP server on port 80

Either:

disable gui disable http server

Or:

set http server port=8080

7.Configure VRRP

enable vrrp

create vrrp=2 over=vlan3 ipaddress=192.168.1.202

8.Configure load balancing

enable lb

add lb respool=web selectmethod=roundrobin faillast=no add lb resource=web1 ip=192.168.1.1 port=80 respool=web add lb resource=web2 ip=192.168.1.2 port=80 respool=web

add lb virtualbalancer=web publicip=172.214.1.2 publicport=80 respool=web

enable lb virtualbalancer=web

set lb redundancy peerip=192.168.2.2 listenport=5000 redunip=172.214.1.2 publicint=vlan2 redunmask=255.255.255.0

enable lb redundancy

9.Configure triggers

enable trigger

create trigger=2 module=loadbalancer event=master script=master.scp

create trigger=3 module=loadbalancer event=slave script=slave.scp

10.Save the configuration

create config=lb_redun.cfg

set config=lb_redun.cfg

Configure Load Balancer Redundancy on Allied Telesis Routers and Switches

8

Image 8
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 SelectionConfigure the Triggers Extra Commands Modify the ScriptsMaster.scp Slave.scpScript for when the preferred server goes down sftp1down.scp Create New ScriptsConfiguration Summary Commands Load BalancerCommands Load Balancer File master.scp File slave.scpFile sftp1down.scp File sftp1up.scp