Version 6.8 75 Mediant MSBR
Configuration Guide 12. Policy Based Routing (PBR)
12 Policy Based Routing (PBR)
Policy Based Routing (PBR) is a solution in the routing world that allows you to perform
user-defined routing manipulation on specific network traffic up to various parameters, like
layer-4 ports. PBR is implemented using a tool called Route-maps.
Route-maps are powerful tools for routing manipulation. Route-maps allow you to select
specific traffic, by match at extended access-list and route it to specific interface and IP
next hop (if needed).
12.1 PBR Configuration
The following describes PBR configuration.
Command Description
Enters the data configuration menu.
(config-data)# interface VLAN 1
Enters VLAN 2 configuration menu.
(conf-if-VLAN 2)# ip policy route-
map-static name
Configures the static route map for traffic that
received by this interface.
Exits the VLAN 2 configuration menu.
(config-data)# route-map-static
name
Configures the static route map and enter route-
map-static configuration mode.
(conf-route-map-static)# match ip
address ACL_name
Configures the access list that select the traffic
which route by the route-map.
(conf-route-map-static)# set
attribute value
Configures the set command for traffic that
passed the match condition.
Only single match rule can be applied in a single route-map-static, and only single set
interface and set next-hop rules can be set.
12.1.1 Example of PBR using Route-Map-Static
In this example, MSBR acts as a router for two LAN segments: VLAN1 and VLAN2.
The example assumes that the MSBR needs to reach a specific destination network
segment in the WAN, and a default route on the MSBR has been configured to route
regular traffic through R-WAN1, but the traffic from host 192.169.0.115 and assigned to
TCP port 80, route through R-WAN2.
This is easily done using PBR and route-map-static.
Figure 12-1: PBR Source-Based Routing