Specifying the match conditions, Match examples using acls – Brocade FastIron Ethernet Switch Layer 3 Routing Configuration Guide User Manual
Page 445
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.
device(config-routemap GET_ONE)# match address-filters 11
Syntax: [no] match [ as-path name ] [ community acl exact-match ] | [ ip address acl | prfix-list
string ] | [ ip route-source acl | prefix name ] [ metric num ] | [ next-hop address-filter-list ] | [ route-
type internal | external-type1 | external-type2 ] [ tag tag-value ] | interface interface interface
interface .. protocol bgp static-networkprotocol bgp externalprotocol bgp internal
The as-pathnum 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.
The community num parameter specifies a community ACL.
NOTE
The ACL must already be configured.
The communityaclexact-match parameter matches a route if (and only if) the route community
attributes field contains the same community numbers specified in the match statement.
The ip address, next-hop acl-num, prefix-list, and string parameters specify 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. To configure an IP prefix list, use the
ip prefix-list command.
The ip route-sourceacl and prefixname parameters match based on the source of a route (the IP
address of the neighbor from which the device learned the route).
The metricnum 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 route-type internal, external-type1, and external-type2 parameters apply only to OSPF routes.
These parameters compare the route type to the specified value.
The tagtag-value parameter compares the route tag to the specified tag value.
The protocol bgp static-network parameter matches on BGP4 static network routes.
The protocol bgp external parameter matches on eBGP (external) routes.
The protocol bgp internal parameter matches on iBGP (internal) routes.
Match examples using ACLs
The following sections contain examples of how to configure route maps that include match statements
that match on ACLs.
Matching based on AS-path ACL
To construct a route map that matches based on AS-path ACL 1, enter the following commands.
device(config)# route-map PathMap permit 1
device(config-routemap PathMap)# match as-path 1
Syntax: [no] match as-path string
Specifying the match conditions
FastIron Ethernet Switch Layer 3 Routing Configuration Guide
445
53-1003087-04