ip prefix-list on sub-interface

Unanswered Question
Apr 6th, 2008


Is it possible to use a ip prefix-list on a sub-interface?


I have this problem too.
0 votes
  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 0 (0 ratings)
mohammedmahmoud Sun, 04/06/2008 - 12:40

Hi Alan,

Prefix-lists are mainly used for route filtering with dynamic routing protocols or with attribute(s) manipulation with BGP, it is not used for packet filtering like ACLs, and thus can't be applied under interfaces.


Mohammed Mahmoud.

thotsaphon Mon, 04/07/2008 - 00:29

Hi Alan,

I completely agree with Mohammed. Prefix-list has been designed for control plane(Drawing network map) so It cannot be used for filtering routes as ACL does at interface-level.



caijunjie Mon, 04/07/2008 - 03:16


I agree with you that it is used to filter route. I have an example:

If I had 3 router connected via frame relay in a hub and spoke design and R1 is the hub. R1 is connected with a sub-interface. If i want to advertise only a default route out R1 serial interface. I use a default originate and a prefix that permit only .

Problem is that I still get other route advertised out R1 serial sub-interface. If dun configure a sub-interface . it work.

May i know why is this so. Hope u know wat i am writing. hehe

Thanks in advance

Richard Burts Mon, 04/07/2008 - 04:00

I wonder if there might be some confusion about how the prefix list is used relative to subinterfaces. Most of the comments about it not working focus on the possibility that it would be configured in subinterface config mode directly on the subinteface. But there is another possibility which is that the prefix list may be configured under the routing protocol as part of a distribute list and associated with the subinterface - which would work. Perhaps this could be looked at as prefix list working on the subinterface.

Perhaps the original poster can clarify which usage he is talking about?




This Discussion