Configuration Guide User guide
FastIron Configuration Guide 1751
53-1002494-02
Policy-based routing (PBR)
Enabling PBR
After you configure the ACLs and route map entries, you can enable PBR globally, on individual
interfaces, or both as described in this section. To enable PBR, you apply a route map you have
configured for PBR globally or locally.
Enabling PBR globally
To enable PBR globally, enter a command such as the following at the global CONFIG level.
Brocade(config)#ip policy route-map test-route
This command applies a route map named “test-route” to all interfaces on the device for PBR.
Syntax: ip policy route-map <map-name>
Enabling PBR locally
To enable PBR locally, enter commands such as the following.
Brocade(config)#interface ve 1
Brocade(config-vif-1)#ip policy route-map test-route
The commands in this example change the CLI to the Interface level for virtual interface 1, then
apply the “test-route” route map to the interface. You can apply a PBR route map to Ethernet ports
or virtual interfaces.
Syntax: ip policy route-map <map-name>
Enter the name of the route map you want to use for the route-map <map-name> parameter.
Configuration examples for policy based routing
This section presents configuration examples for configuring and applying a PBR policy.
Basic example of policy based routing
The following commands configure and apply a PBR policy that routes HTTP traffic received on
virtual routing interface 1 from the 10.10.10.x/24 network to 5.5.5.x/24 through next-hop IP
address 1.1.1.1/24 or, if 1.1.1.x is unavailable, through 2.2.2.1/24.
Syntax: [no] route-map <map-name> permit | deny <num>
Syntax: [no] set ip next hop <ip-addr>
Brocade(config)#access-list 101 permit tcp 10.10.10.0 0.0.0.255 eq http 5.5.5.0
0.0.0.255
Brocade(config)#route-map net10web permit 101
Brocade(config-routemap net10web)#match ip address 101
Brocade(config-routemap net10web)#set ip next-hop 1.1.1.1
Brocade(config-routemap net10web)#set ip next-hop 2.2.2.2
Brocade(config-routemap net10web)#exit
Brocade(config)#vlan 10
Brocade(config-vlan-10)#tagged ethernet 1/1 to 1/4
Brocade(config-vlan-10)#router-interface ve 1
Brocade(config)#interface ve 1
Brocade(config-vif-1)#ip policy route-map net10web