Professional Documents
Culture Documents
En Route v7 Ch04
En Route v7 Ch04
Chapter 4:
Manipulating Routing
Updates
ROUTE v6 Chapter 4
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 1
Chapter 4 Topics
Using Multiple IP Routing Protocols on a Network
Summary
Chapter 4
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 2
Using Multiple IP Routing
Protocols on a Network
Chapter 4
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 3
Upon completing this section, you will be able to do the
following:
Describe the need for using more than one protocol in a network
Chapter 4
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 4
Why Run Multiple Routing Protocols?
It is desirable to run a single routing protocol throughout an entire
IP internetwork.
When the use of a new protocol is desired, but the old routing protocol is
needed.
Chapter 4
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 6
Running Multiple Routing Protocols
If a router receives these routing updates (from three different sources),
which one(s) will be installed in the routing table?
If a packet arrives on a router interface destined for 192.168.32.1, which route would
the router choose?
10.1.1.1
If a packet arrives on a router interface destined for 192.168.32.100, which route would
the router choose?
10.1.1.2
Chapter 4
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 7
Administrative Distance (AD)
Is used to rate a routing protocols believability (also called its
trustworthiness).
Chapter
4
Multiple Routing Protocols Solutions
Careful routing protocol design and traffic optimization
solutions should be implemented when supporting complex
multiprotocol networks.
Chapter 4
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 9
Implementing Route
Redistribution
Chapter 4
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 10
Upon completing this section, you will be able to do the
following:
Chapter 4
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 11
Defining Route Redistribution
Chapter 4
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 12
Planning to Redistribute Routes
Network administrators must manage the migration from
one routing protocol to another, or to multiple protocols,
carefully and thoughtfully, or routing loops can occur.
This means that the router doing redistribution does not change
its own routing table.
Chapter 4
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 14
Seed Metrics
Because redistributed routes are learned from other sources a boundary
router must be capable of translating the metric of the received route
from the source routing protocol into the receiving routing protocol.
After the seed metric for a redistributed route is established, the metric
increments normally within the autonomous system. (Except OE2).
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.
Chapter 4
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 15
Default Seed Metrics
Chapter 4
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 16
Configuring and Verifying Basic Redistribution
in IPv4 and IPv6
Chapter 4
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 17
Redistributing OSPFv2 Routes into the EIGRP
Routing Domain
To redistribute routes from one routing domain into another routing
domain, use the redistribute router configuration command.
Chapter 4
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 18
Redistributing OSPFv2 Routes into the EIGRP
Routing Domain
Chapter 4
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 19
Redistributing OSPFv2 Routes into the EIGRP
Routing Domain
Chapter 4
20
Redistributing OSPFv3 Routes into the EIGRP
for IPv6 Routing Domain
Chapter 4
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 21
Redistributing OSPFv3 Routes into the EIGRP
for IPv6 Routing Domain
Chapter 4
22
Redistributing OSPFv3 Routes into the EIGRP
for IPv6 Routing Domain
Chapter 4
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 23
Redistributing OSPFv3 Routes into the EIGRP
for IPv6 Routing Domain
Chapter 4
24
Redistributing EIGRP Routes into the OSPFv2
Routing Domain
To configure redistribution into OSPF, use the following
command syntax:
Chapter 4
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 25
Redistributing EIGRP Routes into the OSPFv2
Routing Domain
Chapter 4
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 26
Redistributing EIGRP Routes into the OSPFv2
Routing Domain
Chapter 4
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 27
Redistributing EIGRP Routes into the OSPFv2
Routing Domain
External link-state advertisements (LSAs) appear in the routing
table and are marked as external type 1 (E1) or external type 2
(E2) routes.
E1: Type O E1 external routes calculate the cost by adding the external
cost to the internal cost of each link that the packet crosses.
Use this type when there are multiple ASBRs advertising an external route to
the same autonomous system.
Chapter 4
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 28
Redistributing EIGRP Routes into the OSPFv2
Routing Domain
Chapter 4
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 29
Redistributing EIGRP for IPv6 Routes into the
OSPFv3 Routing Domain
Chapter 4
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 30
Redistributing EIGRP for IPv6 Routes into the
OSPFv3 Routing Domain
Chapter
4
Types of Redistribution Techniques
One-Point Redistribution:
One way
Two way
Multipoint Redistribution:
One way
Two way
Chapter 4
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 32
One-Point Redistribution (One way)
This method only redistributes the networks learned from one routing
protocol into the other routing protocol.
Typically, AS1 routers would require the use of a default route or one or
more static routes to reach AS2 routes.
Chapter 4
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 33
One-Point Redistribution (Two way)
One-point redistribution represents the only exit and entrance from one
routing protocol to another.
Chapter 4
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 34
Multipoint Redistribution (One way)
The boundary routers R3 and R4 are both redistributing AS1 routes into
the AS2 routing domain.
Again, AS1 routers would require the use of a default route or one or
more static routes to reach AS2 routes.
Chapter 4
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 35
Multipoint Redistribution (Two way)
Chapter 4
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 36
Redistribution Problems
Problems that can occur during multipoint two-way
redistribution include the following:
If metric is lost, R1
might choose R2 to
reach R4
Chapter 4
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 37
Redistribution Problems
Metric = 7 / AD = 120
Metric = 6
Metric = 3 ?
Metric = 6
Metric = 4
Chapter 4
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 38
Preventing Routing Loops in a Redistribution
Environment
The safest way to perform redistribution is to redistribute routes in
only one direction, on only one boundary router within the
network.
Chapter 4
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 41
Upon completing this section, you will be able to do the
following:
Chapter 4
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 42
Why Filter Routes?
Chapter 4
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 43
Route Filtering Methods
Routing updates compete with user data for bandwidth and router
resources.
This can involve controlling routing update traffic using static and default
routes, and passive interfaces.
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.
Chapter 4
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 44
Using Distribute Lists
Classic ACLs do not affect traffic that is originated by the
router.
Chapter 4
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 46
Distribute List and ACL Example
Chapter 4 2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 48
Distribute List and ACL Example
Chapter 4
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 49
Using Prefix Lists
Traditionally, route filtering was accomplished using ACLs
with the distribute-list command.
Chapter 4
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 50
Prefix List Characteristics
The advantages of using prefix lists include the following:
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.
Chapter 4
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 51
Configuring Prefix Lists
Chapter 4
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 52
Distribute List and Prefix List Example
Chapter 4
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 54
Prefix List Examples
Chapter 4
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 55
Prefix List Examples
Chapter 4
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 56
Prefix List Examples
Chapter 4
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 58
Manipulating Redistribution Using ACLs, Prefix
Lists, and Distribute Lists
Chapter 4
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 59
Redistributing OSPFv2 Routes into the EIGRP
Routing Domain Using an ACL and Distribute List
Chapter 4
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 60
Redistributing OSPFv2 Routes into the EIGRP
Routing Domain Using an ACL and Distribute List
Chapter 4
61
Redistributing EIGRP Routes into the OSPF
Routing Domain Using a Prefix List and Distribute
List
R1 will be configured to specifically filter and only
redistribute all matching prefixes in the range of
172.16.0.0/16 to /24 into the OSPF routing domain.
Chapter 4
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 62
Redistributing EIGRP Routes into the OSPF
Routing Domain Using a Prefix List and Distribute
List
Chapter
4
Using Route Maps
Chapter 4
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 64
Understanding Route Maps
Route maps are complex access lists
One major difference between route maps and access lists is that
route maps can use the set commands to modify the packet or
route.
Chapter 4
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 65
Route Map Applications
Route filtering during redistribution
Although distribute lists can be used for this purpose, route maps offer
the added benefit of manipulating routing metrics through the use of
set commands.
BGP
Route maps are the primary tools for implementing BGP policy.
Chapter 4
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 66
Configuring Route Maps
Step 1. Define the route map using the route-map global
configuration command.
Chapter 4
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 67
Configuring Route Maps
A route map may be made up of multiple route-map statements (with
different sequence numbers).
If no other entry is already defined with the supplied route-map map-tag, an entry
is created, with the sequence-number set to 10.
If only one entry is already defined with the supplied route-map tag, The router
assumes you are editing the one entry that is already defined.
If more than one entry is already defined with the supplied route-map tag, an
error message is displayed, indicating that the sequence-number is required.
Chapter 4
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 70
Route Map Match and Set Statements
Command Description
match community Matches a BGP community
match interface Matches any routes that have the next hop out of one ofthe
interfaces specified
Matches any routes that have a destination networknumber
match ip address address that is permitted by a standard or extendedACL
Chapter 4
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 71
Route Map Match and Set Statements
Command Description
set as-path Modifies an AS path for BGProutes
set automatic-tag Computes automatically the tag value
set community Sets the BGP communities attribute
Indicates where to output packets that pass a match clause of a route
set default interface map for policy routing and have no explicit route to the destination
set interface Indicates where to output packets that pass a match clause of a route
map for policy routing
Indicates where to output packets that pass a match clause of a route
set ip default next-hop map for policy routing and for which the Cisco IOS software has no
explicit route to a destination
set ip next-hop Indicates where to output packets that pass a match clause of a route
map for policy routing
set level Indicates where to import routes for IS-IS and OSPF
Chapter 4
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 73
Using Route Maps with Redistribution
Chapter 4
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 74
Manipulating Redistribution Using Route Maps
Chapter 4 76
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public
Mutual Redistribution without Route Filtering
Chapter 4 2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 77
Mutual Redistribution with Route Maps
Chap
ter 4
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public
78
Mutual Redistribution with Route Maps
Chapte
r4
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public
79
Mutual Redistribution with Route Maps
Chapter 4
80
Change Administrative Distance to Enable Optimal
Routing
Chapter 4 1
Change Administrative Distance to Enable Optimal
Routing
Chapter 4
Change Administrative Distance to Enable Optimal
Routing
Chap
ter 4
Change Administrative Distance to Enable Optimal
Routing
Chapter 4
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 84
Manipulating Redistribution Using Route
Tagging
Chapter 4
85
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:
Routing loops
Incompatible routing information (suboptimal routing)
Inconsistent convergence time
Chapter 4
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 86
Chapter 4
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 87
Summary
Chapter 4
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 88
Summary
Chapter 4
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 89
Additional resources
http://www.cisco.com/c/en/us/support/docs/ip/enhanced-
interior-gateway-routing-protocol-eigrp/8651-21.html
http://www.ciscopress.com/articles/article.asp?p=2273507
http://network-101.blogspot.com/2011/09/changing-ad-in-
ospf.html
Chapter 4
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 90
Chapter 4
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 91