redistributing static in to bgp

From: Big guy (jenseike@start.no)
Date: Thu Dec 01 2005 - 17:22:35 GMT-3


hi all..

i want to redistribute a static route in to bgp to propagate to the peers
with ibgp.. this is what I have done :

ip route 120.100.10.1 255.255.255.255 Null0 tag 666
ip route 192.0.2.1 255.255.255.255 Null0

router bgp 2
 no synchronization
 bgp log-neighbor-changes
 redistribute static route-map BLACK_HOLE
 neighbor 4.4.4.4 remote-as 2
 neighbor 4.4.4.4 update-source Loopback0
 neighbor 4.4.4.4 send-community
 no auto-summary

route-map BLACK_HOLE permit 1
match tag 666
set ip next-hop 192.0.2.1
set local-preference 500
set origin igp
set community no-export
!
route-map BLACK_HOLE permit 2

nothing happens, and I am not able to see anything in the debugs either..
what i try to achive is to have the 120.11.10.1 net sent to peers with a
next hop of 192.0.2.1.

from this link i can read :

Paths for which the NEXT_HOP is inaccessible

Be sure that there is an Interior Gateway Protocol (IGP) route to the
NEXT_HOP that is associated with the path.

http://www.cisco.com/en/US/partner/tech/tk365/technologies_tech_note09186a00
80094431.shtml#background

and since I have a static route to that 192.0.2.1 prefix, i would asume that
the 120 net would be sent to the bgp peers..

can anybody help me with this..

jp



This archive was generated by hypermail 2.1.4 : Mon Jan 09 2006 - 07:07:50 GMT-3