04-04-2007 06:07 AM - edited 03-03-2019 04:25 PM
i would like to know the differencec between prefix-list and distribute-list
04-04-2007 06:22 AM
Sai
The difference between prefix-list and distribute list is that prefix-list provides the logic to identify and to permit or deny certain routes and distribute-list is the command configured in a routing protocol when you want to exert some control over routing updates. Traditionally a distribute-list used an access list to identify the routes but now distribute-list can also use prefix-list to identify the routes.
Perhaps an analogy may help the explanation: think about access-list and access-group. The access-list identifies certain traffic and permits or denies it. The access-group is used to assign an access-list to an interface. In a similar way a prefix-list identifies routes and permits or denies them and the distribute-list can assign the prefix-list to a routing protocol.
HTH
Rick
04-04-2007 06:35 AM
Hi,
As how I use them in BGP
"distribute-list" can call a pre-defined ACL number or prefix-list. "distribute-list in" to filter incoming BGP updates, "distribute-list out" to filter outbound BGP updates.
prefix-list can call a pre-defined prefix-list only. It can be use as an alternative to distribute-list.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide