Brocade TurboIron 24X Series Configuration Guide User Manual
Page 749

Brocade TurboIron 24X Series Configuration Guide
715
53-1003053-01
Filtering
Matching based on next-hop router
To construct match statements for a route map that match based on the IP address of the next-hop
router, use either of the following methods. 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 router, enter commands such as the
following.
TurboIron(config)#route-map HopMap permit 1
TurboIron(config-routemap HopMap)#match ip next-hop 2
Syntax: match ip next-hop
Syntax: match ip next-hop prefix-list
The
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. Refer to
Chapter 28, “Configuring Rule-Based IP Access Control Lists”
.
The
IP prefix list, refer to
Matching based on the route source
To match a BGP4 route based on its source, use the match ip route-source statement. Here is an
example.
TurboIron(config)#access-list 10 permit 10.192.168.6 0.0.0.255
TurboIron(config)#route-map bgp1 permit 1
TurboIron(config-routemap bgp1)#match ip route-source 10
10.
The first command configures an IP ACL that matches on routes received from 192.168.6/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
statement 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.
Syntax: match ip route-source
The
Matching on routes containing a specific set of communities
Device software enables you to match routes based on the presence of a community name or
number in a route, and to match when a route contains exactly the set of communities you specify.
To match based on a set of communities, configure a community ACL that lists the communities,
then compare routes against the ACL.
Here is an example.
TurboIron(config)#ip community-list standard std_1 permit 12:34 no-export
TurboIron(config)#route-map bgp2 permit 1
TurboIron(config-routemap bgp2)#match community std_1 exact-match
The first command configures a community ACL that contains community number 12:34 and
community name no-export. The remaining commands configure a route map that matches the
community attributes field in BGP4 routes against the set of communities in the ACL. A route
matches the route map only if the route contains all the communities in the ACL and no other
communities.