- 论坛徽章:
- 0
|
本帖最后由 uplogin 于 2013-12-12 17:41 编辑
Dec 13 01:32:10 localhost Keepalived_vrrp[10650]: Opening file '/etc/keepalived/keepalived.conf'.
Dec 13 01:32:10 localhost Keepalived_healthcheckers[10649]: Configuration is using : 7163 Bytes
Dec 13 01:32:10 localhost Keepalived_vrrp[10650]: Configuration is using : 62872 Bytes
Dec 13 01:32:10 localhost Keepalived_vrrp[10650]: Using LinkWatch kernel netlink reflector...
Dec 13 01:32:10 localhost Keepalived_vrrp[10650]: VRRP_Instance(VI_1) Entering BACKUP STATE
Dec 13 01:32:10 localhost Keepalived_vrrp[10650]: VRRP sockpool: [ifindex(2), proto(112), unicast(0),
fd(11,12)]
Dec 13 01:32:10 localhost Keepalived_healthcheckers[10649]: Using LinkWatch kernel netlink reflector.
..
Dec 13 01:32:14 localhost Keepalived_vrrp[10650]: VRRP_Instance(VI_1) Transition to MASTER STATE
Dec 13 01:32:15 localhost Keepalived_vrrp[10650]: VRRP_Instance(VI_1) Entering MASTER STATE
Dec 13 01:32:15 localhost Keepalived_vrrp[10650]: VRRP_Instance(VI_1) setting protocol VIPs.
Dec 13 01:32:15 localhost Keepalived_vrrp[10650]: VRRP_Instance(VI_1) Sending gratuitous ARPs on eth0
for 202.75.223.211
以上是日志信息
下面是配置信息:
主机:
vrrp_instance VI_1 {
state MASTER
interface eth0
virtual_router_id 51
priority 150
advert_int 1
authentication {
auth_type PASS
auth_pass 1111
}
virtual_ipaddress {
ip
}
}
从机配置:
vrrp_instance VI_1 {
state BACKUP
interface eth0
virtual_router_id 51
priority 100
nopreempt
advert_int 1
authentication {
auth_type PASS
auth_pass 1111
}
virtual_ipaddress {
ip
}
}
我是要实现主机正常时主机拥有虚拟ip 不正常是从机接手 主机正常后主机再接手
但是我两边都启动keepalived后 ip addr show 两边都看到绑定的虚拟ip
求解
先谢谢了 |
|