Cannot connect two ospf-instances over tun-interface

dawid k tookie009smieci at gmail.com
Thu Mar 29 15:02:52 CEST 2018


Here my configuration (client):

ifconfig tun0:
tun0      Link encap:UNSPEC  HWaddr
00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
          inet addr:10.29.0.10  P-t-P:10.29.0.9  Mask:255.255.255.255

bird_ospf.conf (included in bird.conf) :

protocol ospf myOSPF {
        area 0.0.0.0 {
                interface "tun0" {
                        cost 10;
                        type ptp;
                        stub no; hello 10; transmit delay 5; wait 10; dead
40;
                        neighbors {
                                10.29.0.1;
                        }; }; };

tcpdump -v -XX  proto ospf -i tun0 (confirmation, that hello messages are
sent and received) :


12:59:03.143238 IP (tos 0xc0, ttl 1, id 15765, offset 0, flags [none],
proto OSPF (89), length 64)
 10.29.0.01 > 224.0.0.5: OSPFv2, Hello, length 44
...
12:59:09.157965 IP (tos 0xc0, ttl 1, id 59599, offset 0, flags [none],
proto OSPF (89), length 64)
    10.29.0.10 > 224.0.0.5: OSPFv2, Hello, length 44


The server is using similar configuration. It differs only by IP(10.29.0.1)
and router-ID.



2018-03-29 13:37 GMT+02:00 dawid k <tookie009smieci at gmail.com>:

> I'm trying to set up pretty simply configuration consisting of two linux
> machines connected over tun-interface created by OpenVPN.
>
> The VPN-connection is working fine - I can send data over this interface.
> Now I installed bird and configured ospf on both devices. I can see that
> both bird instances are sending hello packets on tun-interface however no
> one of them is getting the message.
>
> I can see with tcpdump, that every device is getting the hello-message.
> However they are not forwarded to bird or bird just ignores them.
>
> I tried my setup over cabel with eth0-interface and everything is working
> fine. Right now every machine is advertising just one example static
> network. I will focus on correct advertising later after I connect those
> two instances.
>
> The tun0 interface is working in type ptp and the netmask is
> 255.255.255.255. Do you have any idea what's wrong?
>
> Thanks for every input, tookie009
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://trubka.network.cz/pipermail/bird-users/attachments/20180329/11ffc277/attachment.html>


More information about the Bird-users mailing list