Configuration Guide User guide

FastIron Configuration Guide 1405
53-1002494-02
Filtering
Specifying the match conditions
Use the following command to define the match conditions for instance 1 of the route map
GET_ONE. This instance compares the route updates against BGP4 address filter 11.
Brocade(config-routemap GET_ONE)#match address-filters 11
Syntax: match [as-path <num>] | [address-filters | as-path-filters | community-filters
<num,num,...>] | [community <num>] | [community <ACL> exact-match] | [ip address
<ACL> | prefix-list <string>] | [ip route-source <ACL> | prefix <name>] [metric <num>] |
[next-hop <address-filter-list>] | [nlri multicast | unicast | multicast unicast] | [route-type
internal | external-type1 | external-type2] | [tag <tag-value>]
The as-path <num> parameter specifies an AS-path ACL. You can specify up to five AS-path ACLs.
To configure an AS-path ACL, use the ip as-path access-list
command. Refer to “Defining an
AS-path ACL on page 1396.
The address-filters | as-path-filters | community-filters <num,num,...> parameter specifies a filter
or list of filters to be matched for each route. The router treats the first match as the best match. If
a route does not match any filter in the list, then the router considers the match condition to have
failed. To configure these types of filters, use commands at the BGP configuration level:
To configure an address filter, refer to “Specific IP address filtering” on page 1394.
To configure an AS-path filter or AS-path ACL, refer to AS-path filtering” on page 1395.
To configure a community filter or community ACL, refer to “BGP4 filtering communities” on
page 1399.
You can enter up to six community names on the same command line.
NOTE
The filters must already be configured.
The community <num> parameter specifies a community ACL.
NOTE
The ACL must already be configured.
The community <ACL> exact-match parameter matches a route if (and only if) the route's
community attributes field contains the same community numbers specified in the match
statement.
The ip address | next-hop <ACL-num> | prefix-list <string> parameter specifies an ACL or IP prefix
list. Use this parameter to match based on the destination network or next-hop gateway. To
configure an IP ACL for use with this command, use the ip access-list command. Refer to “ACL
overview on page 1705. To configure an IP prefix list, use the ip prefix-list command. Refer to
“Defining IP prefix lists” on page 1401.
The ip route-source <ACL> | prefix <name> parameter matches based on the source of a route
(the IP address of the neighbor from which the Brocade device learned the route).
The metric <num> parameter compares the route MED (metric) to the specified value.
The next-hop <address-filter-list> parameter compares the IP address of the route next hop to the
specified IP address filters. The filters must already be configured.
The nlri multicast | unicast | multicast unicast parameter specifies whether you want the route
map to match on multicast routes, unicast routes, or both route types.