Re: vmac support

Sander Klein <[email protected]>
Newsgroups gmane.linux.keepalived.devel
Message-ID <[email protected]>
On 25.02.2014 22:43, Lennart Sorensen wrote:
> On Tue, Feb 25, 2014 at 09:15:37PM +0100, Sander Klein wrote:
>> Is there or can anyone provide me with a manual how to use the vmac
>> feature?
>> 
>> I've been trying to get it working and I somehow can't get it working.
>> It looks like the mac address of the vrrp interface gets spilled on 
>> the
>> network from both vrrp hosts at the same time.
>> 
>> I've used NOTE_vrrp_vmax.txt to create my setup but I've got a feeling
>> it's missing something.
> 
> Which version are you using?

I'm using keepalived 1.2.12 on kernel 3.2.54 with Debian Wheezy.

The sysctl settings are:

net.ipv4.conf.all.arp_filter = 0
net.ipv4.conf.default.arp_filter = 0
net.ipv4.conf.all.arp_ignore = 1
net.ipv4.conf.default.arp_ignore = 1
net.ipv4.conf.all.arp_announce = 2
net.ipv4.conf.default.arp_announce = 2

And I've got a script which sets some settting on the vrrp interface 
when going to master like:

sysctl -w net.ipv4.conf.vrrp/18.arp_filter=0
sysctl -w net.ipv4.conf.vrrp/18.accept_local=1

The keepalived config I use is quite simple:

vrrp_instance VI_1 {
	state MASTER
	interface eth0
	virtual_router_id 18
	priority 100
	advert_int 1
	use_vmac
	vmac_xmit_base
	authentication {
		auth_type PASS
		auth_pass somepass
	}
	virtual_ipaddress {
		x.x.x.x
	}
	track_interface {
		eth0
	}
	track_script {
		chk_somecheck
	}
	notify_master "/etc/keepalived/vmac.sh"
}

Everything starts up fine. I see the vrrp interface created on both the 
loadbalancers. But it seems like connections go to both loadbalancers 
sometimes.

If I ping the VIP and the second loadbalancer comes online then I 
receive a couple of (DUP!)'s from the ping utility.

Greets,

Sander

------------------------------------------------------------------------------
Flow-based real-time traffic analytics software. Cisco certified tool.
Monitor traffic, SLAs, QoS, Medianet, WAAS etc. with NetFlow Analyzer
Customize your own dashboards, set traffic alerts and generate reports.
Network behavioral analysis & security monitoring. All-in-one tool.
http://pubads.g.doubleclick.net/gampad/clk?id=126839071&iu=/4140/ostg.clktrk
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.