Re: bgp command neighbor default-originate route-map

From: John (jgarrison1@austin.rr.com)
Date: Sat May 17 2008 - 15:10:28 ART


The command your looking for is advertise-map, which allows conditional
route advertisment. For the most part route maps in bgp are used for
attribute minipulation.

http://www.cisco.com/en/US/docs/ios/iproute/command/reference/irp_bgp3.html#wp1012658
----- Original Message -----
From: "Miguel Trejo" <mike.trejo@gmail.com>
To: "RoRo" <cisconetman@gmail.com>
Cc: "Robert Smith" <thecure007@gmail.com>; "Cisco certification"
<ccielab@groupstudy.com>
Sent: Saturday, May 17, 2008 5:59 AM
Subject: Re: bgp command neighbor default-originate route-map

> http://www.cisco.com/en/US/docs/ios/iproute/command/reference/irp_bgp3.html#wp1013044
>
> Seems like only ACL are supported for this, try with a regular ACL instead
> of prefix and let me know.
>
> On Sat, May 17, 2008 at 12:34 AM, RoRo <cisconetman@gmail.com> wrote:
>
>> Hi Robert,
>>
>> I have run into this same situation with my customer. What version of IOS
>> are you running and on what platform?
>>
>>
>> On 5/16/08, Robert Smith <thecure007@gmail.com> wrote:
>> >
>> > Hi experts,
>> >
>> > Here I come again with another question.
>> >
>> > r6-------------sw1------------------------sw2
>> >
>> > all of them are in bgp as 100
>> > sw1 is the route reflector
>> >
>> > r6 is advertising network 1.1.1.0/24 to sw1 via bgp
>> >
>> > I am trying to have sw1 send a default network to sw2 only if
>> > 1.1.1.0/24exists in its bgp table:
>> >
>> >
>> > ip prefix-list EXIST seq 5 permit 1.1.1.0/24
>> > !
>> > route-map EXIST permit 10
>> > match ip address prefix-list EXIST
>> > !
>> > router bgp 100
>> > neighbor 172.16.78.8 default-originate route-map EXIST
>> >
>> > 1.1.1.0 is in sw1 bgp table:
>> >
>> > sw1# sh ip bgp
>> > BGP table version is 4, local router ID is 172.16.78.7
>> > Status codes: s suppressed, d damped, h history, * valid, > best, i -
>> > internal,
>> > r RIB-failure, S Stale
>> > Origin codes: i - IGP, e - EGP, ? - incomplete
>> >
>> > Network Next Hop Metric LocPrf Weight Path
>> > *>i1.1.1.0/24 172.16.67.6 0 100 0 i
>> >
>> > sw1#sh ip route
>> > Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
>> > D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
>> > N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
>> > E1 - OSPF external type 1, E2 - OSPF external type 2
>> > i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS
>> level-2
>> > ia - IS-IS inter area, * - candidate default, U - per-user static
>> > route
>> > o - ODR, P - periodic downloaded static route
>> >
>> > Gateway of last resort is not set
>> >
>> > 1.0.0.0/24 is subnetted, 1 subnets
>> > B 1.1.1.0 [200/0] via 172.16.67.6, 00:00:02
>> >
>> > However it is not generating a default route for sw2:
>> >
>> > sw2#sh ip bgp
>> > BGP table version is 1, local router ID is 172.16.78.8
>> > Status codes: s suppressed, d damped, h history, * valid, > best, i -
>> > internal,
>> > r RIB-failure, S Stale
>> > Origin codes: i - IGP, e - EGP, ? - incomplete
>> >
>> > Network Next Hop Metric LocPrf Weight Path
>> > * i1.1.1.0/24 172.16.67.6 0 100 0 i
>> >
>> > In the other hand, if I have r6 send 1.1.1.0 network to sw1 via ospf,
>> then
>> > it originates the default route to sw2:
>> >
>> > sw1#sh ip route os
>> > 1.0.0.0/24 is subnetted, 1 subnets
>> > O 1.1.1.0 [110/65] via 172.16.67.6, 00:00:00, Serial2/0
>> > sw1#
>> >
>> > ========================================
>> >
>> > sw2#sh ip bgp
>> > BGP table version is 3, local router ID is 172.16.78.8
>> > Status codes: s suppressed, d damped, h history, * valid, > best, i -
>> > internal,
>> > r RIB-failure, S Stale
>> > Origin codes: i - IGP, e - EGP, ? - incomplete
>> >
>> > Network Next Hop Metric LocPrf Weight Path
>> > *>i0.0.0.0 172.16.78.7 100 0 i
>> > *>i1.1.1.0/24 172.16.67.6 0 100 0 i
>> > sw2#
>> >
>> > So here I am confused. Is the neighbor default-originate route-map
>> command
>> > meant to work only with igp advertised networks but not with bgp
>> networks?
>> >
>> > Many thanks,
>> >
>> >
>> > _______________________________________________________________________
>> > Subscription information may be found at:
>> > http://www.groupstudy.com/list/CCIELab.html
>>
>>
>> _______________________________________________________________________
>> Subscription information may be found at:
>> http://www.groupstudy.com/list/CCIELab.html
>
>
> _______________________________________________________________________
> Subscription information may be found at:
> http://www.groupstudy.com/list/CCIELab.html



This archive was generated by hypermail 2.1.4 : Mon Jun 02 2008 - 06:59:17 ART