Добрый день! Сломал голову. Не поднять ospf (bird) на mikrotik-gre-linux. Сам gre - работает. Есть прописать static route - все замечательно работает. Не поднмается ospf. 10.1.0.1 - mikrotik (netmask /30) 10.1.0.2 - linux (нельзя указать netmask) xxx.xxx.xxx.xxx - внешний mikrotik yyy.yyy.yyy.yyy - внешний linux MTU и параметры ospf - идентичны. Если посмотреть на пакеты hello ospf - то разные только netmask. Но миротик должен игнорировать маски, если тип ptp. "Interface should belong to the same subnet and have the same network mask, unless it has network-type configured as point-to-point" 09:57:58.118787 IP (tos 0xc0, ttl 1, id 6654, offset 0, flags [none], proto OSPF (89), length 64) 10.1.0.1 > 224.0.0.5: OSPFv2, Hello, length 44 Router-ID xxx.xxx.xxx.xxx, Backbone Area, Authentication Type: none (0) Options [External] Hello Timer 10s, Dead Timer 40s, Mask 255.255.255.252, Priority 1 09:58:02.602102 IP (tos 0xc0, ttl 1, id 38289, offset 0, flags [none], proto OSPF (89), length 68) 10.1.0.2 > 224.0.0.5: OSPFv2, Hello, length 48 Router-ID yyy.yyy.yyy.yyy, Backbone Area, Authentication Type: none (0) Options [External] Hello Timer 10s, Dead Timer 40s, Mask 0.0.0.0, Priority 1 Neighbor List: xxx.xxx.xxx.xxx Куда копать?
bird.conf Код: log "/var/log/bird/bird.log" all; router id yyy.yyyy.yyy.yyy; protocol device { scan time 10; } protocol kernel { learn; # Learn all alien routes from the kernel scan time 20; # Scan kernel routing table every 20 seconds import none; # Default is import all export all; # Default is export none } protocol ospf { debug all; import all; area 0.0.0.0 { networks { 10.1.0.0/30; }; interface "tun*" { type ptp; hello 10; retransmit 5; cost 10; transmit delay 1; dead count 4; wait 40; authentication none; }; }; }
Код: /routing ospf interface add interface=gre-do-a3 network-type=point-to-point /ip address add address=10.1.0.1/30 interface=gre-do-a3 network=10.1.0.0 /routing ospf network add area=backbone comment=gre-do-a3 network=10.1.0.0/30
iface xxxx inet static address=10.1.0.2 netmask=255.255.255.252 Проверьте файрволлы. Включите дебаг со стороны mikrotik /system logging