cisco certified network associate ccna 640-802 routing protocols and concepts

95
© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public 1 Cisco Certified Network Associate CCNA 640-802 Routing Protocols and Concepts Asst.Prof. It-arun Pitimon [email protected]

Upload: belle

Post on 16-Feb-2016

70 views

Category:

Documents


0 download

DESCRIPTION

Cisco Certified Network Associate CCNA 640-802 Routing Protocols and Concepts. Asst.Prof . It-arun Pitimon [email protected]. Day 2. Agenda. Routing and Packet Forwarding Static Routing Dynamic Routing Protocol RIPv2 EIGRP OSPF. Routing and Packet Forwarding. - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: Cisco Certified Network Associate  CCNA 640-802 Routing Protocols and Concepts

© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public 1

Cisco Certified Network Associate CCNA 640-802Routing Protocols and Concepts

Asst.Prof. It-arun [email protected]

Page 2: Cisco Certified Network Associate  CCNA 640-802 Routing Protocols and Concepts

2© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public

DAY 2

Page 3: Cisco Certified Network Associate  CCNA 640-802 Routing Protocols and Concepts

3© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public

Agenda

Routing and Packet Forwarding Static Routing Dynamic Routing Protocol RIPv2 EIGRP OSPF

Page 4: Cisco Certified Network Associate  CCNA 640-802 Routing Protocols and Concepts

4© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public

ROUTING AND PACKET FORWARDING

Page 5: Cisco Certified Network Associate  CCNA 640-802 Routing Protocols and Concepts

5© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public

Router as a Computer Routers examine a packet’s destination IP address and

determine the best path by enlisting the aid of a routing table

Page 6: Cisco Certified Network Associate  CCNA 640-802 Routing Protocols and Concepts

6© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public

Router as a Computer Router components and their functions”

CPU - Executes operating system instructions Random access memory (RAM) - Contains the running copy of

configuration file. Stores routing table. RAM contents lost when power is off

Read-only memory (ROM) - Holds diagnostic software used when router is powered up. Stores the router’s bootstrap program.

Non-volatile RAM (NVRAM) - Stores startup configuration. This may include IP addresses (Routing protocol, Hostname of router)

Flash memory - Contains the operating system (Cisco IOS) Interfaces - There exist multiple physical interfaces that are used to

connect network. Examples of interface types:-Ethernet / fast Ethernet interfaces-Serial interfaces-Management interfaces

Page 7: Cisco Certified Network Associate  CCNA 640-802 Routing Protocols and Concepts

7© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public

Router as a Computer Major phases to the

router boot-up process Test router hardware

Power-On Self Test (POST)Execute bootstrap loader

Locate & load Cisco IOS software

-Locate IOS-Load IOS

Locate & load startup configuration file or enter setup mode

-Bootstrap program looks for configuration file

Page 8: Cisco Certified Network Associate  CCNA 640-802 Routing Protocols and Concepts

8© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public

Router as a Computer

Page 9: Cisco Certified Network Associate  CCNA 640-802 Routing Protocols and Concepts

9© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public

Router as a Computer Router Interface is a physical connector that enables a

router to send or receive packets Each interface connects to a separate network Consist of socket or jack found on the outside of a router Types of router interfaces:

-Ethernet-Fastethernet-Serial-DSL-ISDN-Cable

Page 10: Cisco Certified Network Associate  CCNA 640-802 Routing Protocols and Concepts

10© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public

Router as a Computer Routers Operate at Layers 1, 2 & 3

Page 11: Cisco Certified Network Associate  CCNA 640-802 Routing Protocols and Concepts

11© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public

Configure Devices and Apply Addresses Implementing Basic Addressing Schemes When designing a new network or mapping an existing

network you must provide the following information in the form of a document:

-Topology drawing that Illustrates physical connectivity– Address table that provides the following information:

Device name Interfaces used IP addresses Default gateway

Page 12: Cisco Certified Network Associate  CCNA 640-802 Routing Protocols and Concepts

12© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public

Routing Table Structure Routing Table is stored in ram and contains information

about: Directly connected networks - this occurs when a device is

connected to another router interface Remotely connected networks - this is a network that is not

directly connected to a particular router Detailed information about the networks include source of

information, network address & subnet mask, and Ip address of next-hop router

Show ip route command is used to view a routing table

Page 13: Cisco Certified Network Associate  CCNA 640-802 Routing Protocols and Concepts

13© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public

Routing Table Structure Adding a connected network to the routing table

-Router interfaces Each router interface is a member of a different network Activated using the no shutdown command In order for static and dynamic routes to exist in routing table

you must have directly connected networks

Page 14: Cisco Certified Network Associate  CCNA 640-802 Routing Protocols and Concepts

14© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public

Routing Table Structure Dynamic routing protocols

-Used to add remote networks to a routing table-Are used to discover networks-Are used to update and maintain routing tables

Automatic network discovery-Routers are able discover new networks by sharing routing table information

Page 15: Cisco Certified Network Associate  CCNA 640-802 Routing Protocols and Concepts

15© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public

Routing Table Structure Maintaining routing tables

-Dynamic routing protocols are used to share routing information with other router & to maintain and up date their own routing table.

IP routing protocols. Example of routing protocols include:-RIP-IGRP-EIGRP-OSPF

Page 16: Cisco Certified Network Associate  CCNA 640-802 Routing Protocols and Concepts

16© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public

Router Paths and Packet Switching

Page 17: Cisco Certified Network Associate  CCNA 640-802 Routing Protocols and Concepts

17© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public

STATIC ROUTING

Page 18: Cisco Certified Network Associate  CCNA 640-802 Routing Protocols and Concepts

18© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public

Interfaces Configuring a Serial interface

-Enter interface configuration mode-Enter in the ip address and subnet mask-Enter in the no shutdown command

Example:-R1(config)#interface serial 0/0-R1(config-if)#ip address 172.16.2.1 255.255.255.0-R1(config-if)#no shutdown

Page 19: Cisco Certified Network Associate  CCNA 640-802 Routing Protocols and Concepts

19© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public

Routing Table To configure an Ethernet interface

Example:-R2(config)#interface fastethernet 0/0-R2(config-if)#ip address 172.16.1.1 255.255.255.0-R2(config-if)#no shutdown

Page 20: Cisco Certified Network Associate  CCNA 640-802 Routing Protocols and Concepts

20© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public

Routing Table When a router only has its interfaces configured & no

other routing protocols are configured then:-The routing table contains only the directly connected networks-Only devices on the directly connected networks are reachable

Page 21: Cisco Certified Network Associate  CCNA 640-802 Routing Protocols and Concepts

21© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public

Static Routes with Exit Interfaces Purpose of a static route

A manually configured route used when routing from a network to a stub network

Page 22: Cisco Certified Network Associate  CCNA 640-802 Routing Protocols and Concepts

22© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public

Static Routes with Exit Interfaces IP route command

To configure a static route use the following command: ip route Example:

-Router(config)# ip route network-address subnet-mask {ip-address | exit-interface }

Page 23: Cisco Certified Network Associate  CCNA 640-802 Routing Protocols and Concepts

23© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public

Static Routes with Exit Interfaces Dissecting static route syntax

ip route - Static route command 172.16.1.0 – Destination network address 255.255.255.0 - Subnet mask of destination network 172.16.2.2 - Serial 0/0/0 interface IP address on R2, which is

the "next-hop" to this network

Page 24: Cisco Certified Network Associate  CCNA 640-802 Routing Protocols and Concepts

24© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public

Static Routes with Exit Interfaces Configuring routes to 2 or more remote networks

Use the following commands for R1-R1(config)#ip route 192.168.1.0 255.255.255.0 172.16.2.2-R1(config)#ip route 192.168.2.0 255.255.255.0 172.16.2.2

Page 25: Cisco Certified Network Associate  CCNA 640-802 Routing Protocols and Concepts

25© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public

Static Routes with Exit Interfaces Verifying the Static Route Configuration

-Use the following commands Step 1 show running-config Step 2 verify static route has been entered correctly Step 3 show ip route Step 4 verify route was configured in routing table Step 5 issue ping command to verify packets can reach

destination and that Return path is working

Page 26: Cisco Certified Network Associate  CCNA 640-802 Routing Protocols and Concepts

26© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public

Summary and Default Route Summarizing routes reduces the size of the routing

table. Route summarization is the process of combining a

number of static routes into a single static route.

Page 27: Cisco Certified Network Associate  CCNA 640-802 Routing Protocols and Concepts

27© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public

Summary and Default Route Configuring a summary route

Step 1: Delete the current static routeStep 2: Configure the summary static routeStep 3: Verify the new static route

Page 28: Cisco Certified Network Associate  CCNA 640-802 Routing Protocols and Concepts

28© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public

Summary and Default Route Default Static Route

This is a route that will match all packets. Stub routers that have a number of static routes all exiting the same interface are good candidates for a default route.

-Like route summarization this will help reduce the size of the routing table

Configuring a default static route Similar to configuring a static route. Except that destination IP

address and subnet mask are all zeros Example:

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

Page 29: Cisco Certified Network Associate  CCNA 640-802 Routing Protocols and Concepts

29© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public

DYNAMIC ROUTING PROTOCOL

Page 30: Cisco Certified Network Associate  CCNA 640-802 Routing Protocols and Concepts

30© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public

Dynamic Routing Protocols Function(s) of Dynamic Routing Protocols:

-Dynamically share information between routers.-Automatically update routing table when topology changes.-Determine best path to a destination.

Page 31: Cisco Certified Network Associate  CCNA 640-802 Routing Protocols and Concepts

31© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public

Classifying Routing Protocols Dynamic routing protocols are grouped according to

characteristics. Examples include:-RIP-IGRP-EIGRP-OSPF-IS-IS-BGP

Autonomous System is a group of routers under the control of a single authority.

Page 32: Cisco Certified Network Associate  CCNA 640-802 Routing Protocols and Concepts

32© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public

Classifying Routing Protocols

Classful routing protocols

Do NOT send subnet mask in routing updates

Classless routing protocols

Do send subnet mask in routing updates.

Page 33: Cisco Certified Network Associate  CCNA 640-802 Routing Protocols and Concepts

33© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public

Routing Protocols Metrics The Metric Field in the

Routing Table Metric used for each

routing protocol-RIP - hop count-IGRP & EIGRP - Bandwidth (used by default), Delay (used by default), Load, Reliability-IS-IS & OSPF – Cost, Bandwidth (Cisco’s implementation)

Page 34: Cisco Certified Network Associate  CCNA 640-802 Routing Protocols and Concepts

34© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public

Routing Protocols Metrics Load balancing

This is the ability of a router to distribute packets among multiple same cost paths

Page 35: Cisco Certified Network Associate  CCNA 640-802 Routing Protocols and Concepts

35© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public

Administrative Distance of a Route Dynamic Routing Protocols

Page 36: Cisco Certified Network Associate  CCNA 640-802 Routing Protocols and Concepts

36© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public

RIPV2

Page 37: Cisco Certified Network Associate  CCNA 640-802 Routing Protocols and Concepts

37© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public

Introduction Chapter focus -Difference between RIPv1 & RIPv2

RIPv1-A classful distance vector routing protocol-Does not support discontiguous subnets-Does not support VLSM-Does not send subnet mask in routing update-Routing updates are broadcast

RIPv2-A classless distance vector routing protocol that is

an enhancement of RIPv1’s features.-Next hop address is included in updates-Routing updates are multicast-The use of authentication is an option

Page 38: Cisco Certified Network Associate  CCNA 640-802 Routing Protocols and Concepts

38© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public

RIPv1 Limitations Lab Topology Scenario:

3 router set up Topology is discontiguous There exists a static summary

route Static route information can be

injected into routing table updates using redistribution.

Routers 1 & 3 contain VLSM networks

Page 39: Cisco Certified Network Associate  CCNA 640-802 Routing Protocols and Concepts

39© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public

Configuring RIPv2 Configuring RIPv2 on a

Cisco router

-Requires using the version 2 command

-RIPv2 ignores RIPv1 updates

To verify RIPv2 is configured use the

show ip protocols command

Page 40: Cisco Certified Network Associate  CCNA 640-802 Routing Protocols and Concepts

40© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public

Configuring RIPv2

Auto-Summary & RIPv2 RIPv2 will automatically

summarize routes at major network boundaries and can also summarize routes with a subnet mask that is smaller than the classful subnet mask

Page 41: Cisco Certified Network Associate  CCNA 640-802 Routing Protocols and Concepts

41© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public

Disabling Auto-Summary in RIPv2

To disable automatic summarization issue the no auto-summary command

Configuring RIPv2

Page 42: Cisco Certified Network Associate  CCNA 640-802 Routing Protocols and Concepts

42© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public

VLSM & CIDR

RIPv2 and VLSM Networks using a VLSM IP

addressing scheme

Use classless routing protocols (i.e. RIPv2) to disseminate network addresses and their subnet masks

Page 43: Cisco Certified Network Associate  CCNA 640-802 Routing Protocols and Concepts

43© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public

Compare RIPv1 and RIPv2

RoutingProtocol

DistanceVector

ClasslessRoutingProtocol

UsesHold-DownTimers

Use ofSplit

Horizon or

Split Horizon

w/Poison

Reverse

MaxHop

count= 15

AutoSummary

SupportCIDR

SupportsVLSM

Uses Authen-tication

RIPv1 Yes No Yes Yes Yes Yes No No No

RIPv2 Yes Yes Yes Yes Yes Yes Yes Yes Yes

Page 44: Cisco Certified Network Associate  CCNA 640-802 Routing Protocols and Concepts

44© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public

EIGRP(ENHANCED INTERIOR GATEWAY ROUTING PROTOCOL)

Page 45: Cisco Certified Network Associate  CCNA 640-802 Routing Protocols and Concepts

45© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public

Introduction

Page 46: Cisco Certified Network Associate  CCNA 640-802 Routing Protocols and Concepts

46© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public

EIGRP Features

There are several key differences with EIGRP from other routing protocols which are explored in this module.

Page 47: Cisco Certified Network Associate  CCNA 640-802 Routing Protocols and Concepts

47© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public

EIGRP Key Technologies

Neighbor discover/recovery Reliable Transport Protocol (RTP) DUAL finite-state machine Protocol-dependent modules (PDMs)

Page 48: Cisco Certified Network Associate  CCNA 640-802 Routing Protocols and Concepts

48© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public

The Diffusing Update Algorithm (DUAL)

How does EIGRP determine which routes are loop-free?

B with a cost of 10

Each of A’s neighbors is reporting reachability to E:

C with a cost of 10D with a cost of 30

These three costs are called the reported distance (RD); the distance each neighbor is reporting to a given destination

Page 49: Cisco Certified Network Associate  CCNA 640-802 Routing Protocols and Concepts

49© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public

The Diffusing Update Algorithm (DUAL) At A, the total cost to reach

E is:

The best of these three paths is the path through B, with a cost of 20

20 through B25 through C45 through D

This is the feasible distance (FD)

Page 50: Cisco Certified Network Associate  CCNA 640-802 Routing Protocols and Concepts

50© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public

The Diffusing Update Algorithm (DUAL) A uses the FD and the RD

to determine which paths are loop-free

The best path (FD) is used as a benchmark; all paths with RDs lower than the FD cannot contain loops

The algorithm may mark some loop-free paths as loops

However, it is guaranteed never to mark a looped path as loop-free

Page 51: Cisco Certified Network Associate  CCNA 640-802 Routing Protocols and Concepts

51© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public

The Diffusing Update Algorithm (DUAL)

At A:The path through B is the best path (FD), at 20

C can reach E with a cost of 10; 10 (RD) is less than 20 (FD), so this path is loop-free.

D can reach E with a cost of 30; 30 (RD) is not less than 20 (FD), so EIGRP assumes this path is a loop.

Page 52: Cisco Certified Network Associate  CCNA 640-802 Routing Protocols and Concepts

52© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public

EIGRP Topology Table

Page 53: Cisco Certified Network Associate  CCNA 640-802 Routing Protocols and Concepts

53© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public

RTRA#show ip eigrp neighborsIP-EIGRP neighbors for process 1H Address Interface Hold Uptime SRTT RTO Q Seq (sec) (ms) Cnt Num2 10.1.1.1 Et0 12 6d16h 20 200 0 2331 10.1.4.3 Et1 13 2w2d 87 522 0 4520 10.1.4.2 Et1 10 2w2d 85 510 0 3

Seconds Remaining Before Declaring Neighbor Down

How Long Since the Last Time Neighbor Was Discovered

How Long It Takes for This Neighbor To Respond To Reliable Packets

How Long to Wait Before Retransmitting If No Acknowledgement

EIGRP Neighbor Status

Page 54: Cisco Certified Network Associate  CCNA 640-802 Routing Protocols and Concepts

54© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public

EIGRP IP Routing Table

Page 55: Cisco Certified Network Associate  CCNA 640-802 Routing Protocols and Concepts

55© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public

Example: EIGRP TablesRouter C’s tables:

Page 56: Cisco Certified Network Associate  CCNA 640-802 Routing Protocols and Concepts

56© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public

EIGRP

Administrative Distance (AD)– Defined as the trustworthiness of the source route

EIGRP default administrative distances– Summary routes = 5– Internal routes = 90– Imported routes = 170

Page 57: Cisco Certified Network Associate  CCNA 640-802 Routing Protocols and Concepts

57© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public

EIGRP

EIGRP will automatically summarize routes at classful boundaries

Page 58: Cisco Certified Network Associate  CCNA 640-802 Routing Protocols and Concepts

58© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public

Basic EIGRP Configuration Autonomous System (AS) & Process IDs

– This is a collection of networks under the control of a single authority (reference RFC 1930)

– AS Numbers are assigned by IANA– Entities needing AS numbers

ISP Internet Backbone prodiers Institutions connecting to other institutions using AS numbers

Page 59: Cisco Certified Network Associate  CCNA 640-802 Routing Protocols and Concepts

59© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public

Basic EIGRP ConfigurationThe router eigrp command The global command that enables eigrp is

router eigrp autonomous-system -All routers in the EIGRP routing domain must use the same process ID number (autonomous-system number)

Page 60: Cisco Certified Network Associate  CCNA 640-802 Routing Protocols and Concepts

60© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public

Basic EIGRP ConfigurationThe Network Command Functions of the network command

– Enables interfaces to transmit & receive EIGRP updates

– Includes network or subnet in EIGRP updates

Example– Router(config-router)#network network-address

Page 61: Cisco Certified Network Associate  CCNA 640-802 Routing Protocols and Concepts

61© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public

Basic EIGRP Configuration The network Command with a Wildcard Mask

-This option is used when you want to configure EIGRP to advertise specific subnets-Example Router(config-router)#network network-address [wildcard-mask]

Page 62: Cisco Certified Network Associate  CCNA 640-802 Routing Protocols and Concepts

62© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public

Basic EIGRP Configuration

Examining the Routing Table

The show ip route command is also used to verify EIGRP

EIGRP routes are denoted in a routing table by the letter “D”

By default , EIGRP automatically summarizes routes at major network boundary

Page 63: Cisco Certified Network Associate  CCNA 640-802 Routing Protocols and Concepts

63© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public

Basic EIGRP Configuration R3’s routing table shows

that the 172.16.0.0/16 network is automatically summarized by R1 & R3

Page 64: Cisco Certified Network Associate  CCNA 640-802 Routing Protocols and Concepts

64© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public

EIGRP Metric CalculationEIGRP Composite Metric & the K Values EIGRP uses the following values in its composite

metric-Bandwidth, delay, reliability, and load

The composite metric used by EIGRP– formula used has values K1 K5

K1 & K3 = 1all other K values = 0

Page 65: Cisco Certified Network Associate  CCNA 640-802 Routing Protocols and Concepts

65© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public

EIGRP Metric Calculation Use the sh ip protocols command to verify the K

values

Page 66: Cisco Certified Network Associate  CCNA 640-802 Routing Protocols and Concepts

66© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public

EIGRP Metric CalculationUsing the Bandwidth Command Modifying the interface bandwidth

-Use the bandwidth command-Example

Router(config-if)#bandwidth kilobits

Verifying bandwidth – Use the show interface command

Note – bandwidth command does not change the link’s physical bandwidth

Page 67: Cisco Certified Network Associate  CCNA 640-802 Routing Protocols and Concepts

67© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public

EIGRP Metric Calculation The EIGRP metric can be determined by examining the

bandwidth delay

Page 68: Cisco Certified Network Associate  CCNA 640-802 Routing Protocols and Concepts

68© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public

More EIGRP Configurations

Disabling Automatic Summarization The auto-summary command permits EIGRP to

automatically summarize at major network boundaries The no auto-summary command is used to disable

automatic summarization– This causes all EIGRP neighbors to send updates

that will not be automatically summarized this will cause changes to appear in both

-routing tables -topology tables

Page 69: Cisco Certified Network Associate  CCNA 640-802 Routing Protocols and Concepts

69© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public

More EIGRP Configurations

Manual Summarization Manual summarization can include supernets

Reason: EIGRP is a classless routing protocol & include subnet mask in update

Command used to configure manual summarization – Router(config-if)#ip summary-address eigrp  as-number

network-address subnet-mask

Page 70: Cisco Certified Network Associate  CCNA 640-802 Routing Protocols and Concepts

70© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public

More EIGRP Configurations Configuring a summary route in EIGRP

Page 71: Cisco Certified Network Associate  CCNA 640-802 Routing Protocols and Concepts

71© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public

OSPF(OPEN SHORT-TEST PATH FIRST)

Page 72: Cisco Certified Network Associate  CCNA 640-802 Routing Protocols and Concepts

72© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public

Introduction

Page 73: Cisco Certified Network Associate  CCNA 640-802 Routing Protocols and Concepts

73© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public

Introduction to OSPFOSPF Algorithm OSPF routers build &

maintain link-state database containing LSA received from other routers– Information found in database

is utilized upon execution of Dijkstra SPF algorithm

– SPF algorithm used to create SPF tree

– SPF tree used to populate routing table

Page 74: Cisco Certified Network Associate  CCNA 640-802 Routing Protocols and Concepts

74© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public

Introduction to OSPFAdministrative Distance Default Administrative Distance for OSPF is 110

Page 75: Cisco Certified Network Associate  CCNA 640-802 Routing Protocols and Concepts

75© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public

Basic OSPF ConfigurationLab Topology Topology used for this chapter

Discontiguous IP addressing schemeSince OSPF is a classless routing protocol the subnet mask is configured in

Page 76: Cisco Certified Network Associate  CCNA 640-802 Routing Protocols and Concepts

76© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public

Basic OSPF ConfigurationThe router ospf command To enable OSPF on a router use the following

commandR1(config)#router ospf process-id Process id

A locally significant number between 1 and 65535-this means it does not have to match other OSPF

routers

Page 77: Cisco Certified Network Associate  CCNA 640-802 Routing Protocols and Concepts

77© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public

Basic OSPF Configuration OSPF network command

-Requires entering: network address wildcard mask - the inverse of the

subnet mask area-id - area-id refers to the OSPF

area. OSPF area is a group of routers that share link state information-Example: Router(config-router)#network network-address

wildcard-ask area area-id

Page 78: Cisco Certified Network Associate  CCNA 640-802 Routing Protocols and Concepts

78© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public

Basic OSPF Configuration Router ID

– This is an IP address used to identify a router– 3 criteria for deriving the router ID

Use IP address configured with OSPF router-id command-Takes precedence over loopback and physical interface addresses

If router-id command not used then router chooses highest IP address of any loopback interfaces

If no loopback interfaces are configured then the highest IP address on any active interface is used

Page 79: Cisco Certified Network Associate  CCNA 640-802 Routing Protocols and Concepts

79© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public

Basic OSPF ConfigurationOSPF Router ID Commands used to verify current router ID

– Show ip protocols– Show ip ospf– Show ip ospf interface

Page 80: Cisco Certified Network Associate  CCNA 640-802 Routing Protocols and Concepts

80© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public

Basic OSPF Configuration

OSPF Router ID Router ID & Loopback addresses

-Highest loopback address will be used as router ID if router-id command isn’t used-Advantage of using loopback address

the loopback interface cannot fail OSPF stability The OSPF router-id command

– Introduced in IOS 12.0– Command syntax

Router(config)#router ospfprocess-id Router(config-router)#router-idip-address

Modifying the Router ID– Use the command Router#clear ip ospf process

Page 81: Cisco Certified Network Associate  CCNA 640-802 Routing Protocols and Concepts

81© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public

Basic OSPF ConfigurationVerifying OSPF Use the show ip ospf command to verify & trouble

shoot OSPF networksCommand will display the following:

Neighbor adjacency -No adjacency indicated by -

Neighboring router’s Router ID is not displayed A state of full is not displayed -Consequence of no adjacency-

No link state information exchanged Inaccurate SPF trees & routing tables

Page 82: Cisco Certified Network Associate  CCNA 640-802 Routing Protocols and Concepts

82© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public

Basic OSPF Configuration

Command Description

Show ip protocols

Displays OSPF process ID, router ID, networks router is advertising & administrative distance

Show ip ospf

Displays OSPF process ID, router ID, OSPF area information & the last time SPF algorithm calculated

Show ip ospf interfaceDisplays hello interval and dead interval

Verifying OSPF - Additional Commands

Page 83: Cisco Certified Network Associate  CCNA 640-802 Routing Protocols and Concepts

83© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public

Basic OSPF ConfigurationExamining the routing table Use the show ip route command to display the routing

table-An “O’ at the beginning of a route indicates that the router source is OSPF-Note OSPF does not automatically summarize at major network boundaries

Page 84: Cisco Certified Network Associate  CCNA 640-802 Routing Protocols and Concepts

84© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public

OSPF Metric OSPF uses cost as the metric for determining the

best route-The best route will have the lowest cost-Cost is based on bandwidth of an interface Cost is calculated using the formula

108 / bandwidth-Reference bandwidth defaults to 100Mbps can be modified using auto-cost reference-bandwidth command

Page 85: Cisco Certified Network Associate  CCNA 640-802 Routing Protocols and Concepts

85© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public

OSPF Metric COST of an OSPF route

Is the accumulated value from one router to the next

Page 86: Cisco Certified Network Associate  CCNA 640-802 Routing Protocols and Concepts

86© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public

OSPF Metric Usually the actual speed of a link is different than the

default bandwidth– This makes it imperative that the bandwidth value reflects link’s

actual speed Reason: so routing table has best path information

The show interface command will display interface’s bandwidth

-Most serial link default to 1.544Mbps

Page 87: Cisco Certified Network Associate  CCNA 640-802 Routing Protocols and Concepts

87© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public

Basic OSPF ConfigurationModifying the Cost of a link Both sides of a serial link should be configured with the

same bandwidth– Commands used to modify bandwidth value

Bandwidth command– Example: Router(config-if)#bandwidthbandwidth-kbps

ip ospf cost command – allows you to directly specify interface cost

-Example:R1(config)#interface serial 0/0/0 R1(config-if)#ip ospf cost 1562

Page 88: Cisco Certified Network Associate  CCNA 640-802 Routing Protocols and Concepts

88© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public

OSPF and Multiaccess NetworksChallenges in Multiaccess Networks OSPF defines five network types:

– Point-to-point – Broadcast Multiaccess – Nonbroadcast Multiaccess (NBMA) – Point-to-multipoint – Virtual links

Page 89: Cisco Certified Network Associate  CCNA 640-802 Routing Protocols and Concepts

89© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public

OSPF in Multiaccess Networks Solution to LSA flooding issue

is the use of – Designated router (DR)– Backup designated router (BDR)

DR & BDR selection– Routers are elected to send &

receive LSA

Sending & Receiving LSA– DRothers send LSAs via multicast

224.0.0.6 to DR & BDR– DR forward LSA via multicast

address 224.0.0.5 to all other routers

Page 90: Cisco Certified Network Associate  CCNA 640-802 Routing Protocols and Concepts

90© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public

OSPF in Multiaccess NetworksDR/BDR Election Process DR/BDR elections DO NOT occur in point to point

networks

Page 91: Cisco Certified Network Associate  CCNA 640-802 Routing Protocols and Concepts

91© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public

OSPF in Multiaccess Networks

Criteria for getting elected DR/BDR1. DR: Router with the highest OSPF

interface priority.2. BDR: Router with the second highest

OSPF interface priority. 3. If OSPF interface priorities are equal, the

highest router ID is used to break the tie.

Page 92: Cisco Certified Network Associate  CCNA 640-802 Routing Protocols and Concepts

92© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public

OSPF in Multiaccess NetworksOSPF Interface Priority Manipulating the DR/BDR election process continued

– Use the ip ospf priority interface command.– Example:Router(config-if)#ip ospf priority {0 - 255}

Priority number range 0 to 255– 0 means the router cannot become the DR or BDR– 1 is the default priority value

Page 93: Cisco Certified Network Associate  CCNA 640-802 Routing Protocols and Concepts

93© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public

More OSPF Configuration

Redistributing an OSPF Default Route Topology includes a link to ISP

– Router connected to ISP Called an autonomous system border router Used to propagate a default route

– Example of static default routeR1(config)#ip route 0.0.0.0 0.0.0.0 loopback 1

– Requires the use of the default-information originate command

– Example of default-information originate commandR1(config-router)#default-information originate

Page 94: Cisco Certified Network Associate  CCNA 640-802 Routing Protocols and Concepts

94© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public

Lab Topology

Page 95: Cisco Certified Network Associate  CCNA 640-802 Routing Protocols and Concepts

95© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public