CCNP ROUTE (Version 7) – Chapter 4: Manipulating Routing Updates

CCNP Enterprise Routing & Switching Original source

Objectives

Using Multiple IP Routing Protocols on a Network

Why Run Multiple Routing Protocols?

Running Multiple Routing Protocols

When running multiple routing protocols, a router may learn of a route from different routing sources. If a router learns of a specific destination from two different routing domains, the route with the lowest administrative distance would get installed in routing table.

Administrative Distance

The administrative distance is used to rate a routing protocol’s believability (also called its trustworthiness). Each routing protocol is prioritized in order from most to least believable using an assigned value called the administrative distance.

Multiple Routing Protocols Solutions

Careful routing protocol design and traffic optimization solutions should be implemented when supporting complex multiprotocol networks.

These solutions include the following:

Implementing Route Redistribution

Defining Route Redistribution

Planning to Redistribute Routes

Within each autonomous system, internal routers typically have complete knowledge of their network. Boundary routers running multiple protocols are usually configured to redistribute routes between routing domains. To have a scalable solution and limit the amount of routing update traffic, the redistribution process must selectively insert the routes that are learned.

Redistributing Routes

For instance, Figure 4-2 illustrates two routing domains interconnected by the boundary router R1. The routing table of R2 contains directly connected and OSPF networks, and the R3 routing table contains directly connected and EIGRP routes. R1 has active OSPF and EIGRP processes and its routing table contains directly connected routes, OSPF domain routes, and EIGRP domain routes. Without redistribution, routers in the OSPF domain are not aware of EIGRP routes, and routers in the EIGRP domain are not aware of OSPF routes.

Seed Metrics

The seed metric can be configured using either of the following:

Because redistributed routes are learned from other sources (such as other routing protocols), a boundary router must be capable of translating the metric of the received route from the source routing protocol into the receiving routing protocol. For example, if a boundary router receives a RIP route, the route has hop count as a metric. To redistribute the route into OSPF, the router must translate the hop count into a cost metric that the other OSPF routers will understand.

To help prevent suboptimal routing and routing loops, always set the initial seed metric to a value that is larger than the largest metric within the receiving autonomous system.

For example, when RIP routes are redistributed into OSPF and the highest OSPF metric is 50, the redistributed RIP routes should be assigned an OSPF metric higher than 50.

Default Seed Metrics

Default seed metric value for redistributed routes for each IP routing protocol is as follows:

Routes redistributed into EIGRP and RIP are assigned a metric of infinity. This informs the router that the route is unreachable and should not be advertised. Therefore, a seed metric must be specified when redistributing routes into RIP and EIGRP; otherwise, the routes will not be redistributed. Exceptions to this rule are redistributed connected or static routes and routes that are being redistributed between two EIGRP autonomous systems.

Redistributing RIP Routes into OSPF

Configuring and Verifying Basic Redistribution in IPv4 and IPv6

Redistributing OSPFv2 Routes into the EIGRP Routing Domain

Router(config-router)# redistribute protocol process-id [ metric bandwidth-metric delay-metric reliability-metric effective-bandwidth-metric mtu*-bytes* ] [ route-map map-tag ]

Verifying Redistributed OSPF Routes on R2

Redistributing OSPFv3 Routes into the EIGRP for IPv6 Routing Domain

Redistributing Connected Routes into EIGRP for IPv6

Redistributing EIGRP Routes into the OSPFv2 Routing Domain

Router(config-router)# redistribute protocol process-id [ metric metric-value ] [ metric-type type-value ] [ route-map map-tag ] [ subnets ]

Redistributing EIGRP Routes into OSPF

OSPF Metric-Type

The following external packet types can be configured:

Redistributing EIGRP Routes into OSPF as External Type 1 Routes

Types of Redistribution Techniques

One-Point Redistribution

One-Point Redistribution

Multipoint Redistribution

Multipoint Redistribution

Multipoint redistribution is likely to introduce potential routing loops. Multipoint one-way redistribution is problematic, and multipoint two-way redistribution is highly dangerous. Typical problems with multipoint redistribution involve the difference in the administrative distances of the protocols and their incompatible metrics, especially when statically assigned seed metrics are used in redistribution points.

Redistribution Problems

Generic multipoint two-way redistribution requires careful design and configuration.

Problems that can occur during multipoint two-way redistribution include the following:

Figure 4-11 illustrates a two-way multipoint redistribution issue where the cost of the internal links in AS1 (that is, 10 Mbps) differs from the cost of the internal links in AS2 (that is, 100 Mbps). In the figure, it is obvious that the best path between R1 and R4 is via R3, but during redistribution from AS2 to AS1, the metric is lost, and R1 is sending the packets toward R4 via R2, resulting in suboptimal routing.

Two-Way Multipoint Redistribution Issue

The cost of the internal links in AS1 (that is, 10 Mbps) differs from the cost of the internal links in AS2 (that is, 100 Mbps). In the figure, it is obvious that the best path between R1 and R4 is via R3, but during redistribution from AS2 to AS1, the metric is lost, and R1 is sending the packets toward R4 via R2, resulting in suboptimal routing.

Preventing Routing Loops in a Redistribution Environment

Redistribute routes in only one direction, on only one boundary router within the network.

If redistribution must be done in both directions or on multiple boundary routers, the redistribution should be tuned.

To prevent routing loops in a multipoint redistribution scenario:

Verifying Redistribution Operation

Controlling Routing Update Traffic

Because you can

In the example in Figure 4-13 , only a portion of routes from the EIGRP domain is distributed into OSPF on the boundary router R3. Specifically, the 10.0.1.0/24 and 10.0.2.0/24 should be permitted, and the 10.0.101.0/24 and 10.0.102.0/24 should be denied.

Cisco IOS allows manipulation of redistributed route information by using route filtering features. For example, a route filter option such as a route map could

Route Filtering Methods

Distribute lists

A distribute list allows an access control lists (ACLs) to be applied to routing updates.

Prefix lists

A prefix list is an alternative to ACLs designed to filter routes. It can be used with distribute lists, route maps, and other commands.

Route maps

Route maps are complex access lists that allow conditions to be tested against a packet or route, and then actions taken to modify attributes of the packet or route.

No one type of route filter is appropriate for every situation. Therefore, it is important to understand the various techniques available to help make better route filtering decisions.

Using Distribute Lists

Configuring Distribute Lists [out]

distribute-list [ access-list-number | name ] out [ interface-type interface-number | routing process | autonomous-system-number ] command.

The distribute-list out command filters updates going out of the interface or routing protocol specified in the command, into the routing process under which it is configured.

Configuring Distribute Lists [in]

distribute-list [ access-list-number | name ] in [ interface-type interface-number ]

The distribute-list in command filters updates going into the interface specified in the command, into the routing process under which it is configured.

Distribute List and ACL Example [out]

In this example, R3 must redistribute EIGRP routes into the OSPF domain with a metric of 40. However, the administrator only wants to allow the 10.10.11.0/24 and 10.10.12.0/24 routes to be propagated. All other routes should not be permitted.

Distribute List and ACL Example [in]

In this example, R3 must redistribute EIGRP routes into the OSPF domain with a metric of 40. However, the administrator only wants to allow the 10.10.11.0/24 and 10.10.12.0/24 routes to be propagated. All other routes should not be permitted.

Distribute List Issues

Traditionally, route filtering was accomplished using ACLs with the distribute-list command; however, using ACLs as route filters for distribute lists has several drawbacks, including the following:

Prefix List Characteristics

Using the ip prefix-list command has several benefits in comparison with using the access-list command. The intended use of prefix lists is limited to route filtering, where access lists were originally intended to be used for packet filtering and were then extended to route filtering.

The Advantages of Using Prefix Lists

Friendlier command-line interface

Faster processing

A significant performance improvement over access lists in loading and route lookup of large lists.

Support for incremental modifications

Sequence numbers are assigned to ip prefix-list statements, making it easier to edit.

Greater flexibility

Routers match networks in a routing update against the prefix list using as many bits as indicated. A prefix list can specify the exact size of the subnet mask, or it can indicate that the subnet mask must be in a specified range.

Configuring Prefix Lists

ip prefix-list { list-name | list-number } [ seq seq*-value* ] { deny | permit } network/ length [ ge ge*-value* ] [ le le-value ]

Distribute List and Prefix List Example

Prefix List Examples

Verifying Prefix Lists

Manipulating Redistribution Using ACLs, Prefix Lists, and Distribute Lists

Redistributing OSPFv2 Routes into the EIGRP Routing Domain Using an ACL and Distribute List

Redistributing EIGRP Routes into the OSPF Routing Domain Using a Prefix List and Distribute List

Understanding Route Maps

Route Map Applications

Route filtering during redistribution

Policy-based **routing (**PBR)

BGP

Configuring Route Maps

Step 1. Define the route map using the route-map global configuration command.

Step 2. Define the matching conditions using the match command and optionally the action to be taken when each condition is matched using the set command.

Step 3. Apply the route map.

Define the Route Map

route-map map-tag [ permit | deny ] [ sequence-number ]

Route Map Rules

Route map sequence numbers do not automatically increment. When the sequence-number parameter of the route-map command is not used, the following occurs:

Like an access list, an implicit deny any appears at the end of a route map. The consequences of this deny depend on how the route map is being used.

The match condition route map configuration commands are used to define the conditions to be checked. The set condition route map configuration commands are used to define the actions to be followed if there is a match and the action to be taken is permit.

A route-map statement without any match statements will be considered matched.

Demonstration of the route-map Command

Define the Matching Conditions

Define the Set Actions

Using Route Maps with Redistribution

Manipulating Redistribution Using Route Maps

Mutual Redistribution Without Filters

Verifying Redistributed Routes

Manipulating Redistribution Using Route Maps

Mutual Redistribution with Route Maps

Verifying Redistributed Routes

Change Administrative Distance to Enable Optimal Routing

Examine R1 Routing Table

Changing External Route Administrative Distance

Manipulating Redistribution Using Route Tagging

Caveats of Redistribution

Redistribution of routing information adds to the complexity of a network and increases the potential for routing confusion, so you should use it only when necessary.

The key issues that arise when you are using redistribution are as follows:

Chapter 4 Summary

This chapter covered how to support multiple routing protocols by using redistribution and route filtering techniques, through discussion of the following topics:

To prevent routing issues, use one of the following options:

Configuration of redistribution between various IP routing protocols:

Using the show ip route [ ip*-address* ] and traceroute [ ip*-address* ] commands to verify route redistribution.

Distribute lists, allowing an access list to be applied to routing updates:

Prefix lists can be used with distribute lists as an alternative to ACLs, with improvements in performance, support for incremental modifications, a more userfriendly command-line interface, and greater flexibility. Prefix lists are configured with the ip prefix-list { list-name | list-number } [ seq seq*-value* ] { deny | permit } network / length [ ge ge*-value* ] [ le le-value ] global configuration command.

Whether a prefix in a prefix list is permitted or denied is based on the following rules:

Prefix list sequence numbers:

← All CCNP articles Home