Institute of Technology Sligo - Dept of Computing Sem 2 Chapter 12 Routing Protocols.

27
Institute of Technology Sligo - Dept of Computing Sem 2 Chapter 12 Routing Protocols

Transcript of Institute of Technology Sligo - Dept of Computing Sem 2 Chapter 12 Routing Protocols.

Page 1: Institute of Technology Sligo - Dept of Computing Sem 2 Chapter 12 Routing Protocols.

Institute of Technology Sligo - Dept of Computing

Sem 2

Chapter 12

  Routing Protocols

Page 2: Institute of Technology Sligo - Dept of Computing Sem 2 Chapter 12 Routing Protocols.

Institute of Technology Sligo - Dept of ComputingRouters can be configured to use one or more IP routing protocols.

Two of these IP routing protocols are RIP and IGRP. After testing the hardware and loading the Cisco IOS system image, the router finds and applies the configuration statements.

These entries provide the router with details about router-specific attributes, protocol functions, and interface addresses.

However, if the router is unable to locate a valid startup-config file, it enters an initial router configuration mode called setup

mode.

Page 3: Institute of Technology Sligo - Dept of Computing Sem 2 Chapter 12 Routing Protocols.

Institute of Technology Sligo - Dept of ComputingWith the setup mode command facility, This facility prompts you for basic configuration information.

The answers you enter allow the router to use a sufficient, but

minimal-feature.

Router configuration that includes the following:

•an inventory of interfaces

•an opportunity to enter global parameters

•an opportunity to enter interface parameters

•a setup script review

•an opportunity to indicate whether you want the router to use this configuration

After you approve setup mode entries, the router uses the entries as a running configuration. The router also stores the configuration in NVRAM as a new startup-config, and you can start using the router. For additional protocol and interface changes, you   can use the enable mode and enter the command configure.

Page 4: Institute of Technology Sligo - Dept of Computing Sem 2 Chapter 12 Routing Protocols.

Institute of Technology Sligo - Dept of ComputingInitially, a router must refer to entries about networks or subnets that are directly connected to it.

Each interface must be configured with an IP address and a mask.

The Cisco IOS software learns about this IP address and mask information from configuration information that has been input from some source.

The initial source of addressing is a user who types it into a configuration file.

Page 5: Institute of Technology Sligo - Dept of Computing Sem 2 Chapter 12 Routing Protocols.

Institute of Technology Sligo - Dept of Computing

•static routes - manually defined by the system administrator as the next hop to a destination; useful for security and traffic reduction

•default routes - manually defined by the system administrator as the path to take when there is no known route to the destination

•dynamic routing - the router learns of paths to destinations by receiving periodic updates from other routers.

• 

Page 6: Institute of Technology Sligo - Dept of Computing Sem 2 Chapter 12 Routing Protocols.

Institute of Technology Sligo - Dept of Computing

ip route Command Description

network destination network or subnet

mask subnet mask

address IP address of the next-hop router

interface name of the interface to use to get to the destination network

distance administrative distance

The administrative distance is a rating of the trustworthiness of a routing information source,  expressed as a numeric value from 0 to 255.

The higher the number, the lower the trustworthiness rating.

A static route allows manual configuration of the routing table. No dynamic changes to this table entry will occur as long as the path is active. A static route may reflect some special knowledge of the networking situation known to the network administrator.

Manually-entered administrative distance values for static routes are usually low numbers (1 is the default).Routing updates are not sent on a link if they are only defined by a static route, therefore, they conserve bandwidth

Page 7: Institute of Technology Sligo - Dept of Computing Sem 2 Chapter 12 Routing Protocols.

Institute of Technology Sligo - Dept of Computing

ip route 172.16.1.0 255.255.255.0 172.16.2.1

Command

Description

ip route 172.16.1.0

specifies a static route to the destination subnetwork

255.255.255.0 subnet mask indicates that 8 bits of subnetting are in effect

172.16.2.1 IP address of next-hop router in the path to the destination

The assignment of a static route to reach the stub network 172.16.1.0 is proper for Cisco A because there is only one way to reach that network.

A static route assignment is required for each destination network, in which case a default route may be more appropriate.

Page 8: Institute of Technology Sligo - Dept of Computing Sem 2 Chapter 12 Routing Protocols.

Institute of Technology Sligo - Dept of Computing

ip default network Command Description

network-number IP network number or subnet number defined as the default

A default network must exist in a routing table. Default routes keep routing tables shorter.When an entry for a destination network does not exist in a routing table, the packet is sent to the default network.

Because a router does not have complete knowledge about all destination networks, it can use a default network number to indicate the direction to take for unknown network numbers. Use the default network number when you need to locate a route, but have only partial information about the destination network.

 

Page 9: Institute of Technology Sligo - Dept of Computing Sem 2 Chapter 12 Routing Protocols.

Institute of Technology Sligo - Dept of Computing

In the example, the global command ip default-network 192.168.17.0 defines the Class C network 192.168.17.0 as the destination path for packets that have no routing table entries.

Router A could need a firewall for routing updates. The Company X administrator does not want updates coming in from the public network.

Router A may need a mechanism to group those networks that will share Company X’s routing strategy. One such mechanism is an autonomous system number.

Page 10: Institute of Technology Sligo - Dept of Computing Sem 2 Chapter 12 Routing Protocols.

Institute of Technology Sligo - Dept of Computing

An autonomous system consists of routers, run by one or more operators, that present a consistent view of routing to the external world.

The Network Information Center (NIC) assigns a unique autonomous system to enterprises. This autonomous system is a 16 bit number.

A routing protocol such as Cisco’s IGRP requires that you specify this unique, assigned autonomous system number in your configuration.

Page 11: Institute of Technology Sligo - Dept of Computing Sem 2 Chapter 12 Routing Protocols.

Institute of Technology Sligo - Dept of Computing

Exterior routing protocols are used for communications between autonomous systems.

Interior routing protocols are used within a single autonomous system.

Page 12: Institute of Technology Sligo - Dept of Computing Sem 2 Chapter 12 Routing Protocols.

Institute of Technology Sligo - Dept of Computing

At the Internet layer of the TCP/IP suite of protocols, a router can use an IP routing protocol to accomplish routing through the implementation of a specific routing algorithm.

Examples of IP routing protocols include:

•RIP - a distance-vector routing protocol•IGRP - Cisco’s distance-vector routing protocol    •OSPF - a link-state routing protocol   

•EIGRP - a balanced hybrid routing protocol.

Page 13: Institute of Technology Sligo - Dept of Computing Sem 2 Chapter 12 Routing Protocols.

Institute of Technology Sligo - Dept of Computing

The interface tasks is to assign network/subnet addresses and the appropriate subnet mask. Dynamic routing uses broadcasts and multicasts to communicate with other routers.

The routing metric helps routers find the best path to each network or subnet.

The selection of an IP routing protocol involves the setting of both global and interface parameters.

Global tasks include selecting a routing protocol, either RIP or IGRP; and indicating IP network numbrs with specifying subnet values.

Page 14: Institute of Technology Sligo - Dept of Computing Sem 2 Chapter 12 Routing Protocols.

Institute of Technology Sligo - Dept of Computingrouter Commands Description

protocol either RIP, IGRP, OSPF, or Enhanced IGRP.

options such as autonomous system, which is used with protocols that require it, such as IGRP

network Command Description

network-number specifies a directly-connected network

Page 15: Institute of Technology Sligo - Dept of Computing Sem 2 Chapter 12 Routing Protocols.

Institute of Technology Sligo - Dept of Computing

RIP was originally specified in RFC 1058.

Its key characteristics include the following:

•It is a distance-vector routing protocol.

•Hop count is used as the metric for path selection.

•The maximum allowable hop count is 15.

•By default, routing updates are broadcast every 30 seconds

Page 16: Institute of Technology Sligo - Dept of Computing Sem 2 Chapter 12 Routing Protocols.

Institute of Technology Sligo - Dept of Computing

The router rip command selects RIP as the routing protocol.

The network command assigns a NIC-based network address to which a router will be directly connected.

The routing process associates interfaces with the network addresses and begins using RIP on the specified networks.

Page 17: Institute of Technology Sligo - Dept of Computing Sem 2 Chapter 12 Routing Protocols.

Institute of Technology Sligo - Dept of ComputingThe descriptions for the commands are as follows:

•router rip - selects RIP as the routing protocol•network 1.0.0.0 - specifies a directly connected network•network 2.0.0.0 - specifies a directly connected network

The Cisco A router interfaces that are connected to networks 1.0.0.0 and 2.0.0.0 send and receive RIP updates.

These routing updates allow the router to learn the network topology.

 

Page 18: Institute of Technology Sligo - Dept of Computing Sem 2 Chapter 12 Routing Protocols.

Institute of Technology Sligo - Dept of Computing

The show ip protocol command displays values, about routing timers and network information, that are associated with the entire router.

Use this information to identify a router that you suspect of delivering bad routing information.

Page 19: Institute of Technology Sligo - Dept of Computing Sem 2 Chapter 12 Routing Protocols.

Institute of Technology Sligo - Dept of Computing

The show ip route command displays the contents of the IP routing table, which contains entries for all known networks and subnetworks, along with a code that indicates how that information was learned. 

Page 20: Institute of Technology Sligo - Dept of Computing Sem 2 Chapter 12 Routing Protocols.

Institute of Technology Sligo - Dept of ComputingIGRP is a distance-vector routing protocol developed by Cisco.

IGRP sends routing updates at 90 second intervals, advertising networks for a particular autonomous system.

Some of the IGRP key design characteristics are:

•versatility that enables it to automatically handle indefinite, complex topologies

•flexibility for segments that have different bandwidth and delay characteristics

•scalability for functioning in very large networks

The IGRP routing protocol uses a combination of variables to determine a composite metric. Those variables include:

•bandwidth •delay •load •reliability •MTU

Page 21: Institute of Technology Sligo - Dept of Computing Sem 2 Chapter 12 Routing Protocols.

Institute of Technology Sligo - Dept of Computing

router igrp Command

Description

autonomous-system

identifies the IGRP router processes that will share routing information

network Command

Description

network-number

specifies a directly connected network - a NIC network address, not a subnet address or an individual host address

Page 22: Institute of Technology Sligo - Dept of Computing Sem 2 Chapter 12 Routing Protocols.

Institute of Technology Sligo - Dept of ComputingIGRP is selected as the routing protocol for autonomous system 109.

All interfaces connected to networks 1.0.0.0 and 2.0.0.0 will be used to send and receive IGRP routing updates.In the example:

•router igrp 109 - selects IGRP as the routing protocol for autonomous system 109

•network 1.0.0.0 - specifies a directly connected network

•network 2.0.0.0 - specifies a directly connected network

 

Page 23: Institute of Technology Sligo - Dept of Computing Sem 2 Chapter 12 Routing Protocols.

Institute of Technology Sligo - Dept of Computing

The show ip protocol command displays parameters, filters, and network information about all of the routing protocol(s) (i.e. RIP, IGRP, etc.) in use, on the router.

The algorithm used to calculate the routing metric for IGRP is shown in this display. It defines the value of the K1-K5 metrics and the maximum hop count.

Page 24: Institute of Technology Sligo - Dept of Computing Sem 2 Chapter 12 Routing Protocols.

Institute of Technology Sligo - Dept of Computing

The show ip interfaces command displays the status and global parameters associated with an interface.

The Cisco IOS software automatically enters a directly-connected route in the routing table if the interface is one through which software can send and receive packets.

Such an interface is marked up. If the interface is unusable, it is removed from the routing table. Removing the entry allows the use of backup routes, if they exist.

Page 25: Institute of Technology Sligo - Dept of Computing Sem 2 Chapter 12 Routing Protocols.

Institute of Technology Sligo - Dept of Computing

The show ip route command displays the contents of an IP routing table. The table contains a list of all known networks and subnets and the metrics associated with each entry.

Note that in this example the information was derived from IGRP (I), or from direct connections (C).

Page 26: Institute of Technology Sligo - Dept of Computing Sem 2 Chapter 12 Routing Protocols.

Institute of Technology Sligo - Dept of Computing

The debug ip rip command displays RIP routing updates as they are sent and received. In this example, the update is sent by 183.8.128.130.

It reported on three routers, one of which is inaccessible because its hop count is greater than 15. Updates were then broadcast through 183.8.128.2.

Page 27: Institute of Technology Sligo - Dept of Computing Sem 2 Chapter 12 Routing Protocols.

Institute of Technology Sligo - Dept of Computing

Perform the labs

The End