Cannot connect two ospf-instances over tun-interface

Michael McConnell michael at winkstreaming.com
Fri Mar 30 01:44:04 CEST 2018


Hello Dawid,

I fought with this one for some time, I did get it working with OpenVPN but threw it out in favor of Tinc in the end…
Here is are the couple gotchas I ran into for OenVPN;

1. Use tap instead of tun
2. Ensure you have an interface (show interfaces)

If you do not have interfaces on the “client side” add;

protocol device {
	scan time 10;
}

The tricky part after getting OSPF online was actually getting anything to route… but that is for later (;

Cheers,
Mike

--
Michael McConnell
WINK Streaming;
email: michael at winkstreaming.com
toll free: 877-GO-4-WINK x 7400
direct: +1 312 281-5434
cell: +506 8706-2389
skype: wink-michael
web: http://winkstreaming.com

> On Mar 29, 2018, at 7:02 AM, dawid k <tookie009smieci at gmail.com> wrote:
> 
> 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 <http://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 <http://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 <mailto: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/5b99b552/attachment.html>


More information about the Bird-users mailing list