LVS DR 모드 왕 본문 왕춘상 손배 정해청

1530 단어 LVSDR

18 
19 

route  :

ifconfig eth0 192.168.18.254
ifconfig eth0:0 192.168.19.100

 :
echo 1 > /proc/sys/net/ipv4/ip_forward


 :
 , Cluster
rpm -ivh ipvsadm-1.24-10.i386.rpm

ifconfig eth0 192.168.18.2
ifconfig eth0:0 192.168.18.250 netmask 255.255.255.255 broadcast 192.168.18.250 up
route add -host 192.168.18.150 dev eth0:0
/etc/init.d/httpd stop
ipvsadm -A -t 192.168.18.250:80 -s rr
ipvsadm -a -t 192.168.18.250:80 -r 192.168.18.101 -g
ipvsadm -a -t 192.168.18.250:80 -r 192.168.18.102 -g
ipvsadm -ln  


apache :
ifconfig eth0 192.168.18.101
ifconfig lo:0 192.168.18.250 netmask 255.255.255.255 broadcast 192.168.18.250 up
route add -host 192.168.18.250 dev lo:0
rooute add default gw 192.168.18.254
echo 1 > /proc/sys/net/ipv4/conf/all/arp_ignore
echo 2 >/proc/sys/net/ipv4/conf/all/arp_announce
 
/etc/init.d/httpd restart

 apache :
ifconfig eth0 192.168.18.101
ifconfig lo:0 192.168.18.250 netmask 255.255.255.255 broadcast 192.168.18.250 up
route add -host 192.168.18.250 dev lo:0
rooute add default gw 192.168.18.254
echo 1 > /proc/sys/net/ipv4/conf/all/arp_ignore
echo 2 >/proc/sys/net/ipv4/conf/all/arp_announce
 
/etc/init.d/httpd restart


 :elinks http://192.168.19.250 --dump
101
elinks http://192.168.19.250 --dump
102

좋은 웹페이지 즐겨찾기