Re: multiple instances, same vrid
Quentin Armitage <[email protected]>
| Newsgroups | gmane.linux.keepalived.devel |
|---|---|
| Organization | The Armitage family |
| Message-ID | <[email protected]> |
On Tue, 2016-02-16 at 04:14 +0000, Rafael Vanoni wrote:
> Hi all,
>
> I wanted to check whether it's okay to use the same virtual router id on different instances (each with their own interface and vips). Overall this seems to work but the behavior isn't consistent and I sometimes see log messages like this
>
> VRRP_Instance(vrrp5.14) ignoring received advertisment...
> ip address associated with VRID not present in received packet : 13.13.13.1
> one or more VIP associated with VRID mismatch actual MASTER advert
>
> Here's an example of what I'm referring to
>
> vrrp_instance vrrp5.2 {
> state BACKUP
> version 3
> interface eth0.2
> virtual_router_id 5
> priority 100
> advert_int 0.100000
> use_vmac eth1.2
> accept
> virtual_ipaddress {
> 2.2.2.1/16
> }
> }
>
> vrrp_instance vrrp5.3 {
> state BACKUP
> version 3
> interface eth0.3
> virtual_router_id 5
> priority 100
> advert_int 0.100000
> use_vmac eth1.3
> accept
> virtual_ipaddress {
> 3.3.3.1/16
> }
> }
>
It depends on what eth0.2, eth0.3 etc are. If they are vlans, then they
are presumably different subnets, and it should be OK to use the same
VRID on different subnets. There could be an issue though if you have a
physical eth1 interface.
Assuming that eth0.2, eth0.3 etc are vlans, I run a very similar
configuration and have never seen this problem.
I'm guessing from your configuration sample that you have multiple
vrrp_instances, and that vrrp_5.14 has VIP 14.14.14.1/16 and vrrp_5.13
has VIP 13.13.13.1/16. So it looks as though traffic from eth0.13 is
leaking onto eth0.14. Could you have an isolation problem between your
vlans?
Something I found a few months ago was that specifying subnet masks for
the virtual_ipaddresses caused problems, so I suggest that you remove
the /16s (assuming that eth0.2 is network 2.2.0.0/16 etc).
Quentin
------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
_______________________________________________
Keepalived-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/keepalived-devel