Pages: 23/46 First page Previous page 18 19 20 21 22 23 24 25 26 27 Next page Final page [ View by Articles | List ]

在页面里放上了google的广告

[不指定 2008/09/16 15:49 | by askwan ]
       我在自己网站页面里放上了Google的广告,还真不知道要到啥时候能把我注册askwan.com的域名费用换回来,哈。大伙要是不喜欢的话,在这跟贴,我撤下来!
Tags: ,

LVS + piranha 之NAT配置

[不指定 2008/09/14 11:02 | by askwan ]
OS  :    centos4.6
VIP :       192.168.18.240
LoadBalance:  eth0: 192.168.18.241
             eth1: 10.10.10.241            
BackUp:      eth0:   192.168.18.242
             eth1:   10.10.10.242

Real Server1:  10.10.10.243
RealServer2:    10.10.10.244
Gateway    :   10.10.10.241(10.10.10.242)

1.  安装piranha和ipvsadm
2.  设置piranha密码
piranha-passwd
3.  启动piranha-gui
service piranha-gui start
4.  配置LVS
http://192.168.18.241:3636

具体配置过程不详述
附上配置文件
vim /etc/sysconfig/ha/lvs.cf

serial_no = 14
primary = 192.168.18.241
service = lvs
backup_active = 1
backup = 192.168.18.242
heartbeat = 1
heartbeat_port = 539
keepalive = 6
deadtime = 18
network = nat
nat_router = 10.10.10.241 eth1
nat_nmask = 255.255.255.0
debug_level = NONE
monitor_links = 0
virtual webserv {
     active = 1
     address = 192.168.18.240 eth0:1
     vip_nmask = 255.255.255.0
     port = 80
     send = "GET / HTTP/1.0\r\n\r\n"
     expect = "HTTP"
     use_regex = 0
     load_monitor = none
     scheduler = wlc
     protocol = tcp
     timeout = 6
     reentry = 15
     quiesce_server = 0
     server node1 {
         address = 10.10.10.243
         active = 1
         weight = 50
     }
     server node2 {
         address = 10.10.10.244
         active = 1
         weight = 50
     }
}
5.  将配置文件copy至Backup相应目录下
6.  分别在LB和BackUp上启用数据转发
# vi /etc/sysctl.conf
net.ipv4.ip_forward = 1
#sysctl  -p

7.  启动RealServer上httpd服务
8.  启动LB和Backup上pulse
Quotation
#service pulse start

9.  测试
Tags: , ,

LVS  + piranha 之Tunnel配置

[不指定 2008/09/14 07:49 | by askwan ]
OS  :    centos4.6
VIP :       192.168.18.200
LoadBalance:  192.168.18.241
BackUp:      192.168.18.242
Real Server1:  192.168.18.243
RealServer2:    192.168.18.244

1.  安装piranha和ipvsadm
2.  设置piranha密码
piranha-passwd
3.  启动piranha-gui
service piranha-gui start
4.  配置LVS
http://192.168.18.241:3636

具体配置过程不详述
附上配置文件
vim /etc/sysconfig/ha/lvs.cf
serial_no = 14
primary = 192.168.18.241
service = lvs
backup_active = 1
backup = 192.168.18.242
heartbeat = 1
heartbeat_port = 539
keepalive = 6
deadtime = 18
network = tunnel
debug_level = NONE
monitor_links = 0
virtual webserv {
     active = 1
     address = 192.168.18.240 eth0:1
     vip_nmask = 255.255.255.0
     port = 80
     send = "GET / HTTP/1.0\r\n\r\n"
     expect = "HTTP"
     use_regex = 0
     load_monitor = none
     scheduler = wrr
     protocol = tcp
     timeout = 6
     reentry = 15
     quiesce_server = 0
     server node1 {
         address = 192.168.18.243
         active = 1
         weight = 50
     }
     server node2 {
         address = 192.168.18.244
         active = 1
         weight = 50
     }
}


5.  将配置文件copy至Backup相应目录下
6.  分别在LB和BackUp上启用数据转发
# vi /etc/sysctl.conf
net.ipv4.ip_forward = 0
修改为
net.ipv4.ip_forward = 1
#sysctl  -p

7.  配置RealServer

创建IP Tunnel
Quotation
# ifconfig tunl0 192.168.18.240 netmask 255.255.255.255 broadcast 192.168.18.240 up

将tunl0加入路由表(routing table)
Quotation
# route add -host 192.168.18.240 dev tunl0

Quotation

#echo 1 > /proc/sys/net/ipv4/conf/all/arp_ignore
#echo 2 > /proc/sys/net/ipv4/conf/all/arp_announce
#echo 1 > /proc/sys/net/ipv4/conf/tunl0/arp_ignore
#echo 2 > /proc/sys/net/ipv4/conf/tunl0/arp_announce


8.  启动RealServer上httpd服务
9.  启动LB和Backup上pulse
Quotation
#service pulse start

10.  测试
Tags: , ,

LVS + piranha  之DR配置

[不指定 2008/09/14 07:45 | by askwan ]
OS  :  centos4.6
VIP :       192.168.18.200
LoadBalance:  192.168.18.241
BackUp:      192.168.18.242
Real Server1:  192.168.18.243
RealServer2:  192.168.18.244
Gateway    :   192.168.18.1

1.  安装piranha和ipvsadm
2.  设置piranha密码
piranha-passwd
3.  启动piranha-gui
service piranha-gui start
4.  配置LVS
http://192.168.18.241:3636

具体配置过程不详述
附上配置文件
vim /etc/sysconfig/ha/lvs.cf

serial_no = 16
primary = 192.168.18.241
service = lvs
backup_active = 1
backup = 192.168.18.242
heartbeat = 1
heartbeat_port = 539
keepalive = 6
deadtime = 18
network = direct
debug_level = NONE
monitor_links = 0
virtual webserv {
     active = 1
     address = 192.168.18.240 eth0:1
     vip_nmask = 255.255.255.0
     port = 80
     send = "GET / HTTP/1.0\r\n\r\n"
     expect = "HTTP"
     use_regex = 0
     load_monitor = none
     scheduler = wrr
     protocol = tcp
     timeout = 6
     reentry = 15
     quiesce_server = 0
     server node1 {
         address = 192.168.18.243
         active = 1
         weight = 50
     }
     server node2 {
         address = 192.168.18.244
         active = 1
         weight = 50
     }
}

5.  将配置文件copy至Backup相应目录下
6.  分别在LB和BackUp上启用数据转发
# vi /etc/sysctl.conf
net.ipv4.ip_forward = 1
#sysctl  -p

7.  配置RealServer

Quotation
#ifconfig lo:0 192.168.18.240 broadcast 192.168.18.240 netmask 255.255.255.255 up
#route add -host 192.168.18.240 dev lo:0


关闭ARP广播响应
Quotation
#echo 1 > /proc/sys/net/ipv4/conf/all/arp_ignore
#echo 2 > /proc/sys/net/ipv4/conf/all/arp_announce
#echo 1 > /proc/sys/net/ipv4/conf/tunl0/arp_ignore
#echo 2 > /proc/sys/net/ipv4/conf/tunl0/arp_announce



8.  启动RealServer上httpd服务
9.  启动LB和Backup上pulse
Quotation
#service pulse start

10.  测试
Tags: , ,
Pages: 23/46 First page Previous page 18 19 20 21 22 23 24 25 26 27 Next page Final page [ View by Articles | List ]