28.06.2014 Views

Discussion

Discussion

Discussion

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Table 9-1. Default routing-policy actions (continued)<br />

Protocol Routing table Default import action Default export action<br />

LDP inet.3 Accept all LDP routes. Accept and export active LDP routes.<br />

MPLS inet.3 Accept all MPLS routes. Accept and export active MPLS routes.<br />

OSPF inet.0 Accept all OSPF routes. Policy cannot be<br />

modified because OSPF requires that all<br />

routers in an area have the same linkstate<br />

database to maintain a stable,<br />

loop-free network.<br />

Reject everything (OSPF uses LSAs to<br />

advertise its routes).<br />

PIM dense mode inet.1 Accept all PIM DM routes. Accept and export active PIM DM routes.<br />

PIM sparse mode inet.1 Accept all PIM SM routes. Accept and export active PIM SM routes.<br />

RIP inet.0 Accept all RIP routes learned from RIP Reject everything.<br />

neighbors.<br />

RIPng inet6.0 Accept all RIPng routes learned from Reject everything.<br />

RIPng neighbors.<br />

Direct and static<br />

routes<br />

inet.0 Accept all routes. Do not export.<br />

What are some reasons to modify the default routing-policy behavior? This recipe<br />

illustrates one reason, which is to redistribute routes learned from one protocol<br />

(here, static routes) to another protocol (here, OSPF). This type of policy affects<br />

which routes the protocol advertises (or exports) from the routing table, so you configure<br />

it with a set export command. Another reason is to keep a route out of the<br />

routing table so that it can never become the active route. Active routes are placed in<br />

the forwarding table and are used to forward traffic. For these types of policy, you<br />

use a set import command to control the routes placed into (imported into) the routing<br />

table. Another reason specific to BGP is to change the BGP properties associated<br />

with a route, such as the AS path and community, and to configure route flap damping.<br />

Depending on your purposes, you use the set import or set export commands to<br />

apply policies.<br />

For the link-state IGPs (IS-IS and OSPF), you should never modify the default policy<br />

behavior for incoming routes (with a set import command). These protocols use<br />

link-state databases to keep track of their routes, and the databases on all routers in<br />

an area must be identical for the protocol to work properly.<br />

Now let’s look at this recipe to understand how the policy is configured. The policy,<br />

being a simple one, has only one term, called 1. While you could name the term with<br />

a text string that describes what the term does, it is common practice to use a number<br />

to name the term, especially in simple policies. The term name is not referenced<br />

by other parts of the configuration. It is, however, used in logfiles created when tracing<br />

routing-policy operation (see Recipe 9.7), so, for more complex networks and<br />

policies, identify each term with a meaningful name so you can identify them in the<br />

logfiles.<br />

286 | Chapter 9: Routing Policy and Firewall Filters<br />

This is the Title of the Book, eMatter Edition<br />

Copyright © 2008 O’Reilly & Associates, Inc. All rights reserved.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!