nginx+keeplived的vip映射问题
20在192.168.2.207上做nginx+keeplived,本机ip是192.168.2.207,做的vip是192.168.2.66,
但是把2.207通过路由映射到外网是可以访问,
而把2.66映射到外网却得到无法访问此网站,应该怎么设置或调配。
配置如下
! Configuration File for keepalived
global_defs {
notification_email {
}
notification_email_from Alexandre.Cassen@firewall.loc
smtp_server 127.0.0.1
smtp_connect_timeout 30
router_id master-001
}
vrrp_instance VI_1 {
state MASTER
interface em1
virtual_router_id 51
priority 101
advert_int 1
authentication {
auth_type PASS
auth_pass 1111
}
virtual_ipaddress {
192.168.2.66/24 dev em1 label em1:0
}
}
- 点赞
- 写回答
- 关注问题
- 收藏
- 复制链接分享
- 邀请回答
1条回答
为你推荐
- nginx+keeplived的vip映射问题
- nginx
- 1个回答