+ All Categories
Home > Documents > © 2002, Cisco Systems, Inc. All rights reserved. 1 Determining IP Routes.

© 2002, Cisco Systems, Inc. All rights reserved. 1 Determining IP Routes.

Date post: 20-Jan-2016
Category:
Upload: hannah-conley
View: 219 times
Download: 2 times
Share this document with a friend
39
© 2002, Cisco Systems, Inc. All rights reserved. 1 Determining IP Routes
Transcript
Page 1: © 2002, Cisco Systems, Inc. All rights reserved. 1 Determining IP Routes.

© 2002, Cisco Systems, Inc. All rights reserved. 1

Determining IP Routes

Page 2: © 2002, Cisco Systems, Inc. All rights reserved. 1 Determining IP Routes.

© 2002, Cisco Systems, Inc. All rights reserved. ICND v2.0—5-2

Routed Versus Routing Protocol

• A routed protocol: – Includes any network protocol suite that provides

enough information in its network layer address to allow a router to forward it to the next device and ultimately to its destination.

– Defines the format and use of the fields within a packet.

• A routing protocol: – Provides processes for sharing route information.

– Allows routers to communicate with other routers to update and maintain the routing tables.

Page 3: © 2002, Cisco Systems, Inc. All rights reserved. 1 Determining IP Routes.

© 2002, Cisco Systems, Inc. All rights reserved. ICND v2.0—5-3

IP as a Routed Protocol

• IP is a connectionless, unreliable, best-effort delivery protocol.

• As information flows down the layers of the OSI model; the data is processed at each layer.

• IP accepts whatever data is passed down to it from the upper layers.

Page 4: © 2002, Cisco Systems, Inc. All rights reserved. 1 Determining IP Routes.

© 2002, Cisco Systems, Inc. All rights reserved. ICND v2.0—5-4

Packet Propagation and Switching Within a Router

Page 5: © 2002, Cisco Systems, Inc. All rights reserved. 1 Determining IP Routes.

© 2002, Cisco Systems, Inc. All rights reserved. ICND v2.0—5-5

Packet Propagation and Switching Within a Router

• As a frame is received at a router interface. • The MAC address is checked to see if the

frame is directly addressed to the router interface, or a broadcast.

• The frame header and trailer are removed and the packet is passed up to Layer 3.

• The destination IP address is compared to the routing table to find a match.

• The packet is switched to the outgoing interface and given the proper frame header.

• The frame is then transmitted.

Page 6: © 2002, Cisco Systems, Inc. All rights reserved. 1 Determining IP Routes.

© 2002, Cisco Systems, Inc. All rights reserved. ICND v2.0—5-6

To route, a router needs to do the following:• Know the destination address

• Identify the sources it can learn from

• Discover possible routes

• Select the best route

• Maintain and verify routing information

What Is Routing?

Page 7: © 2002, Cisco Systems, Inc. All rights reserved. 1 Determining IP Routes.

© 2002, Cisco Systems, Inc. All rights reserved. ICND v2.0—5-7

• Routers must learn destinations that are not directly connected.

What Is Routing? (Cont.)

Page 8: © 2002, Cisco Systems, Inc. All rights reserved. 1 Determining IP Routes.

© 2002, Cisco Systems, Inc. All rights reserved. ICND v2.0—5-8

Static Route• Uses a route that a

network administrator enters into the router manually

Dynamic Route• Uses a route that a

network routing protocol adjusts automatically for topology or traffic changes

Identifying Static and Dynamic Routes

Page 9: © 2002, Cisco Systems, Inc. All rights reserved. 1 Determining IP Routes.

© 2002, Cisco Systems, Inc. All rights reserved. ICND v2.0—5-9

Static Routes

• Configure unidirectional static routes to and from a stub network to allow communications to occur.

Page 10: © 2002, Cisco Systems, Inc. All rights reserved. 1 Determining IP Routes.

© 2002, Cisco Systems, Inc. All rights reserved. ICND v2.0—5-10

Static Route Example

• This is a unidirectional route. You must have a route configured in the opposite direction.

Page 11: © 2002, Cisco Systems, Inc. All rights reserved. 1 Determining IP Routes.

© 2002, Cisco Systems, Inc. All rights reserved. ICND v2.0—5-11

Default Routes

• This route allows the stub network to reach all known networks beyond router A.

Page 12: © 2002, Cisco Systems, Inc. All rights reserved. 1 Determining IP Routes.

© 2002, Cisco Systems, Inc. All rights reserved. ICND v2.0—5-12

Verifying the Static Route Configuration

router#show ip routeCodes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, * - candidate default U - per-user static route Gateway of last resort is 0.0.0.0 to network 0.0.0.0  10.0.0.0/8 is subnetted, 1 subnetsC 10.1.1.0 is directly connected, Serial0S* 0.0.0.0/0 is directly connected, Serial0

Page 13: © 2002, Cisco Systems, Inc. All rights reserved. 1 Determining IP Routes.

© 2002, Cisco Systems, Inc. All rights reserved. ICND v2.0—5-13

• Routing protocols are used between routers to determine paths and maintain routing tables.

• Once the path is determined, a router can route a routed protocol.

What Is a Routing Protocol?

Page 14: © 2002, Cisco Systems, Inc. All rights reserved. 1 Determining IP Routes.

© 2002, Cisco Systems, Inc. All rights reserved. ICND v2.0—5-14

Routers discover the best path to destinations from each neighbor.

Sources of Information and Discovering Routes

Page 15: © 2002, Cisco Systems, Inc. All rights reserved. 1 Determining IP Routes.

© 2002, Cisco Systems, Inc. All rights reserved. ICND v2.0—5-15

Classes of Routing Protocols

Page 16: © 2002, Cisco Systems, Inc. All rights reserved. 1 Determining IP Routes.

© 2002, Cisco Systems, Inc. All rights reserved. ICND v2.0—5-16

Distance Vector• RIPv1

• RIPv2

Link State• OSPF

• IS-IS

Hybrid Routing• EIGRP

Classes of Routing Protocols

Page 17: © 2002, Cisco Systems, Inc. All rights reserved. 1 Determining IP Routes.

© 2002, Cisco Systems, Inc. All rights reserved. ICND v2.0—5-17

Distance Vector Routing Protocols

Page 18: © 2002, Cisco Systems, Inc. All rights reserved. 1 Determining IP Routes.

© 2002, Cisco Systems, Inc. All rights reserved. ICND v2.0—5-18

• Routers pass periodic copies of routing table to neighbor routers and accumulate distance vectors.

Distance Vector Routing Protocols

Page 19: © 2002, Cisco Systems, Inc. All rights reserved. 1 Determining IP Routes.

© 2002, Cisco Systems, Inc. All rights reserved. ICND v2.0—5-19

• Maximum is 6 paths (default = 4)

• Hop-count metric selects the path

• Routes update every 30 seconds

RIP (Distance Vector Routing Protocol)

Page 20: © 2002, Cisco Systems, Inc. All rights reserved. 1 Determining IP Routes.

© 2002, Cisco Systems, Inc. All rights reserved. ICND v2.0—5-20

• Starts the RIP routing process

Router(config)#router rip

Router(config-router)#network network-number

• Selects participating attached networks

• Requires a major classful network number

RIP Configuration

Page 21: © 2002, Cisco Systems, Inc. All rights reserved. 1 Determining IP Routes.

© 2002, Cisco Systems, Inc. All rights reserved. ICND v2.0—5-21

RIP Configuration Example

Page 22: © 2002, Cisco Systems, Inc. All rights reserved. 1 Determining IP Routes.

© 2002, Cisco Systems, Inc. All rights reserved. ICND v2.0—5-22

Displaying the IP Routing Table

Page 23: © 2002, Cisco Systems, Inc. All rights reserved. 1 Determining IP Routes.

© 2002, Cisco Systems, Inc. All rights reserved. ICND v2.0—5-23

RIPv2

• Distance vector protocol like RIP.

• Same AD, update timer and metric as RIP.

• But supports classless ip routing.

• Uses multicast address 224.0.0.9

Page 24: © 2002, Cisco Systems, Inc. All rights reserved. 1 Determining IP Routes.

© 2002, Cisco Systems, Inc. All rights reserved. ICND v2.0—5-24© 2002, Cisco Systems, Inc. All rights reserved. 24

Link-State Routing(OSPF)

Page 25: © 2002, Cisco Systems, Inc. All rights reserved. 1 Determining IP Routes.

© 2002, Cisco Systems, Inc. All rights reserved. ICND v2.0—5-25

• After initial flood, pass small event-triggered link-state updates to all other routers

Link-State Routing Protocols

Page 26: © 2002, Cisco Systems, Inc. All rights reserved. 1 Determining IP Routes.

© 2002, Cisco Systems, Inc. All rights reserved. ICND v2.0—5-26

Benefits of Link-State Routing

• Fast convergence: changes are reported immediately by the source affected.

Page 27: © 2002, Cisco Systems, Inc. All rights reserved. 1 Determining IP Routes.

© 2002, Cisco Systems, Inc. All rights reserved. ICND v2.0—5-27

OSPF as a Link-State Protocol

• OSPF propagates link-state advertisements rather than routing table updates.

• LSAs are flooded to all OSPF routers in the area.

• The OSPF link-state database is pieced together from the LSAs generated by the OSPF routers.

• OSPF uses the SPF algorithm to calculate the shortest path to a destination.

–Link = router interface

–State = description of an interface and its relationship to neighboring routers

Page 28: © 2002, Cisco Systems, Inc. All rights reserved. 1 Determining IP Routes.

© 2002, Cisco Systems, Inc. All rights reserved. ICND v2.0—5-28

OSPF Hierarchical Routing

• Consists of areas and autonomous systems

• Minimizes routing update traffic

Page 29: © 2002, Cisco Systems, Inc. All rights reserved. 1 Determining IP Routes.

© 2002, Cisco Systems, Inc. All rights reserved. ICND v2.0—5-29

Configuring Single Area OSPF

Router(config-router)#network address mask area area-id

• Assigns networks to a specific OSPF area

Router(config)#router ospf process-id

• Defines OSPF as the IP routing protocol

Page 30: © 2002, Cisco Systems, Inc. All rights reserved. 1 Determining IP Routes.

© 2002, Cisco Systems, Inc. All rights reserved. ICND v2.0—5-30

OSPF Configuration Example

Page 31: © 2002, Cisco Systems, Inc. All rights reserved. 1 Determining IP Routes.

© 2002, Cisco Systems, Inc. All rights reserved. ICND v2.0—5-31

Router#show ip ospf interface

Verifying the OSPF Configuration

• Displays area-ID and adjacency information

Router#show ip protocols

• Verifies that OSPF is configured

Router#show ip route

• Displays all the routes learned by the router

Router#show ip ospf neighbor

• Displays OSPF-neighbor information on a per-interface basis

Page 32: © 2002, Cisco Systems, Inc. All rights reserved. 1 Determining IP Routes.

© 2002, Cisco Systems, Inc. All rights reserved. ICND v2.0—5-32

Drawbacks to Link-State Routing Protocols

• Initial discovery may cause flooding.

• Memory- and processor-intensive.

Page 33: © 2002, Cisco Systems, Inc. All rights reserved. 1 Determining IP Routes.

© 2002, Cisco Systems, Inc. All rights reserved. ICND v2.0—5-33© 2002, Cisco Systems, Inc. All rights reserved. 33

Balanced Hybrid Routing( EIGRP)

Page 34: © 2002, Cisco Systems, Inc. All rights reserved. 1 Determining IP Routes.

© 2002, Cisco Systems, Inc. All rights reserved. ICND v2.0—5-34

• Shares attributes of both distance vector and link-state routing

Balanced Hybrid Routing

Page 35: © 2002, Cisco Systems, Inc. All rights reserved. 1 Determining IP Routes.

© 2002, Cisco Systems, Inc. All rights reserved. ICND v2.0—5-35

Introducing EIGRP

EIGRP FEATURES• Metric: Bandwidth, delay, load, reliability

• Event triggered updates

• Exchange updates like distance vector.

Page 36: © 2002, Cisco Systems, Inc. All rights reserved. 1 Determining IP Routes.

© 2002, Cisco Systems, Inc. All rights reserved. ICND v2.0—5-36

EIGRP Terminology

Page 37: © 2002, Cisco Systems, Inc. All rights reserved. 1 Determining IP Routes.

© 2002, Cisco Systems, Inc. All rights reserved. ICND v2.0—5-37

Configuring EIGRP

Router(config-router)#network network-number

• Selects participating attached networks

Router(config)#router eigrp autonomous-system

• Defines EIGRP as the IP routing protocol

Page 38: © 2002, Cisco Systems, Inc. All rights reserved. 1 Determining IP Routes.

© 2002, Cisco Systems, Inc. All rights reserved. ICND v2.0—5-38

EIGRP Configuration Example

Page 39: © 2002, Cisco Systems, Inc. All rights reserved. 1 Determining IP Routes.

© 2002, Cisco Systems, Inc. All rights reserved. ICND v2.0—5-39

Verifying the EIGRP Configuration

Router#show ip protocols

Router#show ip route eigrp

Router#show ip eigrp traffic

Router#show ip eigrp neighbors

Router#show ip eigrp topology

• Displays the neighbors discovered by IP EIGRP

• Displays the IP EIGRP topology table

• Displays the number of IP EIGRP packets sent and received

• Displays current EIGRP entries in the routing table

• Displays the parameters and current state of the active routing protocol process


Recommended