Presentation is loading. Please wait.

Presentation is loading. Please wait.

© 2000, Cisco Systems, Inc. 9-1 Optimizing Routing Update Operation Chapter 9.

Similar presentations


Presentation on theme: "© 2000, Cisco Systems, Inc. 9-1 Optimizing Routing Update Operation Chapter 9."— Presentation transcript:

1 © 2000, Cisco Systems, Inc. 9-1 Optimizing Routing Update Operation Chapter 9

2 © 2000, Cisco Systems, Inc. www.cisco.com BSCN v1.0—9-2 Objectives Upon completion of this chapter, you will be able to perform the following tasks: Select and configure the different ways to control route update traffic Configure route redistribution in a network that does not have redundant paths between dissimilar routing processes Configure route redistribution in a network that has redundant paths between dissimilar routing processes

3 © 2000, Cisco Systems, Inc. www.cisco.com BSCN v1.0—9-3 Objectives (cont.) Resolve path selection problems that result in a redistributed network Verify route redistribution Configure policy-based routing using route maps Given a set of network requirements, configure redistribution between different routing domains and verify proper operation (within described guidelines) of your routers Given a set of network requirements, configure policy-based routing within your pod and verify proper operation (within described guidelines) of your routers

4 © 2000, Cisco Systems, Inc. www.cisco.com 9-4 Redistribution Between Multiple Routing Protocols

5 © 2000, Cisco Systems, Inc. www.cisco.com BSCN v1.0—9-5 Interim during conversion Application-specific protocols –One size does not always fit all Political boundaries –Groups that do not work and play nicely with others Mismatch between devices –Multivendor interoperability –Host-based routers When Do You Use Multiple Routing Protocols?

6 © 2000, Cisco Systems, Inc. www.cisco.com BSCN v1.0—9-6 AS 200 IGRP 172.16.0.0 S0S1 AS 300 EIGRP 192.168.5.0 What Is Redistribution? A

7 © 2000, Cisco Systems, Inc. www.cisco.com BSCN v1.0—9-7 Routes are learned from another routing protocol when a router redistributes the information between the protocols IP Routing Table I192.168.5.0 I172.16.1.0 I172.16.2.0 I172.16.3.0 IP Routing Table D EX172.16.0.0 D192.168.5.8 D 192.168.5.16 D 192.168.5.24 S1 Advertises Routes from EIGRP to IGRP S0 Advertises Routes from IGRP to EIGRP AS 200 IGRP 172.16.0.0 S0S1 AS 300 EIGRP 192.168.5.0 What Is Redistribution? A B C Boundary Router

8 © 2000, Cisco Systems, Inc. www.cisco.com BSCN v1.0—9-8 Redistribution Implementation Considerations 172.16 RIP 172.16 EIGRP RIP 172.16.0.0 AS 300 EIGRP 172.16 RIP 172.16 EIGR P Routing feedback –Suboptimal path selection –Routing loops Incompatible routing information Inconsistent convergence time

9 © 2000, Cisco Systems, Inc. www.cisco.com BSCN v1.0—9-9 Different protocols use different metrics Metrics are difficult to compare algorithmically Therefore, need a selection process: 1—Which protocol do you believe the most? Use the administrative distance 2—Then decide which metric is the best Selecting the Best Route

10 © 2000, Cisco Systems, Inc. www.cisco.com BSCN v1.0—9-10 Which Protocol to Believe? Connected interface 0 Static route out an interface0 Static route to a next hop1 EIGRP summary route5 External BGP20 Internal EIGRP90 IGRP100 OSPF110 IS-IS 115 RIP v1, v2120 EGP140 External EIGRP170 Internal BGP200 Unknown255 Route SourceDefault Distance

11 © 2000, Cisco Systems, Inc. www.cisco.com BSCN v1.0—9-11 Seed Metric The first or seed metric for a route is derived from being directly connected to a router interface But redistributed routes are not physically connected –Use the default-metric command to establish the seed metric for the route –Once a compatible metric is established, the metric will increment just like any other route –Set default metric larger than the largest native metric

12 © 2000, Cisco Systems, Inc. www.cisco.com BSCN v1.0—9-12 Redistribution Supports All Protocols RtrA(config-router)#redistribute ? bgp Border Gateway Protocol (BGP) connected Connected egp Exterior Gateway Protocol (EGP) eigrp Enhanced Interior Gateway Routing Protocol (EIGRP) igrp Interior Gateway Routing Protocol (IGRP) isis ISO IS-IS iso-igrp IGRP for OSI networks mobile Mobile routes odr On Demand stub Routes ospf Open Shortest Path First (OSPF) rip Routing Information Protocol (RIP) static Static routes

13 © 2000, Cisco Systems, Inc. www.cisco.com BSCN v1.0—9-13 IPX RIP redistribution with EIGRP is enabled by default AppleTalk RTMP redistribution is enabled by default Redistribution of IGRP in the same autonomous system is automatic; manual if different autonomous system Other protocols require manual redistribution IPX EIGRP IPX AppleTalk IP AppleTalk IP Redistribution and EIGRP

14 © 2000, Cisco Systems, Inc. www.cisco.com 9-14 Configuring Redistribution

15 © 2000, Cisco Systems, Inc. www.cisco.com BSCN v1.0—9-15 Configuring Redistribution What do I need to determine before configuring redistribution? Identify the boundary routers where the protocols will run

16 © 2000, Cisco Systems, Inc. www.cisco.com BSCN v1.0—9-16 Configuring Redistribution Identify the boundary routers where the protocols will run Determine which protocol is the core and which is the edge What do I need to determine before configuring redistribution?

17 © 2000, Cisco Systems, Inc. www.cisco.com BSCN v1.0—9-17 Configuring Redistribution Identify the boundary routers where the protocols will run Determine which protocol is the core and which is the edge Determine the directions you want to redistribute the protocols What do I need to determine before configuring redistribution?

18 © 2000, Cisco Systems, Inc. www.cisco.com BSCN v1.0—9-18 Configuring Redistribution into OSPF RtrA(config-router)#router ospf 1 RtrA(config-router)#redistribute eigrp ? Autonomous system number RtrA(config-router)#redistribute eigrp 100 ? metric Metric for redistributed routes metric-type OSPF/IS-IS exterior metric type for redistributed routes route-map Route map reference subnets Consider subnets for redistribution into OSPF tag Set tag for routes redistributed into OSPF

19 © 2000, Cisco Systems, Inc. www.cisco.com BSCN v1.0—9-19 Configuring Redistribution into EIGRP RtrA(config-router)#router eigrp 100 RtrA(config-router)#redistribute ospf ? Process ID RtrA(config-router)#redistribute ospf 1 ? match Redistribution of OSPF routes metric Metric for redistributed routes route-map Route map reference

20 © 2000, Cisco Systems, Inc. www.cisco.com BSCN v1.0—9-20 Used for redistributing into OSPF, RIP, EGP, or BGP Configuring default-metric Router(config-router)#  default-metric bandwidth delay reliability loading mtu Router(config-router)#  default-metric number Used for redistributing into IGRP or EIGRP

21 © 2000, Cisco Systems, Inc. www.cisco.com BSCN v1.0—9-21 Configuring Redistribution Edge Protocol Core Protocol Redistribute Default or Static Redistribute and Change Administrative Distance Redistribute and Filter

22 © 2000, Cisco Systems, Inc. www.cisco.com BSCN v1.0—9-22 Router(config-router)# Prevents routing protocol updates from being generated on the interface passive-interface type number Using and Configuring passive-interface

23 © 2000, Cisco Systems, Inc. www.cisco.com BSCN v1.0—9-23 Router(config)# ip route prefix mask address [distance ] [tag tag] [permanent] Router(config)# ip route prefix mask interface [distance ] [tag tag] [permanent] Using and Configuring Static Routes Defines a path using an interface Use if you do not have a route to the next-hop address Automatically redistributed in some cases Defines a path using a next-hop address Use if you have a route to the defined address Requires redistribution

24 © 2000, Cisco Systems, Inc. www.cisco.com BSCN v1.0—9-24 router rip passive-interface Serial1 network 10.0.0.0 ! ip route 172.16.0.0 255.255.0.0 Serial1 p1r2#sh ip route Gateway of last resort is not set 10.0.0.0 255.255.255.0 is subnetted, 2 subnets C 10.1.3.0 is directly connected, Serial1 C 10.1.1.0 is directly connected, Serial0 S 172.16.0.0 is directly connected, Serial1 172.16.0.0 10.1.0.0 p2r2 p1r2 Static Route Example

25 © 2000, Cisco Systems, Inc. www.cisco.com BSCN v1.0—9-25 Using and Configuring default-network 172.31.0.0/24 10.1.0.0/24 p2r2 p1r3 10.64.0.1/24 10.64.0.2/24 p1r3#show ip route Gateway of last resort is 10.64.0.2 to network 0.0.0.0 10.0.0.0/8 is variably subnetted, 7 subnets, 2 masks R 10.2.3.0/24 [120/1] via 10.64.0.2, 00:00:05, Ethernet0 C 10.64.0.0/24 is directly connected, Ethernet0 R 172.31.0.0/16 [120/1] via 10.64.0.2, 00:00:16, Ethernet0 R* 0.0.0.0/0 [120/1] via 10.64.0.2, 00:00:05, Ethernet0 p2r2: router rip network 10.0.0.0 network 172.31.0.0 ! ip classless ip default-network 10.0.0.0

26 © 2000, Cisco Systems, Inc. www.cisco.com BSCN v1.0—9-26 Redistribution Example Using ip default-network P1R3 S0:10.1.1.2/24 S1:10.1.1.1/24 S1:10.1.3.1/24 S0:10.1.3.2/24 S0:10.1.2.1/24 S1:10.1.2.2/24 E0:172.6.31.5/24 E0:172.6.31.6/24 RIP S1:10.2.1.1/24 S0:10.2.2.1/24 S1:10.2.2.2/24 OSPF S0:10.2.1.2/24 S1:10.2.3.1/24S0:10.2.3.2/24 RIP P1R1 P1R2 P2R3 P2R1 P2R2

27 © 2000, Cisco Systems, Inc. www.cisco.com BSCN v1.0—9-27 Redistribution Example Using ip default-network (cont.) P1R3-Boundary Router P1R1-Internal interface Serial0 ip address 10.1.2.1 255.255.255.0 bandwidth 64 ! interface Serial1 ip address 10.1.1.1 255.255.255.0 clockrate 56000 ! ! router rip network 10.0.0.0 ! ip classless ! router ospf 200 redistribute rip metric 30 subnets network 172.6.31.5 0.0.0.0 area 0 ! router rip network 10.0.0.0 ! ip classless ip default-network 10.0.0.0 ! Must Be On All RIP/IGRP Routers if Want to Use Default Route to Get to Unknown Subnets of Directly Connected Networks Must Be Enabled for Subnets. Must Be Enabled for Subnets.

28 © 2000, Cisco Systems, Inc. www.cisco.com BSCN v1.0—9-28 Redistribution Example Using ip default-network (cont.) Boundary Router IP Routing Table P1R3#show ip route * 10.0.0.0/24 is subnetted, 6 subnets C 10.1.3.0 is directly connected, Serial0 O E2 10.2.1.0 [110/30] via 172.6.31.6, 00:44:56, Ethernet0 C 10.1.2.0 is directly connected, Serial1 R 10.1.1.0 [120/1] via 10.1.3.1, 00:00:05, Serial0 [120/1] via 10.1.2.1, 00:00:17, Serial1 O E2 10.2.2.0 [110/30] via 172.6.31.6, 00:44:56, Ethernet0 O E2 10.2.3.0 [110/30] via 172.6.31.6, 00:44:56, Ethernet0 172.6.0.0/24 is subnetted, 1 subnets C 172.6.31.0 is directly connected, Ethernet0 RIP OSPF P1R3

29 © 2000, Cisco Systems, Inc. www.cisco.com BSCN v1.0—9-29 Redistribution Example Using ip default-network (cont.) Internal Router IP Routing Table P1R1#show ip route 10.0.0.0/24 is subnetted, 3 subnets R 10.1.3.0 [120/1] via 10.1.1.2, 00:00:24, Serial1 [120/1] via 10.1.2.2, 00:00:10, Serial0 C 10.1.2.0 is directly connected, Serial0 C 10.1.1.0 is directly connected, Serial1 R* 0.0.0.0/0 [120/1] via 10.1.2.2, 00:00:10, Serial0 P1R1 RIP Router forwards packets destined to 10.2.0.0/24 networks using the default route

30 © 2000, Cisco Systems, Inc. www.cisco.com 9-30 Controlling Routing Update Traffic

31 © 2000, Cisco Systems, Inc. www.cisco.com BSCN v1.0—9-31 Redistribution Implementation Guidelines IGRP/OSPF IGRP OSPF Redistribute Default or Static IGRP OSPF Redistribute Redistribute and Filter or Change Administrative Distance

32 © 2000, Cisco Systems, Inc. www.cisco.com BSCN v1.0—9-32 Controlling Routing Update Traffic How can we prevent routing update traffic from crossing some of these links? 172.16.7.1 172.16.7.2 172.16.6.1 172.16.6.2 172.16.5.2 172.16.4.1 172.16.4.2 172.16.1.1 172.16.1.2 172.16.3.1 172.16.3.2 172.16.2.2 172.16.2.1 172.16.9.1 172.16.10.1 172.16.11.1 Trans R200 Cen R300 R100 Rem 172.16.12.1 64Kb T-1 T-1 Frame Relay 172.16.5.1 T-1 Frame Relay

33 © 2000, Cisco Systems, Inc. www.cisco.com BSCN v1.0—9-33 Using Route Filters Routing update

34 © 2000, Cisco Systems, Inc. www.cisco.com BSCN v1.0—9-34 Using Route Filters Determine interface Routing update

35 © 2000, Cisco Systems, Inc. www.cisco.com BSCN v1.0—9-35 Using Route Filters Is there a filter for this interface? Determine interface Routing update

36 © 2000, Cisco Systems, Inc. www.cisco.com BSCN v1.0—9-36 Using Route Filters Yes No Process packet normally End Is there an entry for this address? No Drop packet Is there a filter for this interface? Determine interface Routing update

37 © 2000, Cisco Systems, Inc. www.cisco.com BSCN v1.0—9-37 Using Route Filters Process entry according to filter configuration End Yes No Process packet normally End Is there an entry for this address? No Drop packet Is there a filter for this interface? Determine interface Routing update

38 © 2000, Cisco Systems, Inc. www.cisco.com BSCN v1.0—9-38 Use a standard access list to permit or deny routes Access list can be applied to transmitted (outbound) or received (inbound) routing updates Router(config-router)# distribute-list {access-list-number | name } out [interface-name | routing-process | autonomous-system number] Configuring Route Filtering Router(config-router)# distribute-list {access-list-number | name } in [type number] For Outbound Updates: For Inbound Updates:

39 © 2000, Cisco Systems, Inc. www.cisco.com BSCN v1.0—9-39 Hides network 10.0.0.0 using interface filtering IP Route Filtering Configuration Example S0 192.168.5.0 172.16.0.0 10.0.0.0 router eigrp 1 network 172.16.0.0 network 192.168.5.0 distribute-list 7 out s0 ! access-list 7 permit 172.16.0.0 0.0.255.255 A B

40 © 2000, Cisco Systems, Inc. www.cisco.com BSCN v1.0—9-40 D E IP Static Route Filtering Configuration Example ip route 10.0.0.0 255.0.0.0 192.168.7.9 ip route 172.16.0.0 255.255.0.0 192.168.7.5 ! router eigrp 1 network 192.168.7.0 default-metric 10000 100 255 1 1500 redistribute static distribute-list 3 out static ! access-list 3 permit 10.0.0.0 0.255.255.255 passive-interface s0 192.168.7.4 S0 192.168.7.8 B 10.0.0.0 172.16.0.0 passive-interface s0 192.168.7.12 192.168.7.16 S0 ABC D E

41 © 2000, Cisco Systems, Inc. www.cisco.com BSCN v1.0—9-41 Used for all protocols except EIGRP and BGP redistribution Used for EIGRP redistribution Modifying Administrative Distance Router(config-router)#  distance weight [address mask [access-list-number | name ]] [ ip ] Router(config-router)#  distance eigrp internal-distance external-distance

42 © 2000, Cisco Systems, Inc. www.cisco.com BSCN v1.0—9-42 Redistribution Example Using distance 172.16.7.1 172.16.7.2 172.16.6.1 172.16.6.2 172.16.5.2 172.16.5.1 172.16.4.1 172.16.4.2 172.16.1.1172.16.1.2 172.16.3.1 172.16.3.2 172.16.2.2 172.16.2.1 172.16.9.1 172.16.10.1 172.16.11.1 Trans R200 Cen Rem 172.16.12.1 64 kbps T1 T1 Frame Relay S0.1 S0.2 T1 Frame Relay R300 R100

43 © 2000, Cisco Systems, Inc. www.cisco.com BSCN v1.0—9-43 Redistribution Example Using distance (cont.) Administrative Distance Metric Cen#show ip route 172.16.0.0/24 is subnetted, 11 subnets I 172.16.9.0 [100/158813] via 172.16.1.1, 00:00:02, TokenRing1 I 172.16.10.0 [100/8976] via 172.16.5.2, 00:00:02, Serial0.1 I 172.16.11.0 [100/8976] via 172.16.4.2, 00:00:02, Serial0.2 C 172.16.4.0 is directly connected, Serial0.2 C 172.16.5.0 is directly connected, Serial0.1 I 172.16.6.0 [100/160250] via 172.16.5.2, 00:00:02, Serial0.1 I 172.16.3.0 [100/8539] via 172.16.2.2, 00:00:02, TokenRing0 [100/8539] via 172.16.1.1, 00:00:03, TokenRing1 Cen IGRP With Only IGRP Running Everywhere:

44 © 2000, Cisco Systems, Inc. www.cisco.com BSCN v1.0—9-44 172.16.7.1 172.16.7.2 172.16.6.1 172.16.6.2 172.16.5.2 172.16.5.1 172.16.4.1 172.16.4.2 172.16.1.1172.16.1.2 172.16.3.1 172.16.3.2 172.16.2.2 172.16.2.1 172.16.9.1 172.16.10.1 172.16.11.1 Trans R200 Cen Rem 172.16.12.1 64 kbps T1 T1 Frame Relay S0.1 S0.2 T1 Frame Relay R300 R100 IGRP RIP Redistribution Example Using distance (cont.)

45 © 2000, Cisco Systems, Inc. www.cisco.com BSCN v1.0—9-45 Redistribution Example Using distance (cont.) Router CenRouter R200 router rip redistribute igrp 1 passive-interface Serial0.2 passive-interface TokenRing0 passive-interface TokenRing1 network 172.16.0.0 default-metric 3 ! router igrp 1 redistribute rip passive-interface Serial0.1 network 172.16.0.0 default-metric 10 100 255 1 1500 router rip redistribute igrp 1 passive-interface Serial0 passive-interface TokenRing0 network 172.16.0.0 default-metric 3 ! router igrp 1 redistribute rip passive-interface Serial1 network 172.16.0.0 default-metric 10 100 255 1 1500

46 © 2000, Cisco Systems, Inc. www.cisco.com BSCN v1.0—9-46 Router Cen has RIP and IGRP routes Cen#show ip route 172.16.0.0/24 is subnetted, 11 subnets R 172.16.9.0 [120/2] via 172.16.5.2, 00:00:01, Serial0.1 R 172.16.10.0 [120/1] via 172.16.5.2, 00:00:02, Serial0.1 I 172.16.11.0 [100/8976] via 172.16.4.2, 00:00:02, Serial0.2 C 172.16.4.0 is directly connected, Serial0.2 C 172.16.5.0 is directly connected, Serial0.1 R 172.16.6.0 [120/1] via 172.16.5.2, 00:00:02, Serial0.1 I 172.16.3.0 [100/8539] via 172.16.2.2, 00:00:02, TokenRing0 [100/8539] via 172.16.1.1, 00:00:02, TokenRing1 IGRP With IGRP and RIP Running: RIP Cen Redistribution Example Using distance (cont.)

47 © 2000, Cisco Systems, Inc. www.cisco.com BSCN v1.0—9-47 Redistribution Example Using distance (cont.) 172.16.7.1 172.16.7.2 172.16.6.1 172.16.6.2 172.16.5.2 172.16.5.1 172.16.4.1 172.16.4.2 172.16.1.1172.16.1.2 172.16.3.1 172.16.3.2 172.16.2.2 172.16.2.1 172.16.9.1 172.16.10.1 172.16.11.1 Trans R200 Cen Rem 172.16.12.1 64 kbps T1 T1 Frame Relay S0.1 S0.2 T1 Frame Relay R300 R100 IGRP RIP

48 © 2000, Cisco Systems, Inc. www.cisco.com BSCN v1.0—9-48 R200#show ip route Gateway of last resort is not set 172.16.0.0/24 is subnetted, 11 subnets I 172.16.9.0 [100/1000163] via 172.16.1.2, 00:00:37, TokenRing0 I 172.16.10.0 [100/1000163] via 172.16.1.2, 00:00:37, TokenRing0 I 172.16.11.0 [100/9039] via 172.16.1.2, 00:00:37, TokenRing0 I 172.16.4.0 [100/8539] via 172.16.1.2, 00:00:37, TokenRing0 I 172.16.5.0 [100/8539] via 172.16.1.2, 00:00:37, TokenRing0 I 172.16.6.0 [100/1000163] via 172.16.1.2, 00:00:37, TokenRing0 C 172.16.3.0 is directly connected, Serial0 Redistribution Example Using distance (cont.) Router R200 includes suboptimal paths R200 RIPIGRP With IGRP and RIP Running:

49 © 2000, Cisco Systems, Inc. www.cisco.com BSCN v1.0—9-49 Redistribution Example Using distance (cont.) Router R200 router rip redistribute igrp 1 network 172.16.0.0 default-metric 3 ! router igrp 1 redistribute rip network 172.16.0.0 default-metric 10 100 255 1 1500 distance 130 0.0.0.0 255.255.255.255 1 ! access-list 1 permit 172.16.9.0 access-list 1 permit 172.16.10.0 access-list 1 permit 172.16.6.0 Router Cen router rip redistribute igrp 1 network 172.16.0.0 default-metric 3 ! router igrp 1 redistribute rip network 172.16.0.0 default-metric 10 100 255 1 1500 distance 130 0.0.0.0 255.255.255.255 1 ! access-list 1 permit 172.16.9.0 access-list 1 permit 172.16.10.0 access-list 1 permit 172.16.6.0

50 © 2000, Cisco Systems, Inc. www.cisco.com BSCN v1.0—9-50 Redistribution Example Using distance (cont.) Router R200 learns some RIP routes R200#show ip route 172.16.0.0/24 is subnetted, 11 subnets R 172.16.9.0 [120/1] via 172.16.7.1, 00:00:19, Serial1 R 172.16.10.0 [120/2] via 172.16.7.1, 00:00:19, Serial1 I 172.16.11.0 [100/9039] via 172.16.1.2, 00:00:49, TokenRing0 I 172.16.4.0 [100/8539] via 172.16.1.2, 00:00:49, TokenRing0 I 172.16.5.0 [100/8539] via 172.16.1.2, 00:00:49, TokenRing0 R 172.16.6.0 [120/1] via 172.16.7.1, 00:00:19, Serial1 C 172.16.3.0 is directly connected, Serial0 R200 RIPIGRP With IGRP and RIP Running and Filtering:

51 © 2000, Cisco Systems, Inc. www.cisco.com 9-51 Verifying Redistribution Operation

52 © 2000, Cisco Systems, Inc. www.cisco.com BSCN v1.0—9-52 Displays the contents of the IP routing table Traces the path a packet takes show ip route Router# Verifying Redistribution Operation traceroute Router#

53 © 2000, Cisco Systems, Inc. www.cisco.com 9-53 Written Exercise

54 © 2000, Cisco Systems, Inc. www.cisco.com 9-54 Policy-Based Routing Using Route Maps

55 © 2000, Cisco Systems, Inc. www.cisco.com BSCN v1.0—9-55 Route Maps Route maps are complex access lists: –Lines in access lists  statements in route maps –Access-list number  route-map name –Addresses and masks in access lists  match statements in route maps –Statements in route maps are numbered Can insert and delete statements in a route map Can edit match conditions in a statement –Route-map statement can modify matched route with set command

56 © 2000, Cisco Systems, Inc. www.cisco.com BSCN v1.0—9-56 Route Map Configuration Router(config)# route-map map-tag [permit | deny] [sequence-number] Defines the conditions for policy routing Router(config-route-map)# match {conditions} Router(config-route-map)# set {actions} Defines the conditions to match Defines the action to be taken on a match

57 © 2000, Cisco Systems, Inc. www.cisco.com BSCN v1.0—9-57 Route Map Explanation route-map demo permit 10 match x y z match a set b set c route-map demo permit 20 match q set r route-map demo permit 30

58 © 2000, Cisco Systems, Inc. www.cisco.com BSCN v1.0—9-58 Policy-Based Routing Allows you to implement policies that selectively cause packets to take different paths Can also mark traffic with different TOS Since Cisco IOS Release 11.0

59 © 2000, Cisco Systems, Inc. www.cisco.com BSCN v1.0—9-59 Policy-Based Routing Benefits Source-based transit provider selection –Different users go different ways Quality of service (QoS) –Set precedence or TOS, used with queuing Cost savings –Use high-cost links only when necessary Load sharing –Use multiple paths based on traffic characteristics

60 © 2000, Cisco Systems, Inc. www.cisco.com BSCN v1.0—9-60 Policies Applied to incoming packets Implemented using route maps –Matching routes modified by set commands –If match criteria met and route map specified permit Control routing as specified by the set action –If match criteria met and route map specified deny –Normal (destination based) routing –If all sequences in the list checked and no matches Normal (destination based) routing

61 © 2000, Cisco Systems, Inc. www.cisco.com BSCN v1.0—9-61 Policy Routing match Commands Router(config-route-map)# match ip address {access-list-number | name} [...access-list-number | name] Router(config-route-map)# match length min max Matches IP addresses for policy routing Matches Layer 3 length of packet for policy routing

62 © 2000, Cisco Systems, Inc. www.cisco.com BSCN v1.0—9-62 Policy Routing set Commands Router(config-route-map)# set interface type number [...type number] Defines interface to which output packets Router(config-route-map)# set ip next-hop ip-address [...ip-address] Defines next hop to which output packets

63 © 2000, Cisco Systems, Inc. www.cisco.com BSCN v1.0—9-63 Policy Routing set Commands(cont.) Router(config-route-map)# set default interface type number [...type number] Defines interface to output packets that have no explicit route to the destination Router(config-route-map)# set ip default next-hop ip-address [...ip-address] Defines next hop to output packets that have no explicit route to the destination

64 © 2000, Cisco Systems, Inc. www.cisco.com BSCN v1.0—9-64 Configuring Policy-Based Routing Router(config-if)#  ip policy route-map map-tag Specify a route map to use for policy routing on an interface Router(config-if)#  ip route-cache policy Enable fast-switched policy routing

65 © 2000, Cisco Systems, Inc. www.cisco.com BSCN v1.0—9-65 Policy-Based Routing Example S3:10.1.1.1 C A B 192.168.2.0 S1:172.17.1.1 S0:10.1.1.100 S1:172.17.1.2 S2:172.16.1.2 S0:172.16.1.1 192.168.1.0 Router A has a policy that packets from 192.168.2.1 go to Router C’s interface S1

66 © 2000, Cisco Systems, Inc. www.cisco.com BSCN v1.0—9-66 Policy-Based Routing Example (cont.) RouterA(config)# interface Serial2 RouterA(config-if)# ip address 172.16.1.2 255.255.255.0 RouterA(config-if)# ip policy route-map test RouterA(config)#route-map test permit 10 RouterA(config-route-map)#match ip address 1 RouterA(config-route-map)#set ip next-hop 172.17.1.2 RouterA(config-route-map)#exit RouterA(config)#access-list 1 permit 192.168.2.1 0.0.0.0

67 © 2000, Cisco Systems, Inc. www.cisco.com 9-67 Verifying Policy-Based Routing

68 © 2000, Cisco Systems, Inc. www.cisco.com BSCN v1.0—9-68 Verifying Policy-Based Routing Router#  show ip policy Displays route maps configured on interfaces Router#  show route-map [map-name] Displays a route map

69 © 2000, Cisco Systems, Inc. www.cisco.com BSCN v1.0—9-69 Verifying Policy-Based Routing (cont.) Router#  debug ip policy Enables display of IP policy routing events Router#  traceroute Extended traceroute allows specification of source address Router#  ping Extended ping allows specification of source address

70 © 2000, Cisco Systems, Inc. www.cisco.com BSCN v1.0—9-70 Verifying Policy-Based Routing Examples RouterA#show ip policy Interface Route map Serial2 test RouterA#show route-map route-map test, permit, sequence 10 Match clauses: ip address (access-lists): 1 Set clauses: ip next-hop 172.17.1.2 Policy routing matches: 3 packets, 168 bytes

71 © 2000, Cisco Systems, Inc. www.cisco.com BSCN v1.0—9-71 Verifying Policy-Based Routing Examples (cont.) RouterA#debug ip policy Policy routing debugging is on RouterA#show logging... 11:50:51: IP: s=172.16.1.1 (Serial2), d=192.168.1.1 (Serial3), len 100, policy rejected -- normal forwarding... 11:51:25: IP: s=192.168.2.1 (Serial2), d=192.168.1.1, len 100, policy match 11:51:25: IP: route map test, item 10, permit 11:51:25: IP: s=192.168.2.1 (Serial2), d=192.168.1.1 (Serial1), len 100, policyrouted 11:51:25: IP: Serial2 to Serial1 172.17.1.2

72 © 2000, Cisco Systems, Inc. www.cisco.com 9-72 Case Study

73 © 2000, Cisco Systems, Inc. www.cisco.com BSCN v1.0—9-73 RIP Domain, Metric = Hops 1 Public Class C Supports Unix W/S, Servers RIP Domain, Metric = Hops 1 Public Class C Supports Unix W/S, Servers OSPF Domain, Metric = Cost 1 Public Class C Supports Acquisition Policy OSPF Domain, Metric = Cost 1 Public Class C Supports Acquisition Policy Private Address Space Network 10.0.0.0 Private Address Space Network 10.0.0.0 T-3 Case Study—Redistribution JKL’s Acquisition A A’s New Acquisition To JKL 3 Fast Ethernet Ethernet Serial DFHG IGRP Domain, Metric = Composite 1 Private Class A Supports Regional Campus Topology IGRP Domain, Metric = Composite 1 Private Class A Supports Regional Campus Topology BCAE

74 © 2000, Cisco Systems, Inc. www.cisco.com 9-74 Lab Exercise

75 © 2000, Cisco Systems, Inc. www.cisco.com BSCN v1.0—9-75 Summary After completing this chapter, you should be able to perform the following tasks: Select and configure the different ways to control route update traffic Configure route redistribution in a network that does not have redundant paths between dissimilar routing processes Configure route redistribution in a network that has redundant paths between dissimilar routing processes

76 © 2000, Cisco Systems, Inc. www.cisco.com BSCN v1.0—9-76 Summary (cont.) Resolve path selection problems that result in a redistributed network Verify route redistribution Configure policy-based routing using route maps Given a set of network requirements, configure redistribution between different routing domains and verify proper operation (within described guidelines) of your routers Given a set of network requirements, configure policy-based routing within your pod and verify proper operation (within described guidelines) of your routers

77 © 2000, Cisco Systems, Inc. www.cisco.com BSCN v1.0—9-77 Review Questions 1. What is redistribution? 2. What is the default administrative distance for IGRP? For RIP? For OSPF? 3. When configuring a default metric for redistributed routes, the metric should be set to a value ________ than the largest metric within the AS. 4. What command is used for policy-based routing to establish criteria based on the packet length?

78 © 2000, Cisco Systems, Inc. www.cisco.com BSCN v1.0—9-78 Review Questions (cont.) 5. What command is used to configure filtering of the routing update traffic from an interface? What command mode is this command entered in? 6. What does the following command do? distance 150 0.0.0.0 255.255.255.255 3 7. What are the benefits of policy-based routing? 8. Policy-based routing is applied to ________ packets?


Download ppt "© 2000, Cisco Systems, Inc. 9-1 Optimizing Routing Update Operation Chapter 9."

Similar presentations


Ads by Google