ECMP and merge routes from different routers/protocols for the same destination

Mikhail Mayorov mm at tagan.ru
Fri Jun 24 11:43:52 CEST 2022


Hello!

I'm trying to increase the efficiency of ECMP on links between cities 
without static routes. On the same physical network (routers and links) 
I'm trying to run multiple independent OSPF protocols area  0 with 
different IDs (instance id).
Example config file:

protocol ospf v2 igpcore4 {
     ipv4 {
         table igpcoret4;
         import filter {
     ospf_metric1 = 100;
     accept;
   };
         export all;
     };
     ecmp on limit 12;
     merge external on;
     area 0.0.0.0 {
       interface "A2.1" { type pointopoint; bfd on; ecmp weight 10; cost 
1000; };
       interface "A2.2" { type pointopoint; bfd on; ecmp weight 10; cost 
1000; };
       interface "A3.1" { type pointopoint; bfd on; ecmp weight 10; cost 
1000; };
       interface "A3.2" { type pointopoint; bfd on; ecmp weight 10; cost 
1000; };
       interface "A1.1" { type pointopoint; bfd on; ecmp weight 10; cost 
500; };
       interface "A1.2" { type pointopoint; bfd on; ecmp weight 10; cost 
500; };
     };
};

protocol ospf v2 igpcore4_1 {
     ipv4 {
         table igpcoret4;
         import filter {
     ospf_metric1 = 100;
     accept;
   };
         export all;
     };
     ecmp on limit 12;
     merge external on;
     instance id 1;
     area 0.0.0.0 {
       interface "A2.1" { type pointopoint; bfd on; ecmp weight 10; cost 
500; };
       interface "A2.2" { type pointopoint; bfd on; ecmp weight 10; cost 
500; };
       interface "A3.1" { type pointopoint; bfd on; ecmp weight 10; cost 
500; };
       interface "A3.2" { type pointopoint; bfd on; ecmp weight 10; cost 
500; };
       interface "A1.1" { type pointopoint; bfd on; ecmp weight 10; cost 
1000; };
       interface "A1.2" { type pointopoint; bfd on; ecmp weight 10; cost 
1000; };
     };
};

I got this results area 0 instance 0 in protocol igpcore4 and area 0 
instance 1 in protocol igpcore4_1

BIRD 2.0.9 ready.
bird> show route for 10.10.97.33/32 all
Table igpcoret4:
10.10.97.33/32      unicast [igpcore4_1 11:58:31] * E2 (150/100/10000) 
[10.10.97.33]
     via 10.112.0.1 on A2.1 weight 10
     via 10.112.0.3 on A2.2 weight 10
     via 10.112.0.5 on A3.1 weight 10
     via 10.112.0.7 on A3.2 weight 10
     Type: OSPF-E2 univ
     OSPF.metric1: 100
     OSPF.metric2: 10000
     OSPF.tag: 0x00000000
     OSPF.router_id: 10.10.97.33
                      unicast [igpcore4 11:58:31] E2 (150/100/10000) 
[10.10.97.33]
     via 10.112.0.1 on A2.1 weight 10
     via 10.112.0.3 on A2.2 weight 10
     via 10.112.0.5 on A3.1 weight 10
     via 10.112.0.7 on A3.2 weight 10
     via 10.112.0.9 on A1.1 weight 10
     via 10.112.0.11 on A1.2 weight 10
     Type: OSPF-E2 univ
     OSPF.metric1: 100
     OSPF.metric2: 10000
     OSPF.tag: 0x00000000
     OSPF.router_id: 10.10.97.33

How to megre these routes and get a single route with 6 next hops 
interfaces.... Maybe via pipe or other variants?

-- 

Regards,
Mikhail V. Majorov
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://trubka.network.cz/pipermail/bird-users/attachments/20220624/9a3d3ddf/attachment.htm>


More information about the Bird-users mailing list