Note on using VRRP with Virtual MAC address
barak adam <[email protected]> Thu, 12 Jan 2017 15:17:03 +0200
| Newsgroups | gmane.linux.keepalived.devel |
|---|---|
| Message-ID | <CAAme7o=AVH-9XJ-zjs2BSKdb8d_UDXnkh9+jyX9-RrY=95EP6g@mail.gmail.com> |
Hi,
https://github.com/acassen/keepalived/blob/master/doc/NOTE_vrrp_vmac.txt
Following this note instructions, I still don't have master router send its
Virtual MAC on ARP replies. (Virtual MAC is now sent only while
broadcasting a gratuitous ARP).
I did the following:
==============
1) set "use_vmac" in the conf file
2) build the linux kernel with the macvlan driver
3) trying to use or not use "vmac_xmit_base"
4) make sure linux patch is adapted
http://git.kernel.org/?p=linux/kernel/git/torvalds/linux.git;a=commitdiff;h=729e72a10930ef765c11a5a35031ba47f18221c4
5) tweak the interfaces as follows:
# *cd /proc/sys/net/ipv4/conf/all* # for f in ./arp_*; do echo -n "$f ";
cat $f; done ./arp_accept 0 ./arp_announce 1 ./arp_filter 0 ./arp_ignore 1
./arp_notify 0
# pwd
*/proc/sys/net/ipv4/conf/vif10*
# for f in ./*rp_*; do echo -n "$f "; cat $f; done
./arp_accept 0
./arp_announce 0
./arp_filter 1
./arp_ignore 1
./arp_notify 0
./proxy_arp_pvlan 0
./rp_filter 0
# cd ../vrrp.1/
#pwd
*/proc/sys/net/ipv4/conf/vrrp.1* # for f in ./arp_*; do echo -n "$f "; cat
$f; done ./arp_accept 0 ./arp_announce 0 ./arp_filter 0 ./arp_ignore 1
./arp_notify 0
conf file:
======
vrrp_instance VI_1 {
state MASTER
interface vif10
virtual_router_id 1
priority 200
use_vmac
vmac_xmit_base
authentication {
auth_type PASS
auth_pass password
}
virtual_ipaddress {
10.1.1.5/24 brd 10.1.1.255 dev vif10
}
#track_script {
#chk_Kim_script
#}
}
Any help will be appreciated.
Thanks
Barak
------------------------------------------------------------------------------
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today. http://sdm.link/xeonphi
_______________________________________________
Keepalived-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/keepalived-devel