ospf,kernel and ECMP

Volodymyr Samodid vladimir.samoded at onat.edu.ua
Thu Aug 1 15:01:12 CEST 2013


On 08/01/2013 04:04 PM, Ondrej Zajicek wrote:
> On Thu, Aug 01, 2013 at 12:24:46PM +0300, Volodymyr Samodid wrote:
>> Hello.
>> I have some problem with ecmp in bird.
>>
>> We try to migrate from quagga to bird and have faced with ecmp problem
>> in our schema.
>>
>> I have found some reference in ospf doc about it
>> ecmp switch [limit number]
>> but if I understand right, this refers only for ospf behavior.
> Hi
>
> Just enable this option and OSPF will generate ECMP routes
> and these routes will be exported to the kernel table.
>
> Also note that BIRD kernel support for ECMP is just for Linux/IPv4.
>
I have enabled this option. This is my config for r0


log syslog { debug, trace, info, remote, warning, error, auth, fatal, bug };
router id 10.200.1.10;
filter ospf_i { accept;}
filter ospf_e { accept;}
protocol direct {}
protocol kernel {
scan time 10; # Scan kernel routing table every 20 seconds
import all; # Default is import all
export all; # Default is export none
}
protocol device { scan time 10; }
protocol ospf onat_ospf {
tick 2;
rfc1583compat yes;
import filter ospf_i; # import to kernel
export filter ospf_e; # export from kernel
ecmp yes;
area 0.0.0.1 {
stub yes;
summary no;
interface "eth0" {
hello 10;
retransmit 6;
transmit delay 5;
dead count 4;
wait 50;
priority 130;
type broadcast;
rx buffer large;
};
};
};

It does not work.

bird> show route
0.0.0.0/0 via 10.200.1.101 on eth0 [onat_ospf 15:55] * IA (150/1010) 
[10.200.2.101]
10.200.1.0/24 dev eth0 [direct1 15:54] * (240)
dev eth0 [onat_ospf 15:55] I (150/10) [10.200.2.100]
bird> show ospf lsadb

Area 0.0.0.1

Type LS ID Router Age Sequence Checksum
0001 10.200.1.10 10.200.1.10 200 800001b9 cdf2
0003 0.0.0.0 10.200.2.100 1111 8000014d 19d3
0002 10.200.1.100 10.200.2.100 211 8000015b 66d3
0001 10.200.2.100 10.200.2.100 211 800001b6 10a1
0003 0.0.0.0 10.200.2.101 1121 80000150 0ddb
0001 10.200.2.101 10.200.2.101 208 800001ab 2495


-- 
С уважением,
Самодед Владимир
SVAJ-RIPE|SVA88-UANIC




More information about the Bird-users mailing list