Hi Folks I want setup LVS but all documentation is very complex. I read everything in LVS-mini-HOWTO. Please dont send me back to read these articles.
But please Help me. I am trying create a LVS Tunnel. So I have: DSL Line 1 modem (D-link) 1 router (Tp-link) 1 Director (Fedora 8) 3 real servers (Fedora 8) in my router I create a port fowarding to 192.168.1.11:8080 (and this is my Director 192.168.1.11) Inside my router I link IP with MAC Address . I think It is Arp. I have /etc/sysconfig/network-scripts/ifcfg-eth0 like # Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ DEVICE=eth0 BOOTPROTO=dhcp HWADDR=00:MA:CA:DR:ES:72 ONBOOT=yes TYPE=Ethernet BROADCAST=192.168.1.255 NETWORK=192.168.1.0 GATEWAY=192.168.1.1 IPADDR=192.168.1.11 NETMASK=255.255.255.0 For each Realserver I have the same /etc/sysconfig/network-scripts/ifcfg-eth0 with: IPADDR=192.168.1.2 IPADDR=192.168.1.3 IPADDR=192.168.1.4 My ISP provide me dynamic IP so If my Director or connection down I'll have a new IP so my router do this job uptadating my IP in DynDNS. So Lets start my questions: 1) I didnt uderstand Where I need insert (Which file) ipvsadm -A -t 192.168.1.11:8080 -s wlc ipvsadm -a -t 192.168.1.11:8080 -r 192.168.1.3:80 -i -w 1 ipvsadm -a -t 192.168.1.11:8080 -r 192.168.1.4:80 -i -w 2 So when I restart my fedora8 appear a error missing file ipvsadm in /etc/sysconfig/ipvsadm So how I dont know what is it I create it /etc/sysconfig/ipvsadm and insert (Director) ipvsadm -A -t 192.168.1.11:8080 -s wlc ipvsadm -a -t 192.168.1.11:8080 -r 192.168.1.3:80 -i -w 1 ipvsadm -a -t 192.168.1.11:8080 -r 192.168.1.4:80 -i -w 2 (Here I tried use my IP of my ISP - External IP) like ipvsadm -A -t 201.78.133.137:8080 -s wlc ..... And stop error in director but realserver have same error. So I read to Director: Bring up 172.17.60.201 on eth0:0. ==> Again, this is best done as part of the networking configuration of your system. But it can also be done manually. So I create the file /etc/sysconfig/network-scripts/ifcfg-eth0:0 DEVICE=eth0:0 IPADDR=172.17.60.201 ??? (Here I tried use my IP of my ISP - External IP) netmask=255.255.0.0 broadcast=172.17.255.255 and to realservers I read Bring up 172.17.60.201 on tunl0. ==> Again, this is best done as part of the networking configuration of your system. But it can also be done manually. So I create the file /etc/sysconfig/network-scripts/ifcfg-tunl0:0 DEVICE=tunl0 IPADDR=172.17.60.201 ??? (Here I tried use my IP of my ISP - External IP) netmask=255.255.0.0 2) I didnt understand if I should use 192.168.1.11(director) or my the IP of my ISP? And just to say I hate this frase: " Any setup procedure (including the configure script) will assume that you have already setup all IPs and network connections, apart from the VIP,DIP: i.e. setup RIP1..n, the primary IPs on the director NIC(s) and the DIRECTOR_GW/SERVER_GW and that the link layer joining these IPs is functioning. The configure script will setup the VIP, DIP (0.9.x will set them up on aliases, hopefully later versions will set them up on secondary IPs)." My fault I know but that is my problem. How Setup VIP, DIP, RIP1..n, DIRECTOR_GW/SERVER_GW ....? or How can I understand this? PLease send me link but not from http://www.linuxvirtualserver.org I think that I already memorized all content. :) Regards mario _______________________________________________ LinuxVirtualServer.org mailing list - [email protected] Send requests to [EMAIL PROTECTED] or go to http://lists.graemef.net/mailman/listinfo/lvs-users
