Hi Raghav, see my comments below:
> "The route came in the routing table when i advertise it via the network
statement under BGP."
No - The route was already in the ROUTING TABLE on this router (probably
because of an IGP or connected). Using the network statement inserted the
route into the BGP TABLE on this router and advertised it to the BGP peers.
Does that make sense?
> "So AFAIK when i am using network statement under BGP and since BGP is not a
IGP the i should not exist. Please correct me if i am wrong."
No - using the network statement creates a route in the BGP table and assigns
it an origin code of "i"
The origin code does not define how a router learned the route (it's already
in the BGP table because it learned it via BGP from it's neighbor), but it
indicates how the route was originated into the BGP process.
On Mon, May 17, 2010 at 11:37 PM, Nico Van Niekerk
<Nico.VanNiekerk_at_momentum.co.za<mailto:Nico.VanNiekerk_at_momentum.co.za>>
wrote:
Origin code specifies how the route got into BGP in the first place...
You basically have 3 options:
i (IGP) - The route was in your routing table and inserted into BGP using a
"network" statement
e (EGP) - AFAIK was used when redistributing from EGP to BGP, but EGP not used
anymore
? (Incomplete) - when using a "redistribute" command to send routes into BGP
-----Original Message-----
From: nobody_at_groupstudy.com<mailto:nobody_at_groupstudy.com>
[mailto:nobody_at_groupstudy.com<mailto:nobody_at_groupstudy.com>] On Behalf Of
Raghav Bhargava
Sent: 18 May 2010 08:20 AM
To: Cisco certification
Subject: Regarding Origin Code in BGP
Hi Experts,
I have a query regarding Origin code in BGP. Below is my topology:
R1<----FR link ----> R2
R2 advertise's the network 2.2.0.2/24<http://2.2.0.2/24> to R1 via BGP. The
output for the same
on R1 is as follows:
r1#show ip bgp | in 2.2.0.2
*> 2.2.2.0/24<http://2.2.2.0/24> 10.1.12.2 0
0 200 *i*
Now my doubt is the " *i* " on the right hand side is the origin code which
is IGP, but since i am advertising it via BGP why am i seeing it as IGP??
-- Warm Regards Raghav Blogs and organic groups at http://www.ccie.netReceived on Tue May 18 2010 - 08:53:54 ART
This archive was generated by hypermail 2.2.0 : Tue Jun 01 2010 - 07:09:53 ART