[prev in list] [next in list] [prev in thread] [next in thread] 

List:       bird-users
Subject:    Re: ASK about BPG multiple routing table
From:       Ika Kushati <heart_kire1 () yahoo ! co ! id>
Date:       2013-02-11 12:12:47
Message-ID: 1360584767.91391.YahooMailNeo () web160901 ! mail ! bf1 ! yahoo ! com
[Download RAW message or body]

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@wujiman.net>
Kepada: Ika Kushati <heart_kire1@yahoo.co.id>
Cc: birduser <bird-users@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

[Attachment #3 (text/html)]

<html><body><div style="color:; background-color:; font-family:arial, helvetica, \
sans-serif;font-size:13px">hi already try ,,,,and I dont know why it dont work to \
me<br>I use 3 Debian router using BIRD<br>this is my R2 bird.conf<br><br>table \
T100;<br>table T200;<br><br><br>protocol kernel kT100 {<br>&nbsp; &nbsp; &nbsp; \
&nbsp; learn;<br>&nbsp; &nbsp; &nbsp; &nbsp; scan time 20;<br>&nbsp; &nbsp; &nbsp; \
&nbsp; table T100;<br>&nbsp; &nbsp; &nbsp; &nbsp; kernel table 100;<br>&nbsp; &nbsp; \
&nbsp; &nbsp; import all;<br>&nbsp; &nbsp; &nbsp; &nbsp; export \
all;<br>}<br><br>protocol kernel kT200 {<br>&nbsp; &nbsp; &nbsp; &nbsp; \
learn;<br>&nbsp; &nbsp; &nbsp; &nbsp; scan time 20;<br>&nbsp; &nbsp; &nbsp; &nbsp; \
table T200;<br>&nbsp; &nbsp; &nbsp; &nbsp; kernel table 200;<br>&nbsp; &nbsp; &nbsp; \
&nbsp; import all;<br>&nbsp; &nbsp; &nbsp; &nbsp; export \
all;<br>}<br><br><br>protocol bgp {<br>&nbsp; &nbsp; &nbsp; &nbsp; disabled \
no;<br>&nbsp; &nbsp; &nbsp; &nbsp;  preference 500;<br>&nbsp; &nbsp; &nbsp; &nbsp; \
description "to R1";<br><br>&nbsp; &nbsp; &nbsp; &nbsp; table T100;<br><br>&nbsp; \
&nbsp; &nbsp; &nbsp; local&nbsp; as 200;<br>&nbsp; &nbsp; &nbsp; &nbsp; neighbor \
192.168.12.2 as 100;<br>&nbsp; &nbsp; &nbsp; &nbsp; hold time 30;<br>&nbsp; &nbsp; \
&nbsp; &nbsp; connect retry time 10;<br>&nbsp; &nbsp; &nbsp; &nbsp; error wait time \
15,120;<br><br>&nbsp; &nbsp; &nbsp; &nbsp; enable route refresh on;<br><br>&nbsp; \
&nbsp; &nbsp; &nbsp; import all;<br>&nbsp; &nbsp; &nbsp; &nbsp; export \
all;<br>}<br><br>protocol bgp {<br>&nbsp; &nbsp; &nbsp; &nbsp; disabled no;<br>&nbsp; \
&nbsp; &nbsp; &nbsp; preference 500;<br>&nbsp; &nbsp; &nbsp; &nbsp; description "to \
R3";<br><br>&nbsp; &nbsp; &nbsp; &nbsp; table T200;<br><br>&nbsp; &nbsp; &nbsp; \
&nbsp; local as 200;<br>&nbsp; &nbsp; &nbsp; &nbsp; neighbor 192.168.22.2 as \
300;<br>&nbsp; &nbsp; &nbsp; &nbsp; hold time 30;<br>&nbsp; &nbsp; &nbsp; &nbsp; \
connect retry time  10;<br>&nbsp; &nbsp; &nbsp; &nbsp; error wait time \
15,120;<br><br>&nbsp; &nbsp; &nbsp; &nbsp; enable route refresh on;<br><br>&nbsp; \
&nbsp; &nbsp; &nbsp; import all;<br>&nbsp; &nbsp; &nbsp; &nbsp; export \
all;<br>}<br><div>------------------------------------------</div><div>and I \
configure BIRD on R1 to export like this</div><div><br></div><div style="color: \
rgb(0, 0, 0); font-size: 13px; font-family: arial,helvetica,sans-serif; \
background-color: transparent; font-style: normal;">/etc/bird.conf</div><div \
style="color: rgb(0, 0, 0); font-size: 13px; font-family: arial,helvetica,sans-serif; \
background-color: transparent; font-style: normal;"><br></div><div style="color: \
rgb(0, 0, 0); font-size: 13px; font-family: arial,helvetica,sans-serif; \
background-color: transparent; font-style: normal;">log syslog all;</div><div \
style="color: rgb(0, 0, 0); font-size: 13px; font-family: arial,helvetica,sans-serif; \
background-color: transparent; font-style:  normal;">router id \
192.168.12.2;</div><div style="color: rgb(0, 0, 0); font-size: 13px; font-family: \
arial,helvetica,sans-serif; background-color: transparent; font-style: \
normal;"><br></div><div style="color: rgb(0, 0, 0); font-size: 13px; font-family: \
arial,helvetica,sans-serif; background-color: transparent; font-style: \
normal;">protocol kernel {</div><div style="color: rgb(0, 0, 0); font-size: 13px; \
font-family: arial,helvetica,sans-serif; background-color: transparent; font-style: \
normal;"><span class="tab">&nbsp;&nbsp;&nbsp; export all;</span></div><div \
style="color: rgb(0, 0, 0); font-size: 13px; font-family: arial,helvetica,sans-serif; \
background-color: transparent; font-style: normal;"><span \
class="tab">&nbsp;&nbsp;&nbsp; scan time 15;</span></div><div style="color: rgb(0, 0, \
0); font-size: 13px; font-family: arial,helvetica,sans-serif; background-color: \
transparent; font-style: normal;"><span class="tab">}</span></div><div style="color: \
rgb(0,  0, 0); font-size: 13px; font-family: arial,helvetica,sans-serif; \
background-color: transparent; font-style: normal;"><span class="tab">protocol bgp \
{</span></div><div style="color: rgb(0, 0, 0); font-size: 13px; font-family: \
arial,helvetica,sans-serif; background-color: transparent; font-style: normal;"><span \
class="tab">&nbsp;&nbsp;&nbsp; preference 500;</span></div><div style="color: rgb(0, \
0, 0); font-size: 13px; font-family: arial,helvetica,sans-serif; background-color: \
transparent; font-style: normal;"><span class="tab">&nbsp;&nbsp;&nbsp; imprt \
all;</span></div><div style="color: rgb(0, 0, 0); font-size: 13px; font-family: \
arial,helvetica,sans-serif; background-color: transparent; font-style: normal;"><span \
class="tab">&nbsp;&nbsp;&nbsp; export all;</span></div><div style="color: rgb(0, 0, \
0); font-size: 13px; font-family: arial,helvetica,sans-serif; background-color: \
transparent; font-style: normal;"><span class="tab">&nbsp;&nbsp;&nbsp; local as  \
100;</span></div><div style="color: rgb(0, 0, 0); font-size: 13px; font-family: \
arial,helvetica,sans-serif; background-color: transparent; font-style: normal;"><span \
class="tab">&nbsp;&nbsp;&nbsp; neighbor 192.168.12.1 as 200;</span></div><div \
style="color: rgb(0, 0, 0); font-size: 13px; font-family: arial,helvetica,sans-serif; \
background-color: transparent; font-style: normal;"><span \
class="tab">}<br></span></div><div style="color: rgb(0, 0, 0); font-size: 13px; \
font-family: arial,helvetica,sans-serif; background-color: transparent; font-style: \
normal;"><br></div><div style="color: rgb(0, 0, 0); font-size: 13px; font-family: \
arial,helvetica,sans-serif; background-color: transparent; font-style: \
normal;">--------------------------------------------------</div><div style="color: \
rgb(0, 0, 0); font-size: 13px; font-family: arial,helvetica,sans-serif; \
background-color: transparent; font-style: normal;">and for R3</div><div \
style="color: rgb(0, 0, 0);  font-size: 13px; font-family: \
arial,helvetica,sans-serif; background-color: transparent; font-style: \
normal;"><br></div><div style="color: rgb(0, 0, 0); font-size: 13px; font-family: \
arial,helvetica,sans-serif; background-color: transparent; font-style: \
normal;">/etc/bird.conf</div><div style="color: rgb(0, 0, 0); font-size: 13px; \
font-family: arial,helvetica,sans-serif; background-color: transparent; font-style: \
normal;"><br></div><div style="color: rgb(0, 0, 0); font-size: 13px; font-family: \
arial,helvetica,sans-serif; background-color: transparent; font-style: normal;">log \
syslog all;</div><div style="color: rgb(0, 0, 0); font-size: 13px; font-family: \
arial,helvetica,sans-serif; background-color: transparent; font-style: \
normal;">router id 192.168.22.2;</div><div style="color: rgb(0, 0, 0); font-size: \
13px; font-family: arial,helvetica,sans-serif; background-color: transparent; \
font-style: normal;"><br></div><div style="color: rgb(0, 0, 0);  font-size: 13px; \
font-family: arial,helvetica,sans-serif; background-color: transparent; font-style: \
normal;">protocol kernel {</div><div style="color: rgb(0, 0, 0); font-size: 13px; \
font-family: arial,helvetica,sans-serif; background-color: transparent; font-style: \
normal;"><span class="tab">&nbsp;&nbsp;&nbsp; export all;</span></div><div \
style="color: rgb(0, 0, 0); font-size: 13px; font-family: arial,helvetica,sans-serif; \
background-color: transparent; font-style: normal;"><span \
class="tab">&nbsp;&nbsp;&nbsp; scan time 15;</span></div><div style="color: rgb(0, 0, \
0); font-size: 13px; font-family: arial,helvetica,sans-serif; background-color: \
transparent; font-style: normal;"><span class="tab">}</span></div><div style="color: \
rgb(0, 0, 0); font-size: 13px; font-family: arial,helvetica,sans-serif; \
background-color: transparent; font-style: normal;"><span class="tab">protocol bgp \
{</span></div><div style="color: rgb(0, 0, 0); font-size: 13px;  font-family: \
arial,helvetica,sans-serif; background-color: transparent; font-style: normal;"><span \
class="tab">&nbsp;&nbsp;&nbsp; preference 500;</span></div><div style="color: rgb(0, \
0, 0); font-size: 13px; font-family: arial,helvetica,sans-serif; background-color: \
transparent; font-style: normal;"><span class="tab">&nbsp;&nbsp;&nbsp; imprt \
all;</span></div><div style="color: rgb(0, 0, 0); font-size: 13px; font-family: \
arial,helvetica,sans-serif; background-color: transparent; font-style: normal;"><span \
class="tab">&nbsp;&nbsp;&nbsp; export all;</span></div><div style="color: rgb(0, 0, \
0); font-size: 13px; font-family: arial,helvetica,sans-serif; background-color: \
transparent; font-style: normal;"><span class="tab">&nbsp;&nbsp;&nbsp; local as \
300;</span></div><div style="color: rgb(0, 0, 0); font-size: 13px; font-family: \
arial,helvetica,sans-serif; background-color: transparent; font-style: normal;"><span \
class="tab">&nbsp;&nbsp;&nbsp; neighbor  192.168.22.1 as 200;</span></div><span \
class="tab">}</span><div style="color: rgb(0, 0, 0); font-size: 13px; font-family: \
arial,helvetica,sans-serif; background-color: transparent; font-style: \
normal;"><br><span></span></div><div style="color: rgb(0, 0, 0); font-size: 13px; \
font-family: arial,helvetica,sans-serif; background-color: transparent; font-style: \
normal;">------------------------------------------------</div><div style="color: \
rgb(0, 0, 0); font-size: 13px; font-family: arial,helvetica,sans-serif; \
background-color: transparent; font-style: normal;">why it doesnt work?....please \
help me,,,,,<br><span></span></div><div> <br> <div>----- Pesan Asli -----<br> Dari: \
Martin Kraus &lt;martin.kraus@wujiman.net&gt;<br> Kepada: Ika Kushati \
&lt;heart_kire1@yahoo.co.id&gt;<br> Cc: birduser \
&lt;bird-users@trubka.network.cz&gt;<br> Dikirim: Senin, 11 Februari 2013 16:44<br> \
Judul: Re: Bls: ASK about BPG multiple routing table<br> <br><br>Hi.<br><br>in  \
/etc/bird.conf<br><br>1) define additional routing tables in the main configuration \
(not under any<br>protocols)<br><br>table T100;<br>table T200;<br><br><br>2) define \
kernel protocols that will connect these bird routing tables to the<br>kernel routing \
tables. bird routing table T100 is connected to kernel routing<br>table number 100 \
and bird routing table T200 is connected to the kernel<br>routing table \
200.<br><br><br>protocol kernel kT100 {<br>&nbsp; &nbsp; &nbsp; &nbsp; \
learn;<br>&nbsp; &nbsp; &nbsp; &nbsp; scan time 20;<br>&nbsp; &nbsp; &nbsp; &nbsp; \
table T100;<br>&nbsp; &nbsp; &nbsp; &nbsp; kernel table 100;<br>&nbsp; &nbsp; &nbsp; \
&nbsp; import all;<br>&nbsp; &nbsp; &nbsp; &nbsp; export all;<br>}<br><br>protocol \
kernel kT200 {<br>&nbsp; &nbsp; &nbsp; &nbsp; learn;<br>&nbsp; &nbsp; &nbsp; &nbsp; \
scan time 20;<br>&nbsp; &nbsp; &nbsp; &nbsp; table T200;<br>&nbsp; &nbsp; &nbsp; \
&nbsp; kernel table 200;<br>&nbsp; &nbsp; &nbsp; &nbsp; import  all;<br>&nbsp; &nbsp; \
&nbsp; &nbsp; export all;<br>}<br><br>3) configure bgp peers and add the "table" \
statement into each with the<br>appropriate bird routing table name. (T100 for R1 and \
T200 for R3) <br><br>protocol bgp {<br>&nbsp; &nbsp; &nbsp; &nbsp; disabled \
no;<br>&nbsp; &nbsp; &nbsp; &nbsp; preference 500;<br>&nbsp; &nbsp; &nbsp; &nbsp; \
description "to R1";<br><br>&nbsp; &nbsp; &nbsp; &nbsp; table T100;<br><br>&nbsp; \
&nbsp; &nbsp; &nbsp; local 10.4.7.1&nbsp; as 65000;<br>&nbsp; &nbsp; &nbsp; &nbsp; \
neighbor 10.4.7.2 as 65100;<br>&nbsp; &nbsp; &nbsp; &nbsp; hold time 30;<br>&nbsp; \
&nbsp; &nbsp; &nbsp; connect retry time 10;<br>&nbsp; &nbsp; &nbsp; &nbsp; error wait \
time 15,120;<br><br>&nbsp; &nbsp; &nbsp; &nbsp; enable route refresh \
on;<br><br>&nbsp; &nbsp; &nbsp; &nbsp; import all;<br>&nbsp; &nbsp; &nbsp; &nbsp; \
export all;<br>}<br><br>protocol bgp {<br>&nbsp; &nbsp; &nbsp; &nbsp; disabled \
no;<br>&nbsp; &nbsp; &nbsp; &nbsp; preference  500;<br>&nbsp; &nbsp; &nbsp; &nbsp; \
description "to R3";<br><br>&nbsp; &nbsp; &nbsp; &nbsp; table T200;<br><br>&nbsp; \
&nbsp; &nbsp; &nbsp; local 10.4.8.1 as 65000;<br>&nbsp; &nbsp; &nbsp; &nbsp; neighbor \
10.4.8.2 as 65200;<br>&nbsp; &nbsp; &nbsp; &nbsp; hold time 30;<br>&nbsp; &nbsp; \
&nbsp; &nbsp; connect retry time 10;<br>&nbsp; &nbsp; &nbsp; &nbsp; error wait time \
15,120;<br><br>&nbsp; &nbsp; &nbsp; &nbsp; enable route refresh on;<br><br>&nbsp; \
&nbsp; &nbsp; &nbsp; import all;<br>&nbsp; &nbsp; &nbsp; &nbsp; export \
all;<br>}<br><br><br>4) configure the other routers. I used 2 cisco routers with R1 \
exporting<br>192.168.100.0/24 from lo0 and R3 exporting 192.168.200.0/24 from \
lo0.<br><br><br>5) this is what the kernel routing tables look like \
now<br><br><br>&lt;martin|finrod&gt;[~]# ip route show table 100<br>192.168.100.0/24 \
via 10.4.7.2 dev r1&nbsp; proto bird <br>&lt;martin|finrod&gt;[~]# ip route show \
table 200<br>192.168.200.0/24 via 10.4.8.2 dev  r2&nbsp; proto bird <br><br><br>That \
is all<br>regards,<br>mk<br> </div> </div> </div></body></html>



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic