基于lvs(DR模式)的keepalived部署
2018-01-16 07:14
771 查看
服务器列表:
路由器配置:
a. 内网配置:
b. 外网配置:
c. 开启路由转发:
d. 防火墙设置路由转发规则(可选):
lvs1服务器配置:
a. 内网ip:
b. 外网ip:
c. keepalived配置文件:
d. 配置文件源代码:
lvs2服务器配置(参照lvs1)
web服务器配置:
a. 内网ip:
b. 外网ip:
c. 避免地址冲突:
浏览器访问(192.168.8.252):
角色 内网ip 外网ip 路由器 192.168.8.82 192.168.8.253 lvs1服务器 192.168.8.81 192.168.8.252 lvs2服务器 192.168.8.83 192.168.8.252 web服务器 192.168.8.84 192.168.8.252
路由器配置:
a. 内网配置:
b. 外网配置:
c. 开启路由转发:
d. 防火墙设置路由转发规则(可选):
lvs1服务器配置:
a. 内网ip:
b. 外网ip:
c. keepalived配置文件:
d. 配置文件源代码:
! Configuration File for keepalived` global_defs { notification_email { complet@163.com } notification_email_from root@localhost.com smtp_server 127.0.0.1 smtp_connect_timeout 30 router_id lvs_1 } vrrp_instance LVS_HA { state MASTER interface eth0 virtual_router_id 51 priority 100 advert_int 1 authentication { auth_type PASS auth_pass 1111 } virtual_ipaddress { 192.168.8.252/32 } } virtual_server 192.168.8.252 80 { delay_loop 6 lb_algo rr lb_kind DR nat_mask 255.255.255.255 persistence_timeout 50 protocol TCP real_server 192.168.8.84 80 { weight 1 TCP_CHECK { connect_timeout 20 connect_port 80 nb_get_retry 3 } }
lvs2服务器配置(参照lvs1)
web服务器配置:
a. 内网ip:
b. 外网ip:
c. 避免地址冲突:
浏览器访问(192.168.8.252):
相关文章推荐
- Ubuntu10.04.4 Server下基于LVS DR模式+Keepalived的负载均衡高可用
- 基于LVS-DR群集模式+keepalived实现高可用
- 实现keepalived企业级高可用基于LVS-DR模式
- 分别实现基于LVS-DR模式和LVS-NAT模式的keepalived的主从架构
- RHEL 5.4下部署LVS(DR)+keepalived实现高性能高可用负载均衡
- DR模式搭建和Keepalived+LVS DR
- LVS之六:使用keepalived实现LVS的DR模式热备
- Linux下Keepalived+LVS-DR模式配置高可用负载均衡集群
- RHEL 5.4下部署LVS(DR)+keepalived实现高性能高可用负载均衡
- 部署LVS(DR)+keepalived实现高性能高可用负载均衡
- RHEL 5.4下部署LVS(DR)+keepalived实现高性能高可用负载均衡
- Lvs+keepalived 实现负载均衡、故障剔除(DR模式)
- centos6.2,64位系统搭建LVS+Keepalived(DR模式)
- lvs DR模式 +keepalived 实现directory 高可用、httpd服务负载均衡集群
- centos6.4下keepalived+nginx的高可用(LVS/DR模式)
- 一个公网地址部署LVS/DR模式
- LVS+keepalived DR模式配置高可用负载均衡集群
- Linux平台基于DR模式的LVS搭建
- VM虚拟机上 实现CentOS 6.X下部署LVS(DR)+keepalived实现高性能高可用负载均衡(转)
- 18.11 LVS DR模式搭建 18.12 keepalived + LVS