OSPF type broadcast over GRE for NRHP

Ondrej Zajicek santiago at crfreenet.org
Tue Mar 3 12:55:04 CET 2015


On Tue, Mar 03, 2015 at 12:34:18PM +0100, Ondrej Zajicek wrote:
> On Mon, Mar 02, 2015 at 03:49:48PM -0500, Clint Armstrong wrote:
> > I am trying to use BIRD to run OSPF inside a Phase 3 DMVPN using OpenNHRP.
> > The problem I'm seeing is that it appears to be impossible to force type
> > broadcast on a GRE interface. When I try, the message "Cannot use interface
> > gre1 as broadcast, forcing nbma" is logged.
> > 
> > This may normally make sense, but the OpenNHRP daemon captures multicast
> > traffic on it's interface and forwards it appropriately.
> > 
> > A configuration parameter to bypass this protection and allow broadcast on
> > a GRE interface would be very helpful.
> 
> Hi
> 
> Kernel reports whether the interface supports multicast and BIRD checks
> it to see whether it can use modes using multicast on that iface
> (OSPF 'broadcast' mode in reality uses multicast).
> 
> You could disable the check by commenting out these lines in proto/ospf/iface.c:
> 
>   if ((ifa->type == OSPF_IT_BCAST) && !(iface->flags & if_multi_flag))
>     ifa->type = OSPF_IT_NBMA;
> 
> 
> But perhaps the simpler way is to fix the value reported by kernel:
> 
>   ip link set greXXX multicast on
> 
> 
> After that, BIRD accepts the interface as multicast and OSPF broadcast mode
> can be used.

Well, my previous e-mail is wrong. It describes how it perhaps should work,
but as i just check, (on Linux) BIRD ignores multicast flag, instead uses
IFF_LOOPBACK / IFF_POINTOPOINT / IFF_BROADCAST to determine capabilities
of the interface. Which means that PtP GRE interfaces works by default
(as missing multicast flag does nothing) but setting multicast flag
is ignored.

Could you report what 'ip a l' reports for your DMVPN GRE devices?

-- 
Elen sila lumenn' omentielvo

Ondrej 'Santiago' Zajicek (email: santiago at crfreenet.org)
OpenPGP encrypted e-mails preferred (KeyID 0x11DEADC3, wwwkeys.pgp.net)
"To err is human -- to blame it on a computer is even more so."
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <http://trubka.network.cz/pipermail/bird-users/attachments/20150303/168a9f6b/attachment.asc>


More information about the Bird-users mailing list