Distribution list with prefix and gw on RIP
Can anyone give an example where i should use a distribution list with preflix-list and gateway at the same time? There is a specific task in ATC labs where they asked you to filter all the prefixes based on the next hop router :
This is the resolution :
ip prefix-list NOT_FROM_R4 seq 5 deny 126.96.36.199/32 ip prefix-list NOT_FROM_R4 seq 10 permit 0.0.0.0/0 le 32 ! ip prefix-list PERMIT_ALL seq 5 permit 0.0.0.0/0 le 32
distribute-list prefix PERMIT_ALL gateway NOT_FROM_R4 in
Another way to do that is :
distribute-list gateway NOT_FROM_R4 in
So, when i use only gateway and when i should rely on prefix-list + gateway ?