User's Manual

473
Chapter 63 Configuring PBR
63.1 Overview
This section descripe how to configure PBR. PBR is the abbrecation of Policy Based Routing. PBR make the
user have the ability to route ip packet according some policy other than dynamic routing protocol. We currently
support the following policy: based on the length of ip packet, source ip address. You can set gateway or
outgoing interface for packets matching the policy. PBR can support load balance.
The rule for PBR selecting nexthop is following
If set ip next-hop is configured,and the gateway is reachble,the gateway will be used. If
multiple gateway is configured, use the first reachable gateway
if load-balance key word is
used
the load balance is used between these gateways
If set interface is configured, and the outgoing interface is routabale(interface protocol up
and ip address is confured)
use the outgoing interface
If multiple outgoing interfaces are
configured, first routable interface will be used. If load-balance key word is used
the load
balance is used between these interface
If both set ip next-hop and set interface
configured,
use set ip next-hop first.
3.set ip default next-hop or set default interface won't be used untill routing lookup failed.
63.2 PBR Configuration Task List
If you want to use PBRthe following configuration is needed:
Create standard access-list(optional)
Creat route-map
Apply route-map on interface
63.3 PBR Configuration Task
63.3.1 Create STANDARD Access List
To create access-list, following the step bellow
Command Function
ip access-list stand
net1 Enter access-list configurtion mode.
63.3.2 Create ROUTE-map
To create route-mapfollowing the step bellow:
Command Function
route-map pbr
Enter route-map configuration.
match ip address
access-list
Configure matching policy.
match length
min_length max_length Configure matching policy.
set ip
[
default
]
next-hop
A.B.C.D
Set gateway.
set
[
default
]
interface
interface_name
Set outgoing interface.