- Planet WAN Router User's Manual

77
6.2 Policy-based Routing
PBR (policy-based routing) is allows user manually to defined policy that how to received packets
should be routed and also allows user to identify packets using several attributes to specify the next
hop to which the packet should be sent.
route-map map-name [deny | permit] sequence-number to define the condition for policy routing
match ip address access-list number to specify the condition by access-list
match length min max to establish criteria based on packet length.
set ip next-hop ip address for next hop to specify the next-hop router in path that packets should be
forward.
ip policy route-map map name identify a route map to use for policy routing on an interface.
set interface type of interface specify a list of interface which the packets can be routed.
traceroute Trace route to destination address - discovers the routes packets follow when traveling to
their destinations
Configuration Example
router# show run
Building configuration ...
service password-encryption
service timestamps debug
!
hostname router
!
enable password 7 wonRBhc01DcE
!
interface fastethernet 0/0
ip address 192.168.98.63 255.255.255.0
!
interface serial 0/0
encapsulation hdlc
ip address 10.0.0.2 255.0.0.0
ip policy route-map richard
!
interface async 0/0
!