cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2898
Views
5
Helpful
5
Replies

Redistributing OSPF into BGP using route-map

trippi
Level 1
Level 1

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

1 Accepted Solution

Accepted Solutions

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

View solution in original post

5 Replies 5

Jerry Ye
Cisco Employee
Cisco Employee

Can you post the output of show ip bgp?

Regards,

jerry

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)

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

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

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

Review Cisco Networking products for a $25 gift card