
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-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.
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 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-source
acl and
prefix
name
parameters match based on the source of a route (the IP address of the neighbor from which
the 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
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
tag
tag-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
The
string
parameter specifies an AS-path ACL and can be a number from 1 through 199. You can specify up to five AS-path ACLs.
Filtering
FastIron Ethernet Switch Layer 3 Routing
410
53-1003627-04
Summary of Contents for FastIron SX 1600
Page 2: ...FastIron Ethernet Switch Layer 3 Routing 2 53 1003627 04 ...
Page 16: ...FastIron Ethernet Switch Layer 3 Routing 16 53 1003627 04 ...
Page 20: ...FastIron Ethernet Switch Layer 3 Routing 20 53 1003627 04 ...
Page 142: ...FastIron Ethernet Switch Layer 3 Routing 142 53 1003627 04 ...
Page 150: ...FastIron Ethernet Switch Layer 3 Routing 150 53 1003627 04 ...
Page 200: ...FastIron Ethernet Switch Layer 3 Routing 200 53 1003627 04 ...
Page 214: ...FastIron Ethernet Switch Layer 3 Routing 214 53 1003627 04 ...
Page 350: ...FastIron Ethernet Switch Layer 3 Routing 350 53 1003627 04 ...
Page 476: ...FastIron Ethernet Switch Layer 3 Routing 476 53 1003627 04 ...
Page 588: ...FastIron Ethernet Switch Layer 3 Routing 588 53 1003627 04 ...