keepalived報錯

 今天在做keepalived實驗時,日誌報如下錯誤,

 

Jun 20 14:25:43 localhost Keepalived_vrrp: receive an invalid ip number count associated with VRID!

Jun 20 14:25:43 localhost Keepalived_vrrp: bogus VRRP packet received on eth0 !!!

Jun 20 14:25:43 localhost Keepalived_vrrp: VRRP_Instance(VI_1) ignoring received advertisment...

Jun 20 14:25:44 localhost Keepalived_vrrp: receive an invalid ip number count associated with VRID!

Jun 20 14:25:44 localhost Keepalived_vrrp: bogus VRRP packet received on eth0 !!!

Jun 20 14:25:44 localhost Keepalived_vrrp: VRRP_Instance(VI_1) ignoring received advertisment...

Jun 20 14:25:45 localhost Keepalived_vrrp: receive an invalid ip number count associated with VRID!

Jun 20 14:25:45 localhost Keepalived_vrrp: bogus VRRP packet received on eth0 !!!

google了半天,都說改變配置文件/etc/keepalived/keepalived.conf 中virtual_route_id的值,但是我改後問題依舊;

忽然發現主從配置中有一點不一樣的地方,

主的爲:

        virtual_ipaddress {

        192.168.8.254/24 dev eth0

        192.168.9.254/24 dev eth0

        192.168.7.254/24 dev eth0

        192.168.6.254/24 dev eth0

        192.168.5.254/24 dev eth0

        192.168.4.254/24 dev eth0

        192.168.2.254/24 dev eth0

        192.168.1.254/24 dev eth0

        192.168.10.254/24 dev eth0

        192.168.100.254/24 dev eth0

        192.168.16.254/24 dev eth0

        192.168.33.254/24 dev eth0

        192.168.38.254/24 dev eth0

        192.168.39.254/24 dev eth0

    }

而從的爲:

        virtual_ipaddress {

        192.168.8.219/24 dev eth0

        192.168.8.254/24 dev eth0

        192.168.9.254/24 dev eth0

        192.168.7.254/24 dev eth0

        192.168.6.254/24 dev eth0

        192.168.5.254/24 dev eth0

        192.168.4.254/24 dev eth0

        192.168.2.254/24 dev eth0

        192.168.1.254/24 dev eth0

        192.168.10.254/24 dev eth0

        192.168.100.254/24 dev eth0

        192.168.16.254/24 dev eth0

        192.168.33.254/24 dev eth0

        192.168.38.254/24 dev eth0

        192.168.39.254/24 dev eth0

    }

從多了一個地址,去掉地址後,一切ok!

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章