Cannot connect two ospf-instances over tun-interface
Michael McConnell
michael at winkstreaming.com
Tue Apr 3 16:05:41 CEST 2018
OpenVPN won’t do multicast over TUN, only TAP.
--
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 Apr 3, 2018, at 1:23 AM, dawid k <tookie009smieci at gmail.com> wrote:
>
> ip addr list:
> server:
>
> eth0, lo and
> 5: tun0: <POINTOPOINT,MULTICAST,NOARP,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UNKNOWN qlen 100
> link/[65534]
> inet 10.29.0.1 peer 10.29.0.2/32 <http://10.29.0.2/32> scope global tun0
>
> client:
>
> 977: tun0: <POINTOPOINT,MULTICAST,NOARP,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast qlen 100
> link/[65534]
> inet 10.29.0.6 peer 10.29.0.5/32 <http://10.29.0.5/32> scope global tun0
> valid_lft forever preferred_lft forever
>
> Following commands resulted in similar output on client and server with different IP-Addresses.
>
> birdc show interfaces:
>
> tun0 up (index=5)
> PtP Multicast AdminUp LinkUp MTU=1500
> 10.29.0.1/32 <http://10.29.0.1/32> (Primary, opposite 10.29.0.2, scope site)
>
> birdc show ospf interface:
>
> BIRD 1.6.3 ready.
> myOSPF3:
> Interface tun0 (peer 10.29.0.2)
> Type: ptp
> Area: 0.0.0.0 (0)
> State: PtP
> Priority: 1
> Cost: 10
> Hello timer: 10
> Wait timer: 10
> Dead timer: 40
> Retransmit timer: 5
>
>
> birdc show ospf neighbors: no neighbours.
>
> tcpdump -v -s 0 proto ospf -i tun0
>
> 06:59:00.439738 IP (tos 0xc0, ttl 1, id 15270, offset 0, flags [none], proto OSPF (89), length 64)
> server > ospf-all.mcast.net <http://ospf-all.mcast.net/>: OSPFv2, Hello, length 44
> Router-ID repo.traffic.local, Backbone Area, Authentication Type: none (0)
> Options [External]
> Hello Timer 10s, Dead Timer 40s, Mask 0.0.0.0, Priority 1
> 06:59:02.449363 IP (tos 0xc0, ttl 1, id 18875, offset 0, flags [none], proto OSPF (89), length 64)
> 10.29.0.6 > ospf-all.mcast.net <http://ospf-all.mcast.net/>: OSPFv2, Hello, length 44
> Router-ID 192.168.21.17, Backbone Area, Authentication Type: none (0)
> Options [External]
> Hello Timer 10s, Dead Timer 40s, Mask 0.0.0.0, Priority 1
>
> Where server is the name of my server.
>
> In logs I can see only multiple <TRACE> myOSPF3: HELLO packet sent via tun0 - messages and once after start initial logs like adding area and originating lsa for routes from static-protocol.
>
>
>
> Now i'm trying to establish ptp-connection for ospf, but in future the server should run in ptmp mode. I suppose, that there is somethnig wrong with the IP-Address of peer, since the server has IP-Address 10.29.0.1 and the client 10.29.0.10. But I declared these IP-Adresses as neighbour in config file. Maybe there is an issue, that the IP-Addresses are in /32-network? But unfortunately I cannot change anything in openvpn settings. Do you have any idea, what I'm doing wrong?
>
>
>
>
>
>
> 2018-03-30 0:25 GMT+02:00 Ondrej Zajicek <santiago at crfreenet.org <mailto:santiago at crfreenet.org>>:
> On Thu, Mar 29, 2018 at 03:02:52PM +0200, dawid k 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;
> > }; }; };
>
> Hi
>
> What do you get from:
>
> ip addr list
> birdc show interfaces
> birdc show ospf interface
> birdc show ospf neighbors
> tcpdump -v -s 0 proto ospf -i tun0
>
>
> Do you have anything interesting in logs?
>
> --
> Elen sila lumenn' omentielvo
>
> Ondrej 'Santiago' Zajicek (email: santiago at crfreenet.org <mailto:santiago at crfreenet.org>)
> OpenPGP encrypted e-mails preferred (KeyID 0x11DEADC3, wwwkeys.pgp.net <http://wwwkeys.pgp.net/>)
> "To err is human -- to blame it on a computer is even more so."
>
>
> 2018-03-30 0:25 GMT+02:00 Ondrej Zajicek <santiago at crfreenet.org <mailto:santiago at crfreenet.org>>:
> On Thu, Mar 29, 2018 at 03:02:52PM +0200, dawid k 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;
> > }; }; };
>
> Hi
>
> What do you get from:
>
> ip addr list
> birdc show interfaces
> birdc show ospf interface
> birdc show ospf neighbors
> tcpdump -v -s 0 proto ospf -i tun0
>
>
> Do you have anything interesting in logs?
>
> --
> Elen sila lumenn' omentielvo
>
> Ondrej 'Santiago' Zajicek (email: santiago at crfreenet.org <mailto:santiago at crfreenet.org>)
> OpenPGP encrypted e-mails preferred (KeyID 0x11DEADC3, wwwkeys.pgp.net <http://wwwkeys.pgp.net/>)
> "To err is human -- to blame it on a computer is even more so."
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://trubka.network.cz/pipermail/bird-users/attachments/20180403/64cd9ab1/attachment.html>
More information about the Bird-users
mailing list