Redistributing OSPF into BGP using route-map

Answered Question
Dec 16th, 2009
User Badges:

I am trying to redistribute a single IP from OSPF into BGP...

You can see the ACL where I want to redistribute the single IP and not the entire subnet...but I don't see it in the BGP routing table...

Any ideas?


router ospf 100
log-adjacency-changes
area 0 authentication message-digest
redistribute bgp 65001 subnets
network 10.10.10.0 0.0.0.255 area 0
default-information originate metric 100
!
router bgp 65001
no synchronization
bgp log-neighbor-changes
network 0.0.0.0
redistribute ospf 100 match internal external 1 external 2 route-map redistributeospf
neighbor 12.92.177.113 remote-as 7018
no auto-summary

ip access-list standard redistributeospf
deny   10.10.11.254
permit 10.10.11.0 0.0.0.255


route-map redistributeospf deny 10
match ip address redistributeospf
!
route-map redistributeospf permit 20

Correct Answer by marikakis about 7 years 7 months ago

I am still trying to understand what you are trying to do. Can you explain why the first clause of the route-map is a 'deny' clause?


route-map redistributeospf deny 10
match ip address redistributeospf

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 5 (2 ratings)
Loading.
Jerry Ye Wed, 12/16/2009 - 07:11
User Badges:
  • Cisco Employee,

Can you post the output of show ip bgp?


Regards,

jerry

trippi Wed, 12/16/2009 - 07:22
User Badges:

When I do a 'sh ip bgp' all my ospf routes are being redistributed except the subnet 10.10.11.0/24.  (Which is what I want minus the single IP)

Jerry Ye Wed, 12/16/2009 - 08:19
User Badges:
  • Cisco Employee,

Then your redistribution should work since the OSPF routes make it into the BGP table. Can you have someone verify the remote side?


Regards,

jerry

Correct Answer
marikakis Wed, 12/16/2009 - 08:58
User Badges:
  • Gold, 750 points or more

I am still trying to understand what you are trying to do. Can you explain why the first clause of the route-map is a 'deny' clause?


route-map redistributeospf deny 10
match ip address redistributeospf

Jerry Ye Wed, 12/16/2009 - 09:35
User Badges:
  • Cisco Employee,

Hi Maria,


You are right on spot. I've missed that totally (read it too fast).


If 10.10.11.254 is the only IP address that should not be redistributed into BGP the route map should look like this


route-map redistributeospf permit 10
match ip address redistributeospf
!


+5 for you Maria.


Regards,

jerry

Actions

This Discussion