Confused about route-maps, prefix-lists, acl's, and distribution-lists - Printable Version +- How2pass.com Forums (https://www.how2pass.com/forum) +-- Forum: CCNP (https://www.how2pass.com/forum/forum-6.html) +--- Forum: CCNP ENARSI 300-410 Forum (https://www.how2pass.com/forum/forum-15.html) +--- Thread: Confused about route-maps, prefix-lists, acl's, and distribution-lists (/thread-1892.html) |
Confused about route-maps, prefix-lists, acl's, and distribution-lists - IT-Biscuit - 01-16-2021 So before I start, I am currently CCNA certified and working on CCNP. I understand this much...
Now what I'm having difficulty with are the actual uses of ip-prefix lists or acl's with route-maps and the most effective way to use them. Lets say for example I wanted to redistribute OSPF to EIGRP and there were two ASBR's for the same AS's and I want to tag traffic to ensure that there are no loops...
R3 is between EIGRP 100 and OSPF 1 Area 1
[b]R3 and R7 are ASBR's between OSPF 1 and EIGRP 100[/b]
[b]R5 & R6 have virtual-link configured to give R7 access to Area 0[/b]So now the question.. ..what would be the most effective way to... Block IP's 10.20.0.0 thru 10.20.5.255 from entering the EIGRP routing table with the least amount of commands?
This is what I did on [b]R3[/b] and [b]R7[/b]
[code] ip prefix-list OSPF_Filter deny 10.20.0.0/24 le 32 ip prefix-list OSPF_Filter deny 10.20.1.0/24 le 32 ip prefix-list OSPF_Filter deny 10.20.5.0/24 le 32 ip prefix-list OSPF_Filter deny 10.20.2.0/24 le 32 ip prefix-list OSPF_Filter deny 10.20.3.0/24 le 32 ip prefix-list OSPF_Filter deny 10.20.4.0/24 le 32 ip prefix-list OSPF_Filter deny 10.20.5.0/24 le 32 ip prefix-list OSPF_Filter permit 0.0.0.0/0 le 32 route-map OSPF-EIGRP permit 5 set tag 20 match ip address prefix-list OSPF_Filter route-map OSPF-EIGRP deny 10 match tag 10 route-map EIGRP-OSPF permit 5 set tag 10 route-map EIGRP-OSPF deny 10 match tag 20 router eigrp 100 redistribute ospf 1 metric 10000 100 255 1 1500 route-map OSPF-EIGRP router ospf 1 redistribute eigrp 100 subnets route-map EIGRP-OSPF[/font][/size][/color] [/code]
Are the tags set correctly above?
I can't help but feel that this approach was very cumbersome and there should be an easier way to approach it with less statements or through summarization. Problem is if I summarize that route in the prefix-list I end up with a 10.20.0.0/28 which will also block unintended networks.
ip prefix-list OSPF_Filter permit 10.20.0.0/24 le 32 ip prefix-list OSPF_Filter permit 10.20.1.0/24 le 32 ip prefix-list OSPF_Filter permit 10.20.5.0/24 le 32 ip prefix-list OSPF_Filter permit 10.20.2.0/24 le 32 ip prefix-list OSPF_Filter permit 10.20.3.0/24 le 32 ip prefix-list OSPF_Filter permit 10.20.4.0/24 le 32 ip prefix-list OSPF_Filter permit 10.20.5.0/24 le 32 ip prefix-list OSPF_Filter deny 0.0.0.0/0 le 32 route-map OSPF-EIGRP permit 5 set tag 20 route-map OSPF-EIGRP deny 10 match tag 10 match ip address prefix-list OSPF_Filter route-map EIGRP-OSPF permit 5 set tag 10 route-map EIGRP-OSPF deny 10 match tag 20 [/code] |