I'm playing around filtering route advertisements on GNS3.
In the lab I'm doing a router has 5 loopbacks, first is asking me to filter one of them out without using a distribute list. I have chosen to do it in the following way and works although it might not be the intended of best way:
- I have redistributed into EIGRP connected routes and used a route map to filter that one network out. It worked fine to achieve the asked objetive.
None of those loopback networks have been announced to EIGRP by matching a network statement, just by being redistributed.
Then I'm asked to filter another loopback network out but this time using an outbound distribute-list. On my first attempt I chose to filter using "DISTRIBUTE_LIST x out EIGRP" this didn't work. Then I used "...out Interfaces..." this worked and filtered the nerwork out.
My question is:
Why "...out EIGRP" didn't work?
To be more specific:(running config of R1 below)
Task 1- on R1 filtered out network 18.104.22.168/27 wihtout using a distribute-list. I used the redistribute connected + route-map approach here
Task 2- Filter out network 22.214.171.124/28 using a distribute-list. My first approach using "distribute-list 2 out EIGRP" did not work. Then I used "
distribute-list 2 out FastEthernet0/0" and "distribute-list 2 out Serial2/0" and worked.
Does it something to do with the way EIGRP learnt them? REDISTRIBUTE rather than NETWORK commnad?
ip address 126.96.36.199 255.255.255.248
ip address 188.8.131.52 255.255.255.248
ip address 184.108.40.206 255.255.255.248
ip address 220.127.116.11 255.255.255.252
ip address 18.104.22.168 255.255.255.240
ip address 22.214.171.124 255.255.255.224
ip address 126.96.36.199 255.255.255.0
ip address 188.8.131.52 255.255.255.0
router eigrp INE
address-family ipv4 unicast autonomous-system 100
distribute-list 2 out FastEthernet0/0
distribute-list 2 out Serial2/0
redistribute connected metric 1500 10 255 1 1500 route-map MAP
network 184.108.40.206 0.0.0.255
network 220.127.116.11 0.0.0.255
access-list 1 permit 18.104.22.168 0.0.0.63
access-list 2 deny 22.214.171.124 0.0.0.31
access-list 2 permit any
route-map MAP deny 10
match ip address 1