Version 1/2
-
Next ยป -
Current version
Gui Iribarren, 10/18/2013 04:03 pm
Anygw¶
One solution is to share the same IPv4/IPv6 and also MAC address, to avoid ARP timeouts
ip link add link br-lan anygw address aa:aa:aa:40:28:b5 type macvlan
ip address add dev anygw fddf:ca40:28b5::1/64
ip address add dev anygw 192.168.11.1/24
ip link set anygw up
ebtables -A FORWARD -d aa:aa:aa:40:28:b5 -j DROP
ebtables -t nat -A POSTROUTING -s aa:aa:aa:40:28:b5 -o bat0 -j DROP
Another possibility is not to share the same MAC address, instead relying on ARP timeouts, and the fact that batman will forward packets. The downside is suboptimal routing when roaming.
Third possibility is having batman correctly support anycast MACs; say "batctl anycast_prefix aa:aa:aa:00:00:00/24" that will make batman allow those MACs to be claimed by many nodes (preventing roaming of those MACs).