redhat7.2中,keepalived绑定虚拟IP失败
redhat7.2中,keepalived绑定虚拟IP失败,大家帮忙看看呢
配制信息:
global_defs { notification_email { acassen@firewall.loc failover@firewall.loc sysadmin@firewall.loc } notification_email_from Alexandre.Cassen@firewall.loc smtp_server 192.168.200.1 smtp_connect_timeout 30 router_id LVS_DEVEL } vrrp_instance VI_1 { state MASTER interface bond0 virtual_router_id 51 priority 100 advert_int 1 authentication { auth_type PASS auth_pass 1111 } virtual_ipaddress { 192.168.79.100 } }
错误日志:
Nov 4 20:07:03 YSBUS1 Keepalived_vrrp[6642]: Registering Kernel netlink command channel Nov 4 20:07:03 YSBUS1 Keepalived_vrrp[6642]: Registering gratuitous ARP shared channel Nov 4 20:07:03 YSBUS1 Keepalived_healthcheckers[6641]: Opening file '/usr/local/etc/keepalived/keepalived.conf'. Nov 4 20:07:03 YSBUS1 Keepalived_vrrp[6642]: Opening file '/usr/local/etc/keepalived/keepalived.conf'. Nov 4 20:07:03 YSBUS1 Keepalived_vrrp[6642]: Cant find interface bond0 for vrrp_instance VI_1 !!! Nov 4 20:07:03 YSBUS1 Keepalived_healthcheckers[6641]: Configuration is using : 11584 Bytes Nov 4 20:07:03 YSBUS1 Keepalived_vrrp[6642]: Configuration error: VRRP definition must belong to an interface Nov 4 20:07:03 YSBUS1 Keepalived_vrrp[6642]: Default interface eth0 does not exist and no interface specified. Skip VRRP address. Nov 4 20:07:03 YSBUS1 Keepalived_vrrp[6642]: VRRP_Instance(VI_1) Unknown interface !
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host lo valid_lft forever preferred_lft forever inet6 ::1/128 scope host valid_lft forever preferred_lft forever 2: enP7p128s0f0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN qlen 1000 link/ether 98
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
兄弟解决了吗,解决的话,给个解决办法呗,同样的问题。
默认的eth0网卡不存在,我也好纳闷没事改网卡名干啥
解决了吗?相同问题