Configure prefix lists to control BGP route filtering by specifying permitted or denied network prefixes.
Prefix lists efficiently filter BGP routes. You can specify which network prefixes should be permitted or denied during BGP updates.
You do not need to specify a sequence number when removing a configuration entry. The show commands include the sequence numbers in their output.
Before using a prefix list in a command, you must set up the prefix list.
Procedure
| 1. | Use the configure terminal command to enter global configuration mode. Example:
|
|
| 2. | Use the ip prefix-list list-name [seq seq-value] deny | permit network/len [ge ge-value] [le le-value] command to create a prefix list with an optional sequence number to deny or permit access for matching conditions. Example:
At least one permit or deny clause must be entered.
|
|
| 3. | Use the ip prefix-list list-name seq seq-value deny | permit network/len [ge ge-value] [le le-value] command to add an entry to a prefix list, and assign a sequence number to the entry. This step is optional. Example:
|
|
| 4. | Use the end command to return to privileged EXEC mode. Example:
|
|
| 5. | Use the show ip prefix list [detail | summary] name [network/len] [seq seq-num] [longer] [first-match] command to verify the configuration by displaying information about a prefix list or prefix list entries. Example:
|