cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Announcements
386
Views
10
Helpful
4
Replies
Dan22
Beginner

Problem with OE2 redistribution from OSPF to BGP

Hello,

The topology I want to discuss is as following.

Image 9.png

On R4, two EIGRP route are redistributed in OSPF. Route 44.44.44.44 is tagged with 111.

So on R2, there are two OE2 routes.

Image 10.png

 

I did below redistribution from OSPF to BGP on R2 with a route-map to filer out the tag 111.

router bgp 10001
bgp log-neighbor-changes
redistribute ospf 1 match external 1 external 2 route-map O2B
neighbor 192.168.12.1 remote-as 10000
route-map O2B deny 10
match tag 111
route-map O2B permit 20

 

The expectation is only 55.55.55.55/32 would be injected.

But it shows O routes are also injected to BGP. Below is the route table of R1.

Image 11.png

 

May I ask why Intra OSPF routes are redistributed even there is no keyword "internal" in the redistribute command?

How to inject OE routes without tag?

 

Config files are attached as well.

 

Thanks a lot.

BR,
Dan

1 ACCEPTED SOLUTION

Accepted Solutions

Hello @Dan22 ,

 

>>

May I interpret it that if we redistribute with route-map, internal ospf route will be added implicitly?

Is it a design behavior of CISCO devise?

 

yes we can say this.

 

As an alternative you could try to match on route-type within the route-map itself with match type . I have never tried this.

 

Hope to help

Giuseppe

 

View solution in original post

4 REPLIES 4
Giuseppe Larosa
Hall of Fame Master

Hello @Dan22 ,

>> May I ask why Intra OSPF routes are redistributed even there is no keyword "internal" in the redistribute command?

 

This is done by default.

Use a prefix-list to match route 55.55.55.55/32 and add match address prefix <prefix-list-name> to clause 20 of route-map O2B

 

Hope to help

Giuseppe

 

Hello Giuseppe,

 

May I interpret it that if we redistribute with route-map, internal ospf route will be added implicitly?

Is it a design behavior of CISCO devise?

 

BR,
Dan

Hello @Dan22 ,

 

>>

May I interpret it that if we redistribute with route-map, internal ospf route will be added implicitly?

Is it a design behavior of CISCO devise?

 

yes we can say this.

 

As an alternative you could try to match on route-type within the route-map itself with match type . I have never tried this.

 

Hope to help

Giuseppe

 

View solution in original post

Giuseppe,

 

Understand.

Thanks a lot.

 

BR,

Dan