[Xorp-hackers] Queries on iBGP and RIP

Ajay Mahimkar Ajay Mahimkar <ajay.mahimkar@gmail.com>
Sun, 10 Jul 2005 23:51:13 -0500


------=_Part_4236_20522068.1121057473472
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

Hi:

I am using XORP on the control plane of router to make routing decisions=20
using RIP, BGP. I have a couple of queries to the group.

1. The experiment I am trying to perform is three XORP routers in the same=
=20
AS using iBGP to set up routes for some networks. Assume 3 routers A, B, C=
=20
(completely connected), and B & C advertise for network X. So, given all=20
attributes to have the same value, A would have 2 routes (via B and C) to=
=20
network X. In my setup I want to prefer B over C. This could be done by=20
having different local_pref values. Could someone please let me know how to=
=20
achieve -> two routers in the same AS advertise different local_pref values=
=20
thereby having preference of one router over other?=20

I have been looking into the C++ code and tried with modifying local_pref=
=20
values in path_attribute.cc, .hh, bgp.hh, (enabling=20
add_localpref_insertion_filter in plumbing.cc for iBGP).=20
I also enabled if (ibgp() && !local_pref)
XLOG_WARNING("%s Update packet from ibgp with no LOCAL_PREF",
this->str().c_str());

However, it still gives the warning -> [ 2005/07/10 23:13:52 WARNING=20
xorp_bgp:3510 BGP +1427 peer.cc check_update_packet ] Peer-{128.83.140.131(=
179)=20
128.83.140.150(179)} Update packet from ibgp with no LOCAL_PREF

and in the routing table of A, it shows valid routes for both B and C, but=
=20
no best route...

So, could someone please help me with this. For XORP developers, it should=
=20
be relatively easy to figure this out.=20


2. I was trying to use re-advertising of iBGP routes via RIP. I added the=
=20
following in the RIP configuration,=20

export bgp {
metric: 0
tag: 10
}

I tried this with different values of metric and tag 0, 5, 10.....=20

However, I am getting the following warning -> [ 2005/07/10 23:41:55 INFO=
=20
xorp_rip XifRib ] Failed Redistribution enable protocol "bgp" - XRL failed:=
=20
"102 Command failed Failed to enable route redistribution from protocol=20
"bgp" to XRL target "rip-be52aa17e6cd44b493ea2fc4564882d5@127.0.0.1""

Could someone also let me know how to fix this and how can we advertise BGP=
=20
routes using RIP ?

Thanks in advance for your time.

- Ajay=20
(Graduate Student - UT Austin)

------=_Part_4236_20522068.1121057473472
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

Hi:<br>
<br>
I am using XORP on the control plane of router to make routing
decisions using RIP, BGP. I have a couple of queries to the group.<br>
<br>
1. The experiment I am trying to perform is three XORP routers in the
same AS using iBGP to set up routes for some networks. Assume 3 routers
A, B, C (completely connected), and B &amp; C advertise for network X.
So, given all attributes to have the same value, A would have 2 routes
(via B and C) to network X. In my setup I want to prefer B over C. This
could be done by having different local_pref values. Could someone
please let me know how to achieve -&gt; two routers in the same AS
advertise different local_pref values thereby having preference of one
router over other? <br>
<br>
I have been looking into the C++ code and tried with modifying
local_pref values in path_attribute.cc, .hh, bgp.hh, (enabling
add_localpref_insertion_filter in plumbing.cc for iBGP). <br>
I also enabled&nbsp;  if (ibgp() &amp;&amp; !local_pref)<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; XLOG_WAR=
NING(&quot;%s Update packet from ibgp with no LOCAL_PREF&quot;,<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
this-&gt;str().c_str());<br>
<br>
However, it still gives the warning -&gt; [ 2005/07/10 23:13:52&nbsp;
WARNING xorp_bgp:3510 BGP +1427 peer.cc check_update_packet ]
Peer-{128.83.140.131(179) 128.83.140.150(179)} Update packet from ibgp
with no LOCAL_PREF<br>
<br>
and in the routing table of A, it shows valid routes for both B and C, but =
no best route...<br>
<br>
So, could someone please help me with this. For XORP developers, it should =
be relatively easy to figure this out. <br>
<br>
<br>
2. I was trying to use re-advertising of iBGP routes via RIP. I added the f=
ollowing in the RIP configuration, <br>
<br>
export bgp {<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; metric: =
0<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; tag: 10<=
br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br>
<br>
I tried this with different values of metric and tag 0, 5, 10..... <br>
<br>
However, I am getting the following warning -&gt; [ 2005/07/10 23:41:55
INFO xorp_rip XifRib ] Failed Redistribution enable protocol &quot;bgp&quot=
; -
XRL failed: &quot;102 Command failed Failed to enable route redistribution
from protocol &quot;bgp&quot; to XRL target
&quot;<a href=3D"mailto:rip-be52aa17e6cd44b493ea2fc4564882d5@127.0.0.1">rip=
-be52aa17e6cd44b493ea2fc4564882d5@127.0.0.1</a>&quot;&quot;<br>
<br>
Could someone also let me know how to fix this and how can we advertise BGP=
 routes using RIP ?<br>
<br>
Thanks in advance for your time.<br>
<br>
- Ajay <br>
(Graduate Student - UT Austin) <br>
<br>

------=_Part_4236_20522068.1121057473472--