TechTipAlteonAlteonHTTPLoadBalancingContentsOverview..........................................................................................................................................1Sampleconfiguration.......................................................................................................................2Setup...........................................................................................................................................2ConfiguringPC1..........................................................................................................................3ConfiguringPC2..........................................................................................................................3ConfiguringSRV1........................................................................................................................4ConfiguringSRV2........................................................................................................................8ConfiguringAlteon.......................................................................................................................8Configuringinterfaces.............................................................................................................9Configuringrealservers........................................................................................................11Creatingarealserversgroup...............................................................................................13ConfiguringvirtualIP.............................................................................................................14EnablingClient/Serverprocessing........................................................................................15EnablingServerLoadBalancingglobally.............................................................................16Testingtheconfiguration...........................................................................................................17AppendixA.Samplesniffertraces................................................................................................24AppendixB.Alteonconfigurationdump........................................................................................27OverviewThisdocumentshowsasampleconfigurationoftheHTTPloadbalancingbetweenmultiplewebserversusingAlteonWebOSswitch.TTA0405161.00May2004Page:1of28TechTipAlteonAlteonHTTPLoadBalancingSampleconfigurationSetup192.168.10.0/24192.168.20.0/24.7PC1–Windows2000workstation,IPaddress192.168.10.7/24;PC2–RedHatLinux7.3workstation,IPaddress192.168.10.75/24;SRV1–ContivitySecureIPServicesGatewayactingasawebserver,managementIP192.168.20.1/24,privateIP192.168.20.10/24;SRV2–ContivitySecureIPServicesGatewayactingasawebserver,managementIP192.168.20.2/24,privateIP192.168.20.20;24;Alteon–AlteonAD3,codeversion10.0.30.7,interface1IP192.168.10.100/24,interface2IP192.168.20.200/24,VirtualIP192.168.10.150,port1–clientport,ports7,8–serverports;HUB–EthernetHUB.Thegoaloftheconfigurationistosetupabasicwebserverloadbalancing,whereAlteonswitchdistributesuserconnectionsbetweenavailablewebserversSRV1andSRV2.Note:Whenimplementingloadbalancingidenticalcontentmustbeavailableatmultipleservers.Note:ContivitySecureIPServicesGatewayswereselectedasHTTPserversanexampleonly,andcouldbesubstitutedwithanyavailablewebserver.PC1GW:192.168.10.100PC2GW:192.168.10.100SRV1GW:192.168.20.200SRV2GW:192.168.20.200AlteonIf1:192.168.10.100/24If2:192.168.20.200/24VIP:192.168.10.150HUB.1718.2.75TTA0405161.00May2004Page:2of28TechTipAlteonAlteonHTTPLoadBalancingConfiguringPC1ConfigureIPaddress(192.168.10.7/24)onPC1withanAlteoninterface1(192.168.10.100)asadefaultgateway:C:\ipconfigWindows2000IPConfigurationEthernetadapterLocalAreaConnection:Connection-specificDNSSuffix.:IPAddress............:192.168.10.7SubnetMask...........:255.255.255.0DefaultGateway.........:192.168.10.100ConfiguringPC2Therootprivilegesarerequiredfortheconfiguration:$suPassword:[root@linuxuser]#ConfigureIPaddressonPC2(192.168.10.75/24):[root@linuxuser]#/sbin/ifconfigeth0192.168.10.75netmask255.255.255.0Enabletheinterface:[root@localhostuser]#/sbin/ifconfigeth0upVerifyIPaddresshasbeensetcorrectlyandinterfaceisup:[root@localhostuser]#/sbin/ifconfigeth0eth0Linkencap:EthernetHWaddr00:0C:29:4D:F9:8Cinetaddr:192.168.10.75Bcast:192.168.10.255Mask:255.255.255.0UPBROADCASTRUNNINGMULTICASTMTU:1500Metric:1RXpackets:209errors:0dropped:0overruns:0frame:0TXpackets:10errors:0dropped:0overruns:0carrier:0collisions:0txqueuelen:100RXbytes:18588(18.1Kb)TXbytes:420(420.0b)Interrupt:10Baseaddress:0x10e0ConfigureadefaultgatewaypointingtoAlteoninterface1(192.168.10.100):[root@localhostuser]#/sbin/routeadd0.0.0.0gw192.168.10.100TTA0405161.00May2004Page:3of28TechTipAlteonAlteonHTTPLoadBalancingVerifytheroutingtable:[root@localhostuser]#netstat-nrKernelIProutingtableDestinationGatewayGenmaskFlagsMSSWindowirttIface0.0.0.0192.168.10.100255.255.255.255UGH4000eth0192.168.10.00.0.0.0255.25