Bls: ASK about BPG multiple routing table
Martin Kraus
martin.kraus at wujiman.net
Mon Feb 11 10:44:32 CET 2013
Hi.
in /etc/bird.conf
1) define additional routing tables in the main configuration (not under any
protocols)
table T100;
table T200;
2) define kernel protocols that will connect these bird routing tables to the
kernel routing tables. bird routing table T100 is connected to kernel routing
table number 100 and bird routing table T200 is connected to the kernel
routing table 200.
protocol kernel kT100 {
learn;
scan time 20;
table T100;
kernel table 100;
import all;
export all;
}
protocol kernel kT200 {
learn;
scan time 20;
table T200;
kernel table 200;
import all;
export all;
}
3) configure bgp peers and add the "table" statement into each with the
appropriate bird routing table name. (T100 for R1 and T200 for R3)
protocol bgp {
disabled no;
preference 500;
description "to R1";
table T100;
local 10.4.7.1 as 65000;
neighbor 10.4.7.2 as 65100;
hold time 30;
connect retry time 10;
error wait time 15,120;
enable route refresh on;
import all;
export all;
}
protocol bgp {
disabled no;
preference 500;
description "to R3";
table T200;
local 10.4.8.1 as 65000;
neighbor 10.4.8.2 as 65200;
hold time 30;
connect retry time 10;
error wait time 15,120;
enable route refresh on;
import all;
export all;
}
4) configure the other routers. I used 2 cisco routers with R1 exporting
192.168.100.0/24 from lo0 and R3 exporting 192.168.200.0/24 from lo0.
5) this is what the kernel routing tables look like now
<martin|finrod>[~]# ip route show table 100
192.168.100.0/24 via 10.4.7.2 dev r1 proto bird
<martin|finrod>[~]# ip route show table 200
192.168.200.0/24 via 10.4.8.2 dev r2 proto bird
That is all
regards,
mk
More information about the Bird-users
mailing list