Thursday, January 21, 2010

IP SLB

Hi.. Friends





Router#show running-config
Building configuration...

Current configuration : 750 bytes
!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname Router
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
ip cef
ip slb serverfarm FTPSERVERFARM
real 10.1.1.3
inservice
real 10.1.1.4
inservice
!
ip slb vserver FTPSERVER
virtual 172.16.63.241 tcp ftp service ftp
serverfarm FTPSERVERFARM
inservice
!
!
!
!
!
!
multilink bundle-name authenticated
!
!
!
!!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
interface FastEthernet0/0
ip add 10.1.1.1 255.255.255.255.0
! In This LAN real Server Connected.
!
no ip http server
no ip http secure-server
!
!
!
logging alarm informational
!
!
!
!
!
!
control-plane
!
!
!
!
!
!
gatekeeper
shutdown
!
!
line con 0
stopbits 1
line aux 0
line vty 0 4
!
!
end

Here there are two FTP servers both are must be in same VLAN. Both Servers first configured with unique local loopback address that is same as your Virtual IP address: 172.16.63.24. This step is necessary to give each machine in the FTP Server farm the same ip address as the virtual IP address. The FTP server can be responds directly to the client with loopback address, just as the virtual server would be respond of its own ip address. IOS SLB (Server-Load Balancing) redirects packet at real server at Layer 2 at MAC layer. The Real server must be adjusting at Layer-2.

After Creating Server Farm specify their real IPs of FTP servers. And using inservice command activates service.
After Creating successfully FARM now create Virtual FTP server. In that we specify FARM and Virtual IP address and start virtual server.
Two method of Load balancing you specify in virtual server: Round-Robin (Default), Least-Count.

No comments:

Post a Comment