ASK about BPG multiple routing table
Ika Kushati
heart_kire1 at yahoo.co.id
Mon Feb 11 13:12:47 CET 2013
hi already try ,,,,and I dont know why it dont work to me
I use 3 Debian router using BIRD
this is my R2 bird.conf
table T100;
table T200;
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;
}
protocol bgp {
disabled no;
preference 500;
description "to R1";
table T100;
local as 200;
neighbor 192.168.12.2 as 100;
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 as 200;
neighbor 192.168.22.2 as 300;
hold time 30;
connect retry time 10;
error wait time 15,120;
enable route refresh on;
import all;
export all;
}
------------------------------------------
and I configure BIRD on R1 to export like this
/etc/bird.conf
log syslog all;
router id 192.168.12.2;
protocol kernel {
export all;
scan time 15;
}
protocol bgp {
preference 500;
imprt all;
export all;
local as 100;
neighbor 192.168.12.1 as 200;
}
--------------------------------------------------
and for R3
/etc/bird.conf
log syslog all;
router id 192.168.22.2;
protocol kernel {
export all;
scan time 15;
}
protocol bgp {
preference 500;
imprt all;
export all;
local as 300;
neighbor 192.168.22.1 as 200;}
------------------------------------------------
why it doesnt work?....please help me,,,,,
----- Pesan Asli -----
Dari: Martin Kraus <martin.kraus at wujiman.net>
Kepada: Ika Kushati <heart_kire1 at yahoo.co.id>
Cc: birduser <bird-users at trubka.network.cz>
Dikirim: Senin, 11 Februari 2013 16:44
Judul: Re: Bls: ASK about BPG multiple routing table
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://trubka.network.cz/pipermail/bird-users/attachments/20130211/8e17cbca/attachment-0001.html>
More information about the Bird-users
mailing list