cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1240
Views
0
Helpful
4
Replies

route-map permit with access-lists deny and permit

aajvandewiel
Level 1
Level 1

Hello,

I am confused on what is and is not possible on access-lists when using a route-map permit....

Will this work? I am redistributing routes from OSPF to BGP but also vice versa from BGP to OSPF. In BGP I am using route-maps to prevent routes redistributed coming back.

router bgp 65307

neighbor ESH-CC route-map FROMBGP in

neighbor ESH-CC route-map TOBGP out

route-map FROMBGP permit 10
match ip address 40

route-map TOBGP permit 10
match ip address 30
access-list 30 permit 10.61.0.0 0.0.127.255
access-list 40 permit 10.50.0.0 0.0.0.255
I want to move one single subnet 10.61.4.0 0.0.0.255 to the other network (from OSPF network to BGP network)
Will this be enough to prevent the route coming back?
access-list 30 deny 10.61.4.0 0.0.0.255
access-list 30 permit 10.61.0.0 0.0.127.255
access-list 40 permit 10.61.4.0. 0.0.0.255
access-list 40 permit 10.50.0.0 0.0.0.255
Thanks for helping me out!

4 Replies 4

cadet alain
VIP Alumni
VIP Alumni

Hi,

I don't see any redistribution here( keyword redistribute)  so it won't work indeed.

Can you post output of : sh run | s ospf and sh run | s bgp

Regards.

Alain.

Don't forget to rate helpful posts.

Sorry about that, added below.

router ospf 9065

redistribute bgp 65307 subnets

router bgp 65307
no synchronization
redistribute connected
redistribute ospf 9065
Thanks.

If you want to alter redistribution then it is in these redistribute commands that you must use route-maps

tell us what you want along with all the running relevant to ospf and bgp processes.

But I suppose what you want is prevent one route learned by ospf and redistributed into BGP to come back as BGP?( also known as route feedback)

If you have only one point of redistribution this won't happen.

Regards.

alain.

Don't forget to rate helpful posts.

Thanks Alain

Review Cisco Networking for a $25 gift card