我是实现下面的LVS DR 模式
从LVS主机进来,真实服务器处理,转到另外一台机器这出去,我应该怎么配置
! Configuration File for keepalived
global_defs {notification_email {admin@domain.com}notification_email_from lvs@domain.comsmtp_server 192.168.200.1smtp_connect_timeout 30router_id LVS_DEVEL}
vrrp_instance VI_1 {state MASTERinterface eth1virtual_router_id 51priority 100advert_int 1authentication {auth_type PASSauth_pass 1111}virtual_ipaddress {10.10.100.100
delay_loop 6lb_algo rrlb_kind DRpersistence_timeout 50protocol TCP
real_server 10.10.100.53 80 {weight 10TCP_CHECK {connect_port 80connect_timeout 3nb_get_retry 3delay_before_retry 3}}real_server 10.10.100.54 80 {weight 10TCP_CHECK {connect_port 80connect_timeout 3nb_get_retry 3delay_before_retry 3}}
}两台服务器的网关指向10.10.100.110
都没啊
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
暂无简介
文章 0 评论 0
接受
发布评论
评论(2)
! Configuration File for keepalived
global_defs {
notification_email {
admin@domain.com
}
notification_email_from lvs@domain.com
smtp_server 192.168.200.1
smtp_connect_timeout 30
router_id LVS_DEVEL
}
vrrp_instance VI_1 {
state MASTER
interface eth1
virtual_router_id 51
priority 100
advert_int 1
authentication {
auth_type PASS
auth_pass 1111
}
virtual_ipaddress {
10.10.100.100
delay_loop 6
lb_algo rr
lb_kind DR
persistence_timeout 50
protocol TCP
real_server 10.10.100.53 80 {
weight 10
TCP_CHECK {
connect_port 80
connect_timeout 3
nb_get_retry 3
delay_before_retry 3
}
}
real_server 10.10.100.54 80 {
weight 10
TCP_CHECK {
connect_port 80
connect_timeout 3
nb_get_retry 3
delay_before_retry 3
}
}
}
两台服务器的网关指向10.10.100.110
都没啊