06-03-2022 12:34 PM - edited 06-03-2022 12:34 PM
Hi,
I have a question regarding EIGRP route filtering with route map and extended access list (ACL).
This is the reference routing table BEFORE route filtering:
10.0.0.0/8 is variably subnetted, 9 subnets, 7 masks D 10.0.0.1/32 [90/130816] via 172.16.0.5, 00:02:37, GigabitEthernet0/1 D 10.0.0.2/32 [90/130816] via 172.16.0.9, 00:02:37, GigabitEthernet0/3 C 10.0.0.3/32 is directly connected, Loopback0 D 10.1.0.0/16 [90/130816] via 172.16.0.5, 00:02:37, GigabitEthernet0/1 D 10.2.0.0/17 [90/130816] via 172.16.0.5, 00:02:37, GigabitEthernet0/1 D 10.3.0.0/18 [90/130816] via 172.16.0.5, 00:02:37, GigabitEthernet0/1 D 10.4.0.0/19 [90/130816] via 172.16.0.5, 00:02:37, GigabitEthernet0/1 D 10.5.0.0/20 [90/130816] via 172.16.0.5, 00:02:37, GigabitEthernet0/1 D 10.5.20.0/22 [90/130816] via 172.16.0.5, 00:02:37, GigabitEthernet0/1
I want to filter out the prefixes in bold. Everything works fine when I create the extended ACL:
10 permit ip 10.5.0.0 0.0.255.255 255.255.240.0 0.0.15.0
and apply it to the route map:
route-map FIL, deny, sequence 10 Match clauses: ip address (access-lists): ACL1 Set clauses: Policy routing matches: 0 packets, 0 bytes route-map FIL, permit, sequence 20 Match clauses: Set clauses: Policy routing matches: 0 packets, 0 bytes
QUESTION:
However, if I add the second line to the ACL:
20 permit ip any any
every 10.x.x.x gets filtered out, except the 10.0.0.3/32 (local)
Can somebody, please, explain why is this happening?
Thank you!
Solved! Go to Solution.
06-03-2022 02:38 PM
Might have been worth mentioning that in your original post.
Can you post the full configuration of the router.
Jon
06-03-2022 12:39 PM - edited 06-03-2022 03:16 PM
....
06-03-2022 01:53 PM
Because you have used "permit ip any any" which matches every EIGRP route and therefore they are all filtered.
The reason 10.0.0.3/32 is still there is because it is not an EIGRP route.
Jon
06-03-2022 02:36 PM
But there are also 172.x.x.x prefixes in the routing table (not shown above) and they remain there. Only 10.x.x.x prefixes are filtered out.
06-03-2022 02:38 PM
Might have been worth mentioning that in your original post.
Can you post the full configuration of the router.
Jon
06-03-2022
03:06 PM
- last edited on
06-04-2022
02:21 AM
by
Translator
Hi Jon,
I think I found the answer just as I was going to copy the full configuration and routing table.
Only prefixes that remain in the routing table are those for Connected/Local interfaces, including 172.x.x.x prefixes, and there are none EIGRP routes after adding
permit ip any any
to the access list. I was confused because I didn't not look carefully at the routing table at first.
Thank you for your time, nonetheless.
06-03-2022 02:40 PM - edited 06-03-2022 03:17 PM
...
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide