cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
472
Views
0
Helpful
1
Replies

ospf to bgp redistribution is not happening

jsremi001
Level 1
Level 1

Hi,

 

I want to redistribute OSPF e2 routes into BGP. But OSPF E2 external routes are not getting redistributed into BGP without " redistribute ospf 1 metric 3 match internal external 2". Below is the key config and would like to know the alternate way of redistributing without using redistribute ospf 1 metric 3 match  external 2. Kindly advise.

 

R2(config-router)#do sh run | sec router
router ospf 1
log-adjacency-changes
network 12.12.12.0 0.0.0.255 area 0
router bgp 1
no synchronization
bgp log-neighbor-changes
redistribute ospf 1 metric 3 match internal external 2
neighbor 23.23.23.2 remote-as 2
no auto-summary

 


R2(config-router)#do sh ip ro ospf
Codes: L - local, 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, + - replicated route

Gateway of last resort is not set

1.0.0.0/32 is subnetted, 1 subnets
O 1.1.1.1 [110/2] via 12.12.12.1, 00:56:13, GigabitEthernet1/0
41.0.0.0/24 is subnetted, 1 subnets
O 41.41.41.0 [110/2] via 12.12.12.1, 00:56:13, GigabitEthernet1/0
100.0.0.0/32 is subnetted, 3 subnets
O E2 100.97.2.24 [110/3] via 12.12.12.1, 00:51:30, GigabitEthernet1/0
O E2 100.97.2.32 [110/3] via 12.12.12.1, 00:51:30, GigabitEthernet1/0
O E2 100.97.2.40 [110/3] via 12.12.12.1, 00:51:30, GigabitEthernet1/0

 


R2(config-router)#do sh ip bgp
BGP table version is 9, local router ID is 23.23.23.1
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
*> 1.1.1.1/32 12.12.12.1 3 32768 ?
*> 12.12.12.0/24 0.0.0.0 0 32768 ?
*> 41.41.41.0/24 12.12.12.1 3 32768 ?
*> 100.97.2.24/32 12.12.12.1 3 32768 ?
*> 100.97.2.32/32 12.12.12.1 3 32768 ?
*> 100.97.2.40/32 12.12.12.1 3 32768 ?

 

Regards,

Antro

1 Reply 1

Hello,

 

an altnernative would be to use a route map and specify 'match route-type external type-2 in the route map...

Review Cisco Networking products for a $25 gift card