Birdc OSPF propagate connected networks from VLANs
Hello everybody, i have a strange problem with propagation of subnets to OSPF area. scheme: --------------- Area 0 ----------------- -- Router1 -- ------------------ -- Router 2 -- --------------- ----------------- | LAGG iface | LAGG iface On both routers are bonded ifaces in LAGG. When i create vlan on LAGG trunk (i'm on FreeBSD 10.2. bird 1.5.0), i have in route export only ip/32 on vlan iface, not whole subnet. Configuration of bird: #### Main #### log "/var/log/bird.log" all; router id XXX.XXX.XXX.XXX; debug protocols all; protocol static { route YYY.YYY.YYY.YYY/NN via "vlanXX"; export all; import all; } protocol device { scan time 120; export all; } protocol kernel { learn; persist; scan time 30; import all; export all; } protocol ospf { import filter { accept; }; export all; area 0.0.0.0 { interface "ix0" { cost 10; type broadcast; hello 10; retransmit 5; wait 15; dead 30; }; networks { 10.0.0.0/8; 172.16.0.0/12; 192.168.0.0/16; }; }; }; Interesting thing is , when i import subnet to main table via :route XXX.XXX.XXX.XXX via "vlanXXX"; in static protocol and do birdc configure, propagation is working. So it seems to me that protocol device (or kernel) is not correctly importing created subnet into main table. Any ideas ? Thank You All Viker -- S pozdravem Vilem Kebrt email: viker@viker.cz tel: +420 604 550 132
On 01/06/2016 09:26 AM, viker wrote:
Hello everybody, i have a strange problem with propagation of subnets to OSPF area. scheme:
--------------- Area 0 ----------------- -- Router1 -- ------------------ -- Router 2 -- --------------- ----------------- | LAGG iface | LAGG iface
On both routers are bonded ifaces in LAGG. When i create vlan on LAGG trunk (i'm on FreeBSD 10.2. bird 1.5.0), i have in route export only ip/32 on vlan iface, not whole subnet. Configuration of bird:
#### Main #### log "/var/log/bird.log" all; router id XXX.XXX.XXX.XXX; debug protocols all;
protocol static { route YYY.YYY.YYY.YYY/NN via "vlanXX"; export all; import all; }
protocol device { scan time 120; export all; }
protocol kernel { learn; persist; scan time 30; import all; export all; }
protocol ospf { import filter { accept; }; export all; area 0.0.0.0 { interface "ix0" { cost 10; type broadcast; hello 10; retransmit 5; wait 15; dead 30; };
networks { 10.0.0.0/8; 172.16.0.0/12; 192.168.0.0/16; }; }; };
Interesting thing is , when i import subnet to main table via :route XXX.XXX.XXX.XXX via "vlanXXX"; in static protocol and do birdc configure, propagation is working. So it seems to me that protocol device (or kernel) is not correctly importing created subnet into main table. Any ideas ? Thank You All Viker
No reaction ? nobody has bird 1.5.0 on freebsd 10.2 with this issue ? What about at least some information on which section could be problem ? Viker -- S pozdravem Vilem Kebrt email: viker@viker.cz tel: +420 604 550 132
Hello! You have two ways to announce the connected subnets: 1. Define the direct protocol and export this route to ospf. This routes will be anounced as external. 2. Enable ospf in passive mode on the corresponded interfaces. To get quick answers join the #bird on freenode irc. 2016-01-12 10:56 GMT+03:00 viker <viker@viker.cz>:
On 01/06/2016 09:26 AM, viker wrote:
Hello everybody, i have a strange problem with propagation of subnets to OSPF area. scheme:
--------------- Area 0 ----------------- -- Router1 -- ------------------ -- Router 2 -- --------------- ----------------- | LAGG iface | LAGG iface
On both routers are bonded ifaces in LAGG. When i create vlan on LAGG trunk (i'm on FreeBSD 10.2. bird 1.5.0), i have in route export only ip/32 on vlan iface, not whole subnet. Configuration of bird:
#### Main #### log "/var/log/bird.log" all; router id XXX.XXX.XXX.XXX; debug protocols all;
protocol static { route YYY.YYY.YYY.YYY/NN via "vlanXX"; export all; import all; }
protocol device { scan time 120; export all; }
protocol kernel { learn; persist; scan time 30; import all; export all; }
protocol ospf { import filter { accept; }; export all; area 0.0.0.0 { interface "ix0" { cost 10; type broadcast; hello 10; retransmit 5; wait 15; dead 30; };
networks { 10.0.0.0/8; 172.16.0.0/12; 192.168.0.0/16; }; }; };
Interesting thing is , when i import subnet to main table via :route XXX.XXX.XXX.XXX via "vlanXXX"; in static protocol and do birdc configure, propagation is working. So it seems to me that protocol device (or kernel) is not correctly importing created subnet into main table. Any ideas ? Thank You All Viker
No reaction ? nobody has bird 1.5.0 on freebsd 10.2 with this issue ? What about at least some information on which section could be problem ? Viker
--
S pozdravem Vilem Kebrt email: viker@viker.cz tel: +420 604 550 132
-- Anton.
Thank You Anton, finally somebody with clean answer :) See you on freenode :) Viker On 01/12/2016 10:42 AM, Anton Danilov wrote:
Hello!
You have two ways to announce the connected subnets:
1. Define the direct protocol and export this route to ospf. This routes will be anounced as external. 2. Enable ospf in passive mode on the corresponded interfaces.
To get quick answers join the #bird on freenode irc.
2016-01-12 10:56 GMT+03:00 viker <viker@viker.cz>:
On 01/06/2016 09:26 AM, viker wrote:
Hello everybody, i have a strange problem with propagation of subnets to OSPF area. scheme:
--------------- Area 0 ----------------- -- Router1 -- ------------------ -- Router 2 -- --------------- ----------------- | LAGG iface | LAGG iface
On both routers are bonded ifaces in LAGG. When i create vlan on LAGG trunk (i'm on FreeBSD 10.2. bird 1.5.0), i have in route export only ip/32 on vlan iface, not whole subnet. Configuration of bird:
#### Main #### log "/var/log/bird.log" all; router id XXX.XXX.XXX.XXX; debug protocols all;
protocol static { route YYY.YYY.YYY.YYY/NN via "vlanXX"; export all; import all; }
protocol device { scan time 120; export all; }
protocol kernel { learn; persist; scan time 30; import all; export all; }
protocol ospf { import filter { accept; }; export all; area 0.0.0.0 { interface "ix0" { cost 10; type broadcast; hello 10; retransmit 5; wait 15; dead 30; };
networks { 10.0.0.0/8; 172.16.0.0/12; 192.168.0.0/16; }; }; };
Interesting thing is , when i import subnet to main table via :route XXX.XXX.XXX.XXX via "vlanXXX"; in static protocol and do birdc configure, propagation is working. So it seems to me that protocol device (or kernel) is not correctly importing created subnet into main table. Any ideas ? Thank You All Viker
No reaction ? nobody has bird 1.5.0 on freebsd 10.2 with this issue ? What about at least some information on which section could be problem ? Viker
--
S pozdravem Vilem Kebrt email: viker@viker.cz tel: +420 604 550 132
-- S pozdravem Vilem Kebrt email: viker@viker.cz tel: +420 604 550 132
On Tue, Jan 12, 2016 at 08:56:37AM +0100, viker wrote:
Interesting thing is , when i import subnet to main table via :route XXX.XXX.XXX.XXX via "vlanXXX"; in static protocol and do birdc configure, propagation is working. So it seems to me that protocol device (or kernel) is not correctly importing created subnet into main table.
Hi Kernel protocol do not import device routes created by kernel, only from other sources (like 'ip route add' command or another routing daemon). Device proto does not create routes, Direct proto does that. Also note that 'networks' OSPF option makes sense only with multiple areas. -- Elen sila lumenn' omentielvo Ondrej 'Santiago' Zajicek (email: santiago@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."
Hi Ondrej, multiple areas...that's question, my setup is quite interesting in more ways, i have to reread ospf rfc to be sure that i don't need multiple areas :) So protocol Direct, ok, i'll look at documentation. Thank You Viker On 01/12/2016 11:22 AM, Ondrej Zajicek wrote:
On Tue, Jan 12, 2016 at 08:56:37AM +0100, viker wrote:
Interesting thing is , when i import subnet to main table via :route XXX.XXX.XXX.XXX via "vlanXXX"; in static protocol and do birdc configure, propagation is working. So it seems to me that protocol device (or kernel) is not correctly importing created subnet into main table. Hi
Kernel protocol do not import device routes created by kernel, only from other sources (like 'ip route add' command or another routing daemon).
Device proto does not create routes, Direct proto does that.
Also note that 'networks' OSPF option makes sense only with multiple areas.
-- S pozdravem Vilem Kebrt email: viker@viker.cz tel: +420 604 550 132
participants (3)
-
Anton Danilov -
Ondrej Zajicek -
viker