Use the scientific method.
Create a filter type chart like this:
-------------------------
| X | A | B | C | D | E |
-------------------------
| A | X | | | | |
-------------------------
| B | X | X | | | |
-------------------------
| C | X | X | X | | |
-------------------------
| D | X | X | X | X | |
-------------------------
| E | X | X | X | X | X |
-------------------------
- Build a lab using BGP between two routers, and make sure it is
working and sharing prefixes. That is your control. Save the
configurations so that you can restore the control.
- Add one filter type (A), and observe the results.
- Add one more filter type (B), and observe the results. Note which
appears to have precedence. Mark the chart with the results at the intersection of A and B.
- Restore your control configuration.
- Repeat Step 2 (filter type A).
- Repeat Step 3 with another filter type (C). Mark the chart with the results at the intersection of A and C.
- Restore your control configuration.
- Repeat Step 2 (filter type A).
- Repeat Step 3 with another filter type (D). Mark the chart with the results at the intersection of A and D.
- Restore your control configuration.
- Repeat Step 2 (filter type A).
- Repeat Step 3 with another filter type (E). Mark the chart with the results at the intersection of A and E.
At this point, you will know how filter type A relates to each of the other filter types.
Restore your control configuration.
Repeat Steps 2 and 3 for filter type B compared to type C.
Restore your control configuration.
Repeat Steps 2 and 3 for filter type B compared to type D.
Restore your control configuration.
Repeat Steps 2 and 3 for filter type B compared to type E.
Restore your control configuration.
Repeat Steps 2 and 3 for filter type C compared to type D.
Restore your control configuration.
Repeat Steps 2 and 3 for filter type C compared to type E.
Restore your control configuration.
Repeat Steps 2 and 3 for filter type D compared to type E.
At the end, you will know which filter types have precedence over the other filter types.
Don't confuse the Distribute List with the Prefix List or Route Map Redistribution.