NEW ARTICLES  HOT ARTICLES  TOP RATED  ADD AN ARTICLE  UPDATE AN ARTICLE  GET RATED 
  HOME     MY ACCOUNT     POWER SEARCH     REGISTER     SUPPORT     SUGGEST CATEGORY  

Cisco CCNP / BSCI Exam Tutorial: Introduction To Policy Routing
3391 Computers > Computers & Internet Mar 1, 2007 Chris Bryant, CCIE #12933 Cisco CCNP / BSCI Exam Tutorial: Introduction To Policy Routing Policy routing is a major topic on your BSCI exam, and you'll find quite a bit of policy routing going on in today's production networks. But what exactly is policy routing?

Policy-based routing, generally referred to as "policy routing", is the use of route maps to determine the path a packet will take to get to its final destination. As you progress through your CCNP studies and go on to the CCIE (or to a Cisco Quality Of Service certification), you'll find that traffic can be "marked" by policy routing in order to give different levels of service to various classes of traffic. (This is done by marking the traffic and placing the different classes of traffic in different queues in the router, allowing the administrator to give some traffic higher priority for transmission.)

There are some basic policy routing rules you should know:

Policy routing doesn't affect the destination of the packet, but does affect the path that is taken to get there.

Policy routing can forward traffic based on the source IP address or the destination IP address (with the use of an extended ACL).

Policy routing can be configured at the interface level, or globally.

Applying policy routing on an interface affects only packets arriving on that interface:

R2(config)#int s0

R2(config-if)#ip policy route-map CHANGE_NEXT_HOP

Applying the policy globally applies the route map to packets generated on the router, not on all packets received on all interfaces.

Whether you're running policy routing at the interface level, on packets created locally, or both, always run the command show ip policy to make sure you've got the right route maps on the proper interfaces.

R2#show ip policy

Interface Route map

local CHANGE_NEXT_HOP

Serial0 CHANGE_NEXT_HOP

And here's the big rule to remember....

If a packet doesn't match any of the specific criteria in a route map, or does match a line that has an explicit deny statement, the data is sent to the routing process and will be processed normally. If you don't want to route packets that do not meet any route map criteria, the set command must be used to send those packets to the null0 interface. This set command should be the final set command in the route map.

There are four possibilities for an incoming packet when route maps are in use. The following example illustrates all of them.

R2(config)#access-list 29 permit host 20.1.1.1

R2(config)#access-list 30 permit host 20.2.2.2

R2(config)#access-list 31 permit host 20.3.3.3

R2(config)#access-list 32 permit host 20.4.4.4

R2(config)#route-map EXAMPLE permit 10

R2(config-route-map)#match ip address 29

R2(config-route-map)#set ip next-hop 40.1.1.1

R2(config-route-map)#route-map EXAMPLE permit 20

R2(config-route-map)#match ip address 30

Assuming the route map has been applied to the router's ethernet0 interface, a packet sourced from 20.1.1.1 would meet the first line of the route map and have its next-hop IP address set to 40.1.1.1.

A packet sourced from 20.2.2.2 would match the next permit statement (sequence number 20). Since there is no action listed, this packet would return to the routing engine to undergo the normal routing procedure. All traffic that did not match these two addresses would also be routed normally - there would be no action taken by the route map.

Perhaps we want to specifically block traffic sourced from 20.3.3.3 or 20.4.4.4. We can use multiple match statements in one single route map, and have packets matching those two addresses sent to the bit bucket - the interface null0.

R2(config)#route-map EXAMPLE permit 30

R2(config-route-map)#match ip address 31

R2(config-route-map)#match ip address 32

R2(config-route-map)#set ?

as-path Prepend string for a BGP AS-path attribute

automatic-tag Automatically compute TAG value

comm-list set BGP community list (for deletion)

community BGP community attribute

dampening Set BGP route flap dampening parameters

default Set default information

extcommunity BGP extended community attribute

interface Output interface

ip IP specific information

level Where to import route

local-preference BGP local preference path attribute

metric Metric value for destination routing protocol

metric-type Type of metric for destination routing protocol

origin BGP origin code

tag Tag value for destination routing protocol

weight BGP weight for routing table

R2(config-route-map)#set interface null0

Any traffic matching ACLs 31 or 32 will be sent to null0, resulting in its being discarded by the router. Any traffic that didn't match any of the route map statements will be returned to the routing engine for normal processing.

Knowing policy routing and how to apply it are essential skills for passing the BSCI exam, earning your CCNP, and becoming more valuable in today's job market. Get some hands-on practice in a CCNA / CCNP home lab or rack rental to go along with learning the theory, and you'll be writing and applying policy routing in no time at all.

Chris Bryant, CCIE #12933, is the owner of The Bryant Advantage (www.thebryantadvantage.com), home of free CCNP and CCNA tutorials! For my FREE "How To Pass The CCNA" or "CCNP" ebook, visit the website and download your copies. Pass your CCNP exam with The Bryant Advantage!


Write a Review   Add to My Favorite   Refer it to Friend   Report Article  

Average Visitor Rating: 0.00 (out of 5)
Number of ratings: 0 Votes

Visitor Rating


Other links owned by this user
To pass your CCNA exam and earn this coveted certification, you must understand the details of port-based authentication. This knowledge has a great deal of value in production networks as well, since this authentication scheme is regularly implemented.
Category:

To pass he BCMSN exam and earn your CCNP cerificaion, you've go o know HSRP inside and ou. While he operaion and basic commands of HSRP are prey simple, here are some imporan deails ha are easily overlooked bu are vial in geing HSRP
Category:

When you're studying for the BSCI exam on the way to earning your CCNP certification, it's safe to say that BGP is like nothing you?ve studied to this point. BGP is an external routing protocol used primarily by Internet Service Providers (ISPs).
Category:

Earning your CCNP certification and ing the BSCI exam depends on knowing the details of many Cisco technologies, ISIS chief among them. To help you prepare for exam success, here's a list of ISIS terminology and basic concepts that will help you
Category:

To pass the BSCI exam an earn your CCNP, you've got to keep a lot of etails in min. It's easy to overlook the "simpler" protocols an services such as static routing an istance vector protocols. With this in min, here's a quick review of some
Category:

To ern your CCNA or CCNP certifiction, you've got to understnd the bsics of trunking. This isn't just CCNA topic - you must hve n dvnced understnding of trunking nd etherchnnels to pss the BCMSN exm nd ern your CCNP s well. Before we
Category:

Imagine this. You have an appointment with a client to work on a server or router install. A few minutes before you're scheduled to be there, you decide there's something really good on TV you'd like to watch. Or you decide to go to the gym, or play a
Category:

When you're working on your BCMSN exam on your way to CCNP certification, you'll read at length about how Cisco routers and multilayer switches can work to provide router redundancy - but there's another helpful service, Server Load Balancing, that
Category:

One f the first things yu learned abut Frame is that the LMI als serves as a keepalive, r a heartbeat - and if three cnsecutive LMIs are missed, the line prtcl ges dwn. There's a limitatin t LMI as a keepalive, thugh. The LMI is exchanged
Category:

Like TCP, BGP is connection-oriented. An underlying connection between two BGP speakers is established before any routing information is exchanged. This connection takes place on TCP port 179. As with EIGRP and OSPF, keepalive messages are sent out by
Category:

Part of studying for CCNA exam success is keeping all these new commands straight in your head! And let's face it, there are a lot of commands you need to know in order to pass the CCNA exam and earn that certification. Here's a review of some very
Category:

ISDN is a huge topic on both your Cisco CCNA and BCRAN CCNP exams. While many ISDN topics seem straightforward, it?s the details that make the difference in the exam room and working with ISDN in production networks. Configuring and troubleshooting
Category:

Policy routing is a major topic on your BSCI exam, and you'll find quite a bit of policy routing going on in today's production networks. But what exactly is policy routing? Policy-based routing, generally referred to as "policy routing", is the
Category:

Whether you're on the road to the CCNA, CCNP, MCSE, or you're on any other computer certification track, the odds are that sooner or later, you're gog to fail an exam. It's happened to almost all of us, yours truly cluded. What you have to keep
Category:

Not only is your CCNA exam going to have questions on VLAN trunking protocol, almost any network that has more than one VLAN is going to have VTP running. Whether you're planning on passing the CCNA exam or just brushing up on your networking skills,
Category:

To pass the BCMSN exam and earn your CCNP, you've got to know HSRP inside and out! Part of that is knowing how the MAC address of the virtual router is derived, and another part is knowing how to change this address. We'll look at both features in this
Category:

To earn your Cisco CCNA certification and pass the BSCI CCNP exam, you have to know your protocol basics like the back of your hand! To help you review these important concepts, here's a quick look at the basics of RIPv1, RIPv2, IGRP, and
Category:

Your BCMSN and CCNP studies will include mastering the details of Spanning Tree Protocol (STP). While you learned some of these details in your CCNA studies, quite a bit of it may be new to you. Before going on to the intermediate and advanced STP
Category:

Dialer Watch is a vital part of your CCNA and CCNP studies, particularly for the BCRAN exam, but it's one of the most misunderstood technologies as well. To help you pass the CCNA and CCNP certification exams, here's a detailed look at Dialer
Category:

Other links at Computers > Computers & Internet
Resell Rights allow you to purchase a product and redistribute it keeping 100% of the cost and these particular rights may come with specific restrictions such as a specified cost of resale
Category:

A professionally presented business website is a powerful and essential marketing tool: it's the first thing prospective customers will look at before they decide to contact you. If the copy on your website is not written to an acceptable standard, it may
Category:

Domain registration and domain name renewals s can be loaded with problems if you are not careful in selecting your registrar and fully understanding the terms and conditions associated with renewing domain names. As a general rule, when renewing domain
Category:

Just select some text, press e corresponding key combination and e search results are in front of your eyes. This is what e new free program Hotkey Search Tool can do for you. An advanced Internet user searches from 8 to 30 times a day. In
Category:

When you are new to the web, trying to start a new business to make a living online, you need advices to make your surffing le easier... Everyday, thousands of new surfers open their browsers for the first time, it is confusing in the beginning, but
Category:




Site Sponsor
Directory Statistics

Articles: 68228
Categories: 501

Yahoo Entertainment
Valid XHTML 1.0 Transitional   Valid CSS