0
回答
redhat7.2中,keepalived绑定虚拟IP失败
终于搞明白,存储TCO原来是这样算的>>>   

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 !



网络信息:ip a

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:be:94:02:05:ec brd ff:ff:ff:ff:ff:ff
3: enP7p128s0f1: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN qlen 1000
    link/ether 98:be:94:02:05:ed brd ff:ff:ff:ff:ff:ff
4: enP7p128s0f2: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN qlen 1000
    link/ether 98:be:94:02:05:ee brd ff:ff:ff:ff:ff:ff
5: enP7p128s0f3: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN qlen 1000
    link/ether 98:be:94:02:05:ef brd ff:ff:ff:ff:ff:ff
10: bond0: <BROADCAST,MULTICAST,MASTER,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP 
    link/ether e4:1d:2d:21:c5:c0 brd ff:ff:ff:ff:ff:ff
    inet 192.168.79.140/25 brd 10.4.56.255 scope global bond0
       valid_lft forever preferred_lft forever
    inet6 fe80::e61d:2dff:fe21:c5c0/64 scope link 
       valid_lft forever preferred_lft forever
11: enp1s0: <BROADCAST,MULTICAST,SLAVE,UP,LOWER_UP> mtu 1500 qdisc mq master bond0 state UP qlen 1000
    link/ether e4:1d:2d:21:c5:c0 brd ff:ff:ff:ff:ff:ff
12: enp1s0d1: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN qlen 1000
    link/ether e4:1d:2d:21:c5:c1 brd ff:ff:ff:ff:ff:ff
13: enP4p1s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP qlen 1000
    link/ether e4:1d:2d:21:ca:90 brd ff:ff:ff:ff:ff:ff
14: enP4p1s0d1: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN qlen 1000
    link/ether e4:1d:2d:21:ca:91 brd ff:ff:ff:ff:ff:ff



通过命令网卡名称是bond0,找不到原因呢

举报
liuruoxingchen
发帖于2年前 0回/1K+阅
顶部