Configuration Guide User guide
1750 FastIron Configuration Guide
53-1002494-02
Policy-based routing (PBR)
The any parameter configures the policy to match on all host addresses.
NOTE
Do not use the log option in ACLs that will be used for PBR.
Configuring the route map
After you configure the ACLs, you can configure a PBR route map that matches based on the ACLs
and sets routing information in the IP traffic.
NOTE
The match and set statements described in this section are the only route-map statements
supported for PBR. Other route-map statements described in the documentation apply only to the
protocols with which they are described.
To configure a PBR route map, enter commands such as the following.
Brocade(config)#route-map test-route permit 99
Brocade(config-routemap test-route)#match ip address 99
Brocade(config-routemap test-route)#set ip next-hop 192.168.2.1
Brocade(config-routemap test-route)#exit
The commands in this example configure an entry in a route map named “test-route”. The match
statement matches on IP information in ACL 99. The set statement changes the next-hop IP
address for packets that match to 192.168.2.1.
Syntax: [no]route-map <map-name> permit | deny <num>
The <map-name> is a string of characters that names the map. Map names can be up to 32
characters in length. You can define an unlimited number of route maps on the Brocade device, as
long as system memory is available.
The permit | deny parameter specifies the action the Brocade device will take if a route matches a
match statement:
• If you specify deny, the Brocade device does not apply a PBR policy to packets that match the
ACLs in a match clause. Those packets are routed normally,
• If you specify permit, the Brocade device applies the match and set statements associated
with this route map instance.
The <num> parameter specifies the instance of the route map you are defining. Routes are
compared to the instances in ascending numerical order. For example, a route is compared to
instance 1, then instance 2, and so on.
PBR uses up to six route map instances for comparison and ignores the rest.
Syntax: [no] match ip address <ACL-num-or-name>
The <ACL-num> parameter specifies a standard or extended ACL number or name.
Syntax: [no] set ip next hop <ip-addr>
This command sets the next-hop IP address for traffic that matches a match statement in the route
map.
Syntax: [no] set interface null0
This command sends the traffic to the null0 interface, which is the same as dropping the traffic.