match prefix-list

Use this command to match a packet against the specified prefix list.

Syntax

match prefix-list prefix-list
no match prefix-list prefix-list

Parameters

prefix-list Specifies a prefix list to match this packet against.

Defaults

None.

Mode

BGP route map configuration.

Usage

Multiple prefix-list entries may be entered. At least one prefix-list entry must match for set clauses to be performed. This is an exception to the general route-map rule that all match clauses within a sequence must match for set clauses to be performed.

The no match prefix-list command removes the match clause for the specified prefix list.

Example

This example shows how to match a packet against the permit100 prefix list:

System(su)->configure
System(su-config)->route-map bgp bgprm1 permit
System(su-config-route-map-bgp)->match prefix-list permit100
System(su-config-route-map-bgp)->show route-map bgprm1
 route-map bgp bgprm1 permit 10
  match prefix-list permit100
  match afi ipv6
  match safi unicast
  match as-path "^20313_$13"
  match community "100"
System(su-config-route-map-bgp)->