1. Trang chủ
  2. » Công Nghệ Thông Tin

Tài liệu giảng dạy CCNA - module 03 chapter 12-OSPF and EIGRP Concepts and Configuration

95 1,2K 0

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

THÔNG TIN TÀI LIỆU

Thông tin cơ bản

Định dạng
Số trang 95
Dung lượng 1,41 MB

Nội dung

 Compare and contrast link-state routing with distance vector routing  Explain how link-state routing information is maintained  Discuss the link-state routing algorithm  Enable OSPF

Trang 1

Module 03 Routing Protocol

Chapter 11 OSPF and EIGRP Concepts and Configuration

Trang 2

 Compare and contrast link-state routing with distance

vector routing

 Explain how link-state routing information is maintained

 Discuss the link-state routing algorithm

 Enable OSPF on a router

 Configure a loopback address to set router priority

 Change OSPF route preference by modifying the cost metric

Trang 3

 Describe the differences between EIGRP and IGRP

 Describe the key concepts, technologies, and data

structures of EIGRP

 Understand EIGRP convergence and the basic operation of

the Diffusing Update Algorithm (DUAL)

 Perform a basic EIGRP configuration

 Configure EIGRP route summarization

 Describe the processes used by EIGRP to build and

maintain routing tables

 Verify EIGRP operations

Trang 4

LINK-STATE ROUTING PROTOCOL

Trang 5

Overview of link-state routing

Distance

vector RIP v1 and RIP v2

Interrior Gateway Routing Protocol (IGRP)

 Copies routing table to neighbors

 Susceptible to routing loops

 Easy to configure and administrate

 Consumes a lot of bandwidth

Trang 6

Overview of link-state routing

Link-state Open Shortest

Path First (OSPF)

system to Intermediate- system (IS-IS)

Intermediate- Use shortest path

 Updates are event triggered

 Fast to converge

 Send link-state packets to all network routers

 Has common view of network

 Not as susceptible to routing loops

 Harder to configure

 Requires more memory and processing power than distance vector

 Consumes less bandwidth than distance vector

Trang 7

Link-state routing protocol features

 Uses the hello information and Link-state advertisements

(LSAs) it receives from other routers to build a database

about the network

 A topological database

 Uses the shortest path first (SPF) algorithm (Dijkstra

algorithm) to calculate the shortest route to each network

 The resulting SPF tree

 Stores this route information in its routing table

Trang 8

How routing information is

 Then forward the LSA to all neighboring devices

 Recalculate their routing tables

Trang 9

Link-state routing algorithms

 They are known collectively as shortest path first (SPF)

Trang 10

SINGLE AREA OSPF CONCEPTS

Trang 11

OSPF overview

 Open Shortest Path First (OSPF) is a link-state routing

protocol based on open standards

 The most recent description is RFC 2328 The Open in OSPF means that it is open to the public and is non-proprietary

Trang 12

OSPF terminology

Trang 13

OSPF terminology: Links

Token Ring

Links

 An interface on Router

Trang 14

OSPF terminology: Link state

 The status of a link between two routers

Neighbors

Token Ring

Links

Trang 15

OSPF terminology: Area

 A collection of networks and routers that have the same area

identification.

 Each router within an area has the same link-state information.

 A router within an area is an “internal” router.

Token Ring

Area 1

Area 0

Trang 16

OSPF Areas—Example

Area 0

Area 2

Area 3

Trang 17

OSPF terminology: Link Cost

 The value assigned to a link Rather than hops, link-state

protocols assign a cost to a link that is based on the speed

of the media

 Interface Output Cost

Neighbors

Token Ring

Interfaces

Cost = 10

Cost = 6

Cost = 1785

Trang 18

OSPF terminology: Adjacency

database

 A listing of all the neighbors to which a router has

established bi-directional communication Not every pair of

neighboring routers become adjacent

Neighbors

Token Ring

Trang 19

OSPF terminology: Link-state

database

 Also known as a topological database.

 A list of link-state entries of all other routers in the internetwork.

Token Ring

Topological Database Adjacency

database

Trang 20

OSPF terminology: Routing table

 The routing table (also known as forwarding database) generated

when an algorithm is run on the link-state database

 Each router’s routing table is unique

Token Ring

Trang 21

OSPF terminology: DR and BDR

router

 Designated router (DR) and backup designated router (BDR):

 A router that is elected by all other routers on the same LAN

to represent all the routers.

 Each network has a DR and BDR.

Token Ring

DR

BDR

Trang 22

Shortest path algorithm

C

D

Trang 23

OSPF network types

Trang 24

OSPF network types: Fourth type

Trang 25

OSPF Hello Protocol

 The rules that govern the exchange of OSPF hello packets are

called the Hello protocol.

 Hello packets use : 224.0.0.5 (all routers).

 Hello packets are sent at regular intervals (default):

 Multi access and Point-to-point: 10s

 NBMA : 30s

 On multi-access networks the Hello protocol elects a

designated router (DR) and a backup designated router (BDR).

 The hello packet carries information that all neighbors must

agree upon before an adjacency is formed, and link-state

information is exchanged.

Trang 26

OSPF packet header

• For the hello packet the type field is set to 1.

Trang 27

OSPF Hello Protocol - Hello header

Trang 28

Steps in the operation of OSPF

5 steps of operation:

1 Establish router adjacencies

2 Elect a DR and BDR (if necessary)

3 Discover routes

4 Select the appropriate routes to use

5 Maintain routing information

Trang 29

Step 1: Establish router adjacencies

 First step in OSPF operation is to establish router

adjacencies

 RTB sends hello packets, advertising its own router ID 

highest IP address:10.6.0.1(no loopback)

Trang 30

Step 1: Establish router adjacencies

(cont.)

Step 1: Establish router adjacencies

(cont.)

Router ID Hello/dead intervals Neighbors

Area-ID Router priority

DR IP address BDR IP address Authentication password

Hello

A

C B

Trang 31

Step 2: Electing the DR and BDR (if

• The router with the highest priority value is the DR.

• The router with the second highest priority value is the BDR

• The default for the interface OSPF priority is 1 In

Trang 32

Step 3: Discover routes

 On difference network have differ discover process.

On multi-access network, the exchange of routing

information occurs between the DR or BDR and every

other router on the network

Trang 33

Exchange Process

Router B Neighbors List 172.16.5.1/24, int E1

Router B Neighbors List 172.16.5.1/24, int E1

172.16.5.1/24 E0

I am router ID 172.16.5.2, and I see 172.16.5.1.

Router A Neighbors List

Trang 34

Step 3: Discover routes (cont.)

I will start exchange because I have router ID 172.16.5.1.

DBD

afadjfjorqpoeru 39547439070713

Here is a summary of my link-state database.

E0

172.16.5.1

DR

E0 172.16.5.3

No, I will start exchange because I have a

higher router ID.

Exstart State

Exchange State

Trang 35

Step 3: Discover routes (cont.)

I need the complete entry for network 172.16.6.0/24.

Here is the entry for network 172.16.6.0/24.

Thanks for the information!

Loading State

E0

172.16.5.1

E0 172.16.5.3

DR

Trang 36

Step 4: Choosing Routes

Topology Table

Net Cost Out Interface

Token Ring

Trang 37

Step 5: Maintaining Routing

Trang 38

Step 5: Maintaining Routing

Information

 Router A tells all OSPF DRs on 224.0.0.6

 DR tells all others on 224.0.0.5

Trang 39

 Router A tells all OSPF DRs on 224.0.0.6

 DR tells all others on 224.0.0.5

Trang 40

Step 5: Maintaining Routing

Trang 41

Step 5: Maintaining Routing Information

Yes

Is seq # the same?

Yes

Ignore LSA

Is entry in link-state database?

LSA

LSU

No

Run SPF to calculate new routing table

source

Is seq # higher?

No

Trang 42

OSPF Operation in a Point-to-Point

 Point-to-Point Neighborship

 Router dynamically detects its neighboring router

using the Hello protocol

 No election: Adjacency is automatic as soon as the

two routers can communicate

Trang 43

OSPF Operation in an NBMA

 NBMA Topology

 Single interface interconnects multiple sites

 NBMA topologies support multiple routers but

without broadcasting capabilities

X.25

Frame Relay ATM

Trang 44

SINGLE AREA OSPF Configuration

Trang 45

<Output Omitted>

interface Ethernet0

ip address 10.64.0.2 255.255.255.0

! interface Serial0

Basic OSPF Configuration

Basic OSPF Configuration

E0 10.64.0.1

10.64.0.2

E0

S0 10.2.1.2 10 2.1.1

S1

network 10.0.0.0 0.255.255.255 area 0 router ospf 50

network 10.2.1.2 0.0.0.0 area 0 network 10.64.0.2 0.0.0.0 area 0

Trang 46

Configuring OSPF loopback address

 Router ID:

 Number by which the router is known to OSPF

 Default: The highest IP address on an active interface at the

moment of OSPF process startup

 Can be overridden by a loopback interface: Highest IP address of any active loopback interface

! Create the loopback 0 interface

Trang 47

Configuring OSPF router priority

The router with the highest priority value is the DR

The default for the interface OSPF priority is 1 In case of a

tie, the router’s router ID is used

! Setting OSPF Priority

Router(configf)#Interface Fastethernet 0/0

Router(configf-if)#ip ospf priority 50

! Setting OSPF Priority

Router(configf)#Interface Fastethernet 0/0

Router(configf-if)#ip ospf priority 50

The priorities can be set to any value from 0 to 255

The command show ip ospf interface will display the interface

priority value as well as other key information

Trang 48

Modifying OSPF cost metric

 Cost is calculated using the formula 108/bandwidth, where

bandwidth is expressed in bps

 Bandwidth dividend is user configurable:

 Interface subcommand: bandwidth 64

Trang 49

Configuring OSPF authentication

! Create a key that is used to generate the authentication data

! in the OSPF packet header

Router(config-if)#ip ospf authentication-key password

! Create a key that is used to generate the authentication data

! in the OSPF packet header

Router(config-if)#ip ospf authentication-key password

! After the password is configured, authentication must be enabled:

Router(config-router)#area area-number authentication

! After the password is configured, authentication must be enabled:

Router(config-router)#area area-number authentication

The authentication key, known as a password, is a

shared secret between the routers

The password can be up to eight characters

The password is sent as plain text.

Trang 50

Configuring OSPF authentication:

with MD5

! Specifies the type of message-digest hashing algorithm to use

! and key value

Router(config-if)#ip ospf message-digest-key key-id md5 encryption-type key

! Specifies the type of message-digest hashing algorithm to use

! and key value

Router(config-if)#ip ospf message-digest-key key-id md5 encryption-type key

The value of encryption-type field is 0 means none

and 7 means proprietary.

The key-id is an identifier (1 to 255)

The key is an alphanumeric password up to sixteen

characters

Neighbor routers must use the same key identifier

with the same key value.

Trang 51

Configuring OSPF timers

! To configure the hello and dead intervals on an interface

Router(config-if)#ip ospf hello-interval seconds

Router(config-if)#ip ospf dead-interval seconds

! To configure the hello and dead intervals on an interface

Router(config-if)#ip ospf hello-interval seconds

Router(config-if)#ip ospf dead-interval seconds

• Hello interval is 10 seconds

• Dead interval is 40 seconds.

• Hello interval is 30 seconds

• Dead interval is 120 seconds

• These timers must be configured to match those of

any neighboring router

Trang 52

OSPF, propagating a default route

!Configure a gateway of last resort

Router(config)#ip route 0.0.0.0 0.0.0.0 [interface | next-hop address]

!Configure a gateway of last resort

Router(config)#ip route 0.0.0.0 0.0.0.0 [interface | next-hop address]

Trang 53

Common OSPF configuration issues

 Failure to establish a neighbor relationship is caused by any of the

following reasons:

 Hellos are not sent from both neighbors

 Hello and dead interval timers are not the same

 Interfaces are on different network types

 Authentication passwords or keys are different

 In OSPF routing it is also important to ensure the following:

 All interfaces have the correct addresses and subnet mask

network area statements put interfaces into the correct area

Trang 54

show ip ospf interface

Verifying OSPF Operation

Trang 55

Displays OSPF timers and statistics

Displays information about DR, BDR and neighbors

Displays the link-state database

Verifying OSPF Operation (cont.)

Trang 56

Allows you to clear the IP routing table

Router#

clear ip route *

Router#

debug ip ospf option

Displays router interaction during the hello,

Verifying OSPF Operation (cont.)

Trang 57

show ip ospf interface

R2#sh ip ospf int e0

Ethernet0 is up, line protocol is up

Internet Address 192.168.0.12/24, Area 0

Process ID 1, Router ID 192.168.0.12, Network Type

BROADCAST, Cost: 10

Transmit Delay is 1 sec, State DROTHER, Priority 1

Designated Router (ID) 192.168.0.11, Interface address

Neighbor Count is 3, Adjacent neighbor count is 2

Adjacent with neighbor 192.168.0.13 (Backup Designated Router)

Trang 58

show ip ospf neighbor

Neighbor ID Pri State Dead Time Address Interface

192.168.0.13 1 2WAY/DROTHER 00:00:31 192.168.0.13 Ethernet0

192.168.0.14 1 FULL/BDR 00:00:38 192.168.0.14 Ethernet0

192.168.0.11 1 2WAY/DROTHER 00:00:36 192.168.0.11 Ethernet0

192.168.0.12 1 FULL/DR 00:00:38 192.168.0.12 Ethernet0

OSPF over Ethernet - Multiaccess Network

Neighbor ID Pri State Dead Time Address Interface

192.168.0.11 1 FULL/ - 00:00:39 10.1.1.2 Serial1

Trang 59

R2#show ip ospf database

OSPF Router with ID (192.168.0.12) (Process ID 1)

Router Link States (Area 0)

Link ID ADV Router Age Seq# Checksum Link count 192.168.0.10 192.168.0.10 817 0x80000003 0xFF56 1 192.168.0.11 192.168.0.11 817 0x80000003 0xFD55 1 192.168.0.12 192.168.0.12 816 0x80000003 0xFB54 1 192.168.0.13 192.168.0.13 816 0x80000003 0xF953 1 192.168.0.14 192.168.0.14 817 0x80000003 0xD990 1 Net Link States (Area 0)

Link ID ADV Router Age Seq# Checksum

192.168.0.14 192.168.0.14 812 0x80000002 0x4AC8

show ip ospf database

Trang 60

EIGRP CONCEPTS

Trang 61

EIGRP Overview

 Cisco released EIGRP in 1994 as a scalable, improved version

of its proprietary distance vector routing protocol, IGRP

 Unlike IGRP, which is a classful routing protocol, EIGRP

supports CIDR and VLSM

 Hybrid routing protocol

 Fast convergence times

 Multiple network-layer protocols supported

 Reduced bandwidth usage

 Easy to configure…

Trang 62

EIGRP and IGRP compatibility

 Default: k1 = 1, k2 = 0, k3 = 1, k4 = 0, k5 = 0

 Metric = Bandwidth + Delay

 EIGRP scales IGRP's metric by a factor of 256 Because EIGRP uses a metric that is 32 bits long (IGRP 24-bit):

 Bandwidth for IGRP = (10.000.000 / bandwidth)

 Bandwidth for EIGRP = (10.000.000 / bandwidth)*256

 Delay for IGRP = (delay/10)

k1x BW + k2x BW

256 – Load + k3x Delay

Metric =

Trang 63

EIGRP and IGRP compatibility

• EIGRP and IGRP automatically redistribute routes

between autonomous systems with same

autonomous system (AS) number

RTB

Trang 64

Topology Table—AppleTalk Destination 1 Next Router 1/Cost Destination 1 Next Router 1/Cost Topology Table—IPX Destination 1 Next Router 1/Cost Destination 1 Next Router 1/Cost Topology Table—IP Destination 1 Successor Destination 1 Feasible Successor Routing Table—AppleTalk

Destination Next Hop

Router Neighbor Table—IP Next-Hop Interface

Router

EIGRP concepts and terminology

Trang 65

Network Z

EIGRP Successors and Feasible

successor

RTA RTB

I have a route

to Z, with a metric of 5

RTB is successor to Net Z

Trang 66

Network Z

EIGRP Successors and Feasible

successor

RTA RTB

RTB is successor to Net Z RTC is successor to Net Z

Ngày đăng: 12/08/2015, 09:20

TỪ KHÓA LIÊN QUAN

w