
Matching based on community ACL
To construct a route map that matches based on community ACL 1, enter the following commands.
device(config)# ip community-list 1 permit 123:2
device(config)# route-map CommMap permit 1
device(config-routemap CommMap)# match community 1
Syntax:
[no] match community
string
The
string
parameter specifies a community list ACL. To configure a community list ACL, use the
ip community-list
command.
Matching based on destination network
You can use the results of an IP ACL or an IP prefix list as the match condition.
To construct a route map that matches based on destination network, enter commands such as the following.
device(config)# route-map NetMap permit 1
device(config-routemap NetMap)# match ip address 1
Syntax:
[no] match ip address
ACL-name-or-num
Syntax:
[no] match ip address prefix-list
name
The
ACL-name-or-num
parameter with the first command specifies an IP ACL and can be a number from 1 through 199 or the ACL
name if it is a named ACL. Multiple ACLs may be added when seperated by spaces. To configure an IP ACL, use the
ip access-list
or
access-list
command.
The
name
parameter with the second command specifies an IP prefix list name.
Matching based on next-hop device
You can use the results of an IP ACL or an IP prefix list as the match condition.
To construct a route map that matches based on the next-hop device, enter commands such as the following.
device(config)# route-map HopMap permit 1
device(config-routemap HopMap)# match ip next-hop 2
Syntax:
[no] match ip next-hop
string
Syntax:
[no] match ip next-hop prefix-list
name
The
string
parameter with the first command specifies an IP ACL and can be a number from 1 through 199 or the ACL name if it is a
named ACL. To configure an IP ACL, use the
ip access-list
or
access-list
command.
The
name
parameter with the second command specifies an IP prefix list name.
Matching based on the route source
To match a BGP4 route based on its source, use the
match ip route-source
command.
device(config)# access-list 10 permit 192.168.6.0 0.0.0.255
device(config)# route-map bgp1 permit 1
device(config-routemap bgp1)# match ip route-source 10
The first command configures an IP ACL that matches on routes received from 192.168.6.0/24. The remaining commands configure a
route map that matches on all BGP4 routes advertised by the BGP4 neighbors whose addresses match addresses in the IP prefix list.
You can add a set clause to change a route attribute in the routes that match. You also can use the route map as input for other
commands, such as the
neighbor
and
network
commands and some show commands.
Filtering
FastIron Ethernet Switch Layer 3 Routing
53-1003627-04
411
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 ...