Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have two nodes running keepalived, and two VIP, e.g.

Node 1      Node 2
VIP1        VIP2

So in each node, I have two definition of vrrp_instance, so I assume the two vrrp_instance in my keepalived.conf suppose to be unique, but they can be the same values on another node, right?

share|improve this question
    
If they're the same instance, they should have the same instance ID. If they're different instances, they should have different instance IDs. An instance that only existed on one node wouldn't be very useful. –  David Schwartz Jan 28 '13 at 14:14

1 Answer 1

up vote 3 down vote accepted

Different VRRP instances should have different virtual_router_id values. Same VRRP instances should have the same value.

You can read the following from man keepalived.conf:

# arbitary unique number 0..255
# used to differentiate multiple instances of vrrpd
# running on the same NIC (and hence same socket).
virtual_router_id 51

To summarize, you need to have the same value on the members of same cluster. If you have another cluster, its members should have another value. The virtual_router_id should be unique per VRRP cluster.

share|improve this answer
    
Hi, in my network I have any set of keepalived nodes which has the dupltcated virtual_router_id, but I have tested the function is ok, execept there are warning log syslog, does it matter? Also, is it recommended to use the same string for both vrrp_instance and virtual_router_id? Thanks –  Ryan Jan 30 '13 at 4:58

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.