Chinaunix
标题:
FreeBSD 双机热备CARP+负载均衡IPVS安装指导
[打印本页]
作者:
goldtime
时间:
2007-10-15 19:46
标题:
FreeBSD 双机热备CARP+负载均衡IPVS安装指导
摘自:
http://www.5anet.com/index.php?module=article&action=showarticle&id=37269
FreeBSD 双机热备+负载均衡
一、 系统环境
FreeBSD 5.4 Release 最小化安装 + Kernel Source
内核补丁 CARP + IPVS for 5.4 Release
Load Balance Server ipvs1 192.168.1.200 255.255.255.0 (双机热备 主)
Load Balance Server ipvs2 192.168.1.243 255.255.255.0 (双机热备 辅)
Real Server real1 192.168.1.156 255.255.255.0 http 80 telnet 23
Real Server real2 192.168.1.133 255.255.255.0 http 80 telnet 23
Share IP 192.168.1.160 255.255.255.0 (所有机器共享)
二、 逻辑拓扑结构
三、 安装过程
a、 安装 IPVS for 5.4 Release patch
Ipvs1# cd /home/vaio/
Ipvs1# tar –zxvf ipvs_freebsd-0.4.0.tar.gz
Ipvs1# mv ipvs-0.4.0 ipvs
Ipvs1# cd ipvs/patch/5.4-RELEASE
Ipvs1# cp * /usr/src/
Ipvs1# cd /usr/src/
Ipvs1# patch –p0 主)
当 ipvs1网线连通后 192.168.1.160 再次切换到 ipvs1 上
以上操作时 应不影响 对 192.168.1.160的 http 和 telnet 访问
六、 参考文档
ipvs_freebsd-0.4.0.tar.gz 内 Readme
man carp
本文来自ChinaUnix博客,如果查看原文请点:
http://blog.chinaunix.net/u/25605/showart_401151.html
欢迎光临 Chinaunix (http://bbs.chinaunix.net/)
Powered by Discuz! X3.2