Matching based on next-hop device, Matching based on the route source – Brocade Multi-Service IronWare Routing Configuration Guide (Supporting R05.6.00) User Manual

Page 114

Advertising
background image

86

Multi-Service IronWare Routing Configuration Guide

53-1003033-02

Filtering

The ACL-name-or-num parameter with the first command specifies an IP ACL and can be a number
from 1 – 199 or the ACL name if it is a named ACL. Multiple ACLs may be added when separated 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. To configure an IP
prefix list, refer to

“Defining and applying IP prefix lists”

on page 80.

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.

Brocade(config)# route-map HopMap permit 1

Brocade(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 –
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. To configure an IP
prefix list, refer to

“Defining and applying IP prefix lists”

on page 80.

Matching based on the route source

To match a BGP4 route based on its source, use the match ip route-source command.

Brocade(config)# access-list 10 permit 192.168.6.0 0.0.0.255

Brocade(config)# route-map bgp1 permit 1

Brocade(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.

Syntax: [no] match ip route-source acl | prefix-list name

The acl | prefix-list name parameters specify the name or ID of an IP ACL, or an IP prefix list.

Matching on routes containing a specific set of communities

The device can match routes based on the presence of a community name or number in a route. To
match based on a set of communities, configure a community ACL that lists the communities, then
compare routes against the ACL.

Brocade(config)# ip community-list standard std_1 permit 12:34 no-export

Brocade(config)# route-map bgp2 permit 1

Brocade(config-routemap bgp2)# match community std_1 exact-match

Advertising