We have many options when it comes to filtering in EIGRP:
- Distribute-list in conjunction with standard access-list
- Distribute-list in conjunction with Extended access-list
- Distribute-list in conjunction with prefix-list
- Distribute-list using the gateway option
- Offset-list-list in conjunction with standard access list
- Distance command
To practice all this filter, I am going to use the following network diagram.

Overview of standard access-list
The way standard access-list operates in routes filtering is completely different with traffic filtering.
However the syntax is the same:
The syntax for the standard IP access list is shown here:
access-list
x {deny | permit} a.b.c.d wildcard mask {log}
Where a.b.c.d argument is the IP address where x is the access-list numbers which falls in the range 1 – 99 and 1300 -1999.
Let’s examine the routing table of R1 for EIGRP learned route
Task 1: using standard access-list, allow only 20.20.2.0/29 network from interface GigabitEthernet0/1.12
Solution:
Access-list 10 permit 20.20.2.0 0.0.0.0 (not 0.0.0.255 as wildcard mask)
Distribute-list 10 in GigabitEthernet0/1.12



Here is the result in the routing table:
If we had written our access-list like this Access-list 10 permit 20.20.2.0 0.0.0.255, we would have failed the task, because the wildcard mask 0.0.0.255 means match all network as long as the first three octets match exactly.
For example, network 20.20.2.128, 20.20.2.192, 20.20.2.224, 20.20.2.240…in a nutshell all 20.20.2.x network will fall in the access-list.
Standard access-list for network filtering does not take into account the subnet mask meaning that, for our access-list access-list 10 permit 20.20.2.0 0.0.0.0, all subnet mask would fit and the network going with would be permitted.
Task 2: Using extended access list, on R2 deny all route learned from R3
Below is the routing table of R2:
As we see, we have a bunch of routes learned from R3 (192.168.234.3) and from R4 (192.168.234.4) as well. We are going to filter all routes learned from R3, and allow only routes learned from R4 through R2 interface Fastethernet0/1.234.

Our extended access-list should look like this:
access-list 100 deny ip host 192.168.234.3 any
access-list 100 permit ip any any

When using extended access-list within the distribute-list command, the source field in our extended access-list represents the ip address of the router send the network we want to filter in (or out) whereas the destination field is the exact network we are preventing from getting into our network.

As we see, we now have only routes learned from R4 (192.168.234.4).
Task 3: On R2, Using extended access-list filter all network coming from R3 and R4 and having odd number in their second octet.
Solution:
Extended access-list:
- Source field: 192.168.234.0 wildcard mask: 0.0.0.7
- Destination field: 0.1.0.0 wildcard mask: 255.254.255.255


Access-list 100 deny ip 192.168.234.0 0.0.0.7 0.1.0.0 255.254.255.255
Task 4: on R2, Using Prefix list permit only routes having 195 in their first octet and having also /27 as a mask
Solution: Ip prefix-list PL1 seq 10 permit 195.0.0.0/8 ge 27 le 27



Task 5: On R2, using prefix-list allow only network coming from R3 and having /26, /27 and /28 as subnet mask:
Solution:
Network: ip prefix-list PL2 seq 10 permit 0.0.0.0/0 ge 26 le 28
Advertising source: ip prefix-list PL3 seq 10 permit 192.168.234.3/32


Task 6: On R2, using offset-list filter all 195.X.X.X:
Solution: we all know that 195.X.X.X routes learned Aare coming from R5 and will have hop count of 2 in the routing table of R2, meaning that, if increase the hop count by 14, none of the routes from R5 will be installed in the routing table.
Below is the output of the debug ip rip command issue on R2, and we can notice that all 195.X.X.X routes have a hop count of 16 therefore are allowed by RIP process on R2, they are marked inaccessible.


Task 7: On R2, using distance command, allow only route having only numbers 1 to 4 in their second octet

.
That are all for filtering, I hope these have been informative.
Blaise Annesti NGADJUI