Re: Redistribute Connected in BGP

From: Lindsay Hill <lindsay.k.hill_at_gmail.com>
Date: Mon, 12 Nov 2012 18:29:33 +1300

Why do you expect "redistribute connected" to behave so differently between
BGP and OSPF?

Also, given that a BGP peer can be non-directly connected, how does the BGP
process know which interfaces might be used to reach the peer? BGP doesn't
have any concept of "enabling BGP on a specific interface"

This is also documented in the Command Reference:
http://www.cisco.com/en/US/docs/ios-xml/ios/iproute_bgp/command/bgp-n1.html#G
UID-9C67E447-FD2B-47E3-9A2C-334A41829A76

"The connected keyword refers to routes that are established automatically by
virtue of having enabled IP on an interface."

So using "redistribute connected" will advertise all connected routes into
BGP. Exactly as you would expect.

Why exactly do you feel that this is an issue?

On 12/11/2012, at 5:50 PM, Routing Freak <routingfreak_at_gmail.com> wrote:

> Hi Brian
>
> Yes tat is correct, but i dont do a redistribute connected on OSPF, yes it
> will generate both Type 1 and Type 5 LSA. It increases the memory of the
> OSPF database. But when i give redistribute connected under BGP, what
> should happen , will it genrate a Update message for all the connected
> interfaces or else it will just genrate an update for the interface used to
> reach the neighbor.
>
>
>
> On Fri, Nov 9, 2012 at 9:34 PM, Brian Dennis <bdennis_at_ine.com> wrote:
>
>> If you are advertising an interface into OSPF natively why would the
>> router also allow it to be redistributed into OSPF on the same device?
>> What would the benefit be of having the same route advertised twice by the
>> same router, once as an intra-area route in OSPF and the other as an
>> external route in OSPF?
>>
>> --
>>
>> Brian Dennis, CCIEx5 #2210 (R&S/ISP-Dial/Security/SP/Voice)
>> bdennis_at_ine.com
>>
>> INE, Inc.
>> http://www.INE.com
>>
>>
>>
>> On 11/9/12 2:22 AM, "Routing Freak" <routingfreak_at_gmail.com> wrote:
>>
>>> Hi all
>>>
>>> I know that when you configure redistribute connected under OSPF or any
>>> other routing protocols, the connected interfaces which are running OSPF
>>> will be redistributed .
>>>
>>> When you do redistribute connected with route-map command, we have to
>>> explicitly configure the connected interfaces in the route-map to send.
>>>
>>>
>>> But under BGP, when you configure redistribute connected, i see that all
>>> the connected routes are getting redistributed,
>>>
>>> I want to know why it is redistributing all the connected interfaces and
>>> not only the connected interface used to reach the neighbor
>>>
>>> Is this a issue ?
>>>
>>>
>>>
>>> router bgp 100
>>>
>>> redistribute connected
>>>
>>>
>>> Blogs and organic groups at http://www.ccie.net
>>>
>>> _______________________________________________________________________
>>> Subscription information may be found at:
>>> http://www.groupstudy.com/list/CCIELab.html
>
>
> Blogs and organic groups at http://www.ccie.net
>
> _______________________________________________________________________
> Subscription information may be found at:
> http://www.groupstudy.com/list/CCIELab.html

Blogs and organic groups at http://www.ccie.net
Received on Mon Nov 12 2012 - 18:29:33 ART

This archive was generated by hypermail 2.2.0 : Sat Dec 01 2012 - 07:27:50 ART