Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
1.3k views
in Technique[技术] by (71.8m points)

load balancing - Why keepalived vrrp does not add virtual ip to openvpn tun0?

I am running two instances of keepAlived on local Haproxy node and a remote Haproxy node, the local haproxy node works just fine but for remote it doesn't add virtual ip 10.8.0.2 to the remote node.

vrrp_instance RH_EXT {
   state BACKUP
   interface tun0
   virtual_router_id 12
   priority 99
   advert_int 1
   authentication {
       auth_type PASS
       auth_pass keepAlived123
   }
   virtual_ipaddress {
       10.8.0.2
   }
}

I am also seeing this error:

Dec 31 19:29:36 pi4-phl Keepalived_vrrp[28178]: (RH_EXT) ip address 10.8.0.1/32 dev tun0, no longer exist
Dec 31 19:29:38 pi4-phl Keepalived_vrrp[28178]: (RH_EXT) ip address associated with VRID 12 not present in MASTER advert : 10.8.0.2

maybe that is when when all the local nodes are down it doesn't load balance from the remote node.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...