redistribute bgp into ospf when bgp synchronization is used

From: Richard Davidson (rich@myhomemail.net)
Date: Mon Oct 07 2002 - 16:04:34 GMT-3


On R2, if I redistributed bgp into ospf, ospf will tell all the ospf routers that R2 is the next hop. How can I tell ospf that the bgp router R1 is the next hop? I tried using a route map to change the next hop in ospf but that didn't work. R1 = 172.16.123.1, R2 = 172.16.123.2, R3 = 172.16.123.3 is one of the ospf routers. r1, r2 and r3 are connected via frame-relay Broadcast. The big question here is, can I manipulate info redistributed into ospf.
 
Rich
 
R2
 
router ospf 1
 log-adjacency-changes
 redistribute bgp 64600 route-map setnexthop
 network 172.16.123.2 0.0.0.0 area 0
 
router bgp 64600
 bgp log-neighbor-changes
 neighbor peergroup peer-group
 neighbor peergroup remote-as 64600
 neighbor peergroup route-reflector-client
 neighbor 172.16.34.4 peer-group peergroup
 neighbor 172.16.123.1 remote-as 100
 neighbor 172.16.123.3 peer-group peergroup
 
access-list 10 permit 172.16.123.1
route-map setnexthop permit 10
 match ip next-hop 10
 set ip next-hop 172.16.123.1
 
*******
 
R3 is an ospf router
 
R3#
Gateway of last resort is 172.16.123.2 to network 0.0.0.0
 
O E2 192.168.104.0/24 [110/1] via 172.16.123.2, 18:19:03, Serial0 (from bgp on R2)
O E2 192.168.105.0/24 [110/1] via 172.16.123.2, 18:19:03, Serial0 (from bgp on R2)
     172.16.0.0/16 is variably subnetted, 8 subnets, 4 masks
R 172.16.40.0/24 [120/1] via 172.16.41.4, 00:00:12, Tunnel0
C 172.16.41.0/24 is directly connected, Tunnel0
C 172.16.34.0/25 is directly connected, Ethernet0
C 172.16.28.0/22 is directly connected, Loopback30
O IA 172.16.20.0/24 [110/65] via 172.16.123.2, 18:19:03, Serial0
O 172.16.0.0/18 is a summary, 18:19:14, Null0
O E2 172.16.2.0/24 [110/20] via 172.16.123.2, 18:19:04, Serial0
C 172.16.123.0/24 is directly connected, Serial0
     10.0.0.0/24 is subnetted, 1 subnets
C 10.10.3.0 is directly connected, Loopback10
O*E2 0.0.0.0/0 [110/1] via 172.16.123.2, 18:19:05, Serial0
O E2 192.0.0.0/8 [110/1] via 172.16.123.2, 18:19:05, Serial0



This archive was generated by hypermail 2.1.4 : Tue Nov 05 2002 - 08:35:41 GMT-3