bgp command neighbor default-originate route-map

From: Robert Smith (thecure007@gmail.com)
Date: Fri May 16 2008 - 20:16:03 ART


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,



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