You can do it on the interface level using the 'ip policy' command.
Policy Based Routing
Scenario:
After getting rid of the ring that ruled them all things have changed in Middle Earth. The hobbits have become network engineers and are interconnecting every creature in their fantasy world. OSPF is the routing protocol of choice but the hobbits have some problems since all traffic is sent down the same path. Do you think you can help them out by teaching them Policy Based Routing?
Goal:
- All IP addresses have been preconfigured for you.
- OSPF has been preconfigured for you for full connectivity.
- Do not make any changes to OSPF.
- Make changes on router Bilbo so traffic from 1.1.1.0 towards router Meriadoc is sent down the serial link.
- Make changes on router Bilbo so traffic from 192.168.12.1 towards 33.33.33.33 is sent down the serial link.
- Make changes on router Bilbo so packets that are greater than 200 bytes are sent down the serial link.
- Make changes on router Bilbo so traffic from 192.168.12.2 towards 3.3.3.3 is sent down the serial link.
IOS:
c3640-jk9s-mz.124-16.bin
Topology:

Video Solution:
You need to register to download the GNS3 Topology File. (Registration is Free!)
- Related Articles
Comments (6)
-
Allex 2011-04-08 11:56:15Hi,
For:
Make changes on router Bilbo so traffic from 192.168.12.2 towards 3.3.3.3 are sent down the serial link:Where can I apply the policy route-map on BILBO so it can take effect?.
Thanks.
-
WiscBrad 2011-05-27 19:41:20In response to Rene and Alex.
Packets generated by the router are not policy routed. If you want to policy route traffic generated by the router, you must enable it. To enable local PBR, use the following global configuration command.
'ip local policy route-map'
-
ReneMolenaar 2012-04-02 10:33:23Thanks for sharing this, this is important to keep in mind in case you test things.
There's a big difference between traffic that flows "through" the router and traffic "generated" by the router itself and how the router deals with it. Traffic generated by the router is indeed not policy-routed so you need that command

Same thing applies to access-lists btw, traffic generated by your own router will not hit your access-lists on your interfaces.
-
rdm1860 2012-03-01 03:39:34I don't know how you recommend going about mastering these labs, but I find them very useful to have the video running, and to pause before you give an answer to exhaust every way I think something could be done prior to following your lead. I found this lab excellent. I've been working through 5-6 labs/day along with other studies.
-
ReneMolenaar 2012-04-02 10:36:09I believe this is a good way to "master" the labs. If you just watch the video you might get a good understanding but it's MUCH better when you try to wrap your head around it yourself. If you struggle on a topic and finally finish it you'll learn a valuable lesson and it will be easier to remember.
Watching the video and pausing it, doing the lab step-by-step is a good idea because it will prevent you from going down a rabbit hole that might not exist

have fun!





